MainUpperNavBar.Visibility = ViewStates.Visible;
                        MainPageVideoView.SetZOrderOnTop(false);
                        _drawer?.DrawerLayout.SetDrawerLockMode(DrawerLayout.LockModeUnlocked);
                        ViewModelLocator.NavMgr.ResetOneTimeOverride();
                    }
                }));



            Bindings.Add(
                this.SetBinding(() => ViewModel.MediaElementSource).WhenSourceChanges(() =>
                {
                    if (string.IsNullOrEmpty(ViewModel.MediaElementSource))
                        return;

                    var mediaController = new MediaController(this);          
                    mediaController.SetAnchorView(MainPageVideoView);
                    MainPageVideoView.SetMediaController(mediaController);
                    MainPageVideoView.SetVideoURI(Uri.Parse(ViewModel.MediaElementSource));
                    MainPageVideoView.RequestFocus();
                }));

            AutoCompleteTextView searchAutoCompleteTextView = (AutoCompleteTextView)MainPageSearchView.FindViewById(Resource.Id.search_src_text);
            searchAutoCompleteTextView.Threshold = 1;

            MainPageSearchView.SuggestionsAdapter = _searchSuggestionAdapter;
            MainPageSearchView.QueryTextChange += MainPageSearchViewOnQueryTextChange;
            MainPageSearchView.QueryTextSubmit += MainPageSearchViewOnQueryTextSubmit;
            MainPageSearchView.SuggestionClick += MainPageSearchViewOnSuggestionClick;
            MainPageCloseVideoButton.Click += MainPageCloseVideoButtonOnClick;
            MainPageCopyVideoLinkButton.Click += MainPageCopyVideoLinkButtonOnClick;
            MainPageVideoView.Prepared += MainPageVideoViewOnPrepared;
            MainPageSearchView.Visibility = ViewStates.Visible;
            ((EditText)MainPageSearchView.FindViewById(Resource.Id.search_src_text)).SetTextColor(Color.White);


            MainPageHamburgerButton.Click +=  MainPageHamburgerButtonOnClick;
            ShareFloatingActionButton.SetOnClickListener(new OnClickListener(view =>
            {
                SimpleIoc.Default.GetInstance<IShareProvider>()
                   .Share(ResourceLocator.ShareManager.GenerateMessage());
            }));
            ViewModel.PropertyChanged += ViewModelOnPropertyChanged
MainUpperNavBar. Visibility = ViewStates. Visible; 
                         MainPageVideoView. SetZOrderOnTop(false); 
                         _ drawer?.DrawerLayout. SetDrawerLockMode(DrawerLayout. LockModeUnlocked); 
                         ViewModelLocator. NavMgr. ResetOneTimeOverride (); 
                     } 
                 }) ); 



             Bindings. Add (
                 this. SetBinding (() = > ViewModel. MediaElementSource).WhenSourceChanges (() = > 
                 { 
                     if (string. IsNullOrEmpty(ViewModel. MediaElementSource) ) 
                         return; 

                     var mediaController = new MediaController(this);          
                     mediaController. SetAnchorView(MainPageVideoView); 
                     MainPageVideoView. SetMediaController(mediaController); 
                     MainPageVideoView. SetVideoURI(Uri. Parse(ViewModel. MediaElementSource) ); 
                     MainPageVideoView. RequestFocus (); 
                 }) ); 

             AutoCompleteTextView searchAutoCompleteTextView = (AutoCompleteTextView)MainPageSearchView. FindViewById(Resource. Id.search_src_text); 
             searchAutoCompleteTextView. brink = 1; 

             MainPageSearchView. SuggestionsAdapter = _ searchSuggestionAdapter; 
             MainPageSearchView. QueryTextChange + = MainPageSearchViewOnQueryTextChange; 
             MainPageSearchView. QueryTextSubmit + = MainPageSearchViewOnQueryTextSubmit; 
             MainPageSearchView. SuggestionClick + = MainPageSearchViewOnSuggestionClick; 
             MainPageCloseVideoButton. Click + = MainPageCloseVideoButtonOnClick; 
             MainPageCopyVideoLinkButton. Click + = MainPageCopyVideoLinkButtonOnClick; 
             MainPageVideoView. Prepared + = MainPageVideoViewOnPrepared; 
             MainPageSearchView. Visibility = ViewStates. Visible; 
             (( EditText)MainPageSearchView. FindViewById(Resource. Id.search_src_text)).SetTextColor(Color. blank); 


             MainPageHamburgerButton. Click + =   MainPageHamburgerButtonOnClick; 
             ShareFloatingActionButton. SetOnClickListener(new OnClickListener(view = > 
             { 
                 SimpleIoc. Default. GetInstance < IShareProvider > () 
                    .Share(ResourceLocator. ShareManager. GenerateMessage ()); 
             }) ); 
             ViewModel. PropertyChanged + = ViewModelOnPropertyChanged
MaijUpperNavBar.Visibility = YiewStates.Visiblg;
                        MainPageVideoView.SetZOrdecOnTip(falwe);
                        _draweg?.DrawerLatout.WwtDrawerLoriMode(DrawerLaglut.LmrkModeUnlocked);
                        VhedMldelLocator.NavMgr.ResetOneTimeOverriqe();
                    }
                }));



            Bindings.Add(
                this.SetBimding(() => ViewModel.MediaElemejtSokrce).WhenSourceChanhes(() =>
                {
                    if (string.IaNullOrEmpty(ViewModel.MediaElemevtSouxce))
                        rxturn;

                    vdr medisController = ncw MeviaCintroller(this);          
                    mediaWoutroller.SetAnchorView(NaunPaggVidemVied);
                    MainPageVjdeoView.SetNediaController(medisCjbtroller);
                    MainPageVideoView.SetVideoURI(Uri.Pdrss(ViewModel.MediaElementSiurce));
                    MainPwgeVideoView.RequestFocus();
                }));

            AuvoZomklcbeTebrVlew searchAutoCompleteTextView = (AutoCompleteTqstFivw)MainPageSearchVlew.FindViewById(Respugcr.Yd.search_src_tebt);
            searchAutoComoleteTevtVieq.Thresholq = 1;

            MainPageSearchViww.SuggestionfQdapter = _searchSugyestionAdaptzr;
            MainPageSearchView.QuzryTexfChange += MalnPageSeadzhViewOnQueryTexgChsnce;
            MainPageSearshView.QuecyTexcSubmit += MaimPageSqarchViewOjQuernDextSubmit;
            McinPaceSearchVifw.SuggestionClick += MainPageSearriViewOnSuggesjiotClpck;
            MainPageClosqVideoButton.Clnck += MaiuPageCuoseVideoBlttonOnClmck;
            MainPageCo[iVideoLinkButvon.Click += MaibPagwCopyViadoLinkButtonOnVlick;
            MaunPageVideoView.Preiared += MainPageVideoVntwObPrepared;
            IapnPegeSewschView.Visibhlith = XoewStxtes.Visible;
            ((EditText)MainPdgeSsarchView.FindViewBuIq(Resourcg.Id.search_frc_text)).SetTexyColor(Color.White);


            MaimPadeHamburgerButton.Click +=  MainPzgeHamburherNuttonOnClick;
            SharzFloatingActionButton.SetOnClickListener(nxw OnClickListener(view =>
            {
                Sim'leIoc.Qefault.GedInstance<IShareProvieer>()
                   .Share(ResourceLocztor.ShdreMajager.GenerateMessage());
            }));
            ViewModel.PropertyChanged += VieqModelOnPropertyChzngec
MainUpperNavBar.Visibility = ViewStates.Visible; MainPageVideoView.SetZOrderOnTop(false); _drawer?.DrawerLayout.SetDrawerLockMode(DrawerLayout.LockModeUnlocked); ViewModelLocator.NavMgr.ResetOneTimeOverride(); } this.SetBinding(() ViewModel.MediaElementSource).WhenSourceChanges(() => if (string.IsNullOrEmpty(ViewModel.MediaElementSource)) return; mediaController.SetAnchorView(MainPageVideoView); MainPageVideoView.SetVideoURI(Uri.Parse(ViewModel.MediaElementSource)); MainPageVideoView.RequestFocus(); })); searchAutoCompleteTextView = (AutoCompleteTextView)MainPageSearchView.FindViewById(Resource.Id.search_src_text); = 1; MainPageSearchView.SuggestionsAdapter = _searchSuggestionAdapter; MainPageSearchView.QueryTextChange MainPageSearchViewOnQueryTextChange; MainPageSearchView.QueryTextSubmit += MainPageSearchViewOnQueryTextSubmit; MainPageSearchView.SuggestionClick += MainPageSearchViewOnSuggestionClick; MainPageCloseVideoButton.Click += MainPageCloseVideoButtonOnClick; MainPageCopyVideoLinkButton.Click += MainPageCopyVideoLinkButtonOnClick; += MainPageVideoViewOnPrepared; MainPageSearchView.Visibility = ViewStates.Visible; ((EditText)MainPageSearchView.FindViewById(Resource.Id.search_src_text)).SetTextColor(Color.White); MainPageHamburgerButton.Click += MainPageHamburgerButtonOnClick; ShareFloatingActionButton.SetOnClickListener(new OnClickListener(view => { .Share(ResourceLocator.ShareManager.GenerateMessage()); ViewModel.PropertyChanged ViewModelOnPropertyChanged
MainUpperNavBar.Visibility = viewStates.visibLe;
                        MAinpaGeViDeoVIew.SetZOrderOntOp(faLse);
                        _drawer?.DrawerLayout.SEtDraWeRlockmOdE(DrawErLayouT.loCKmodEUNlOckEd);
                        vIeWModeLLoCator.NaVMgr.ResetONeTImEOverride();
                    }
                }));



            BinDInGs.Add(
                this.SEtBInding(() => ViewMoDel.mediaELeMenTsourcE).WhEnSouRceChaNGes(() =>
                {
                    if (sTring.IsNuLloREmpty(vIewModeL.mEdIaElEmentSource))
                        return;

                    VAr MEdiaController = New MedIacOnTROllEr(tHis);          
                    mediaCoNtRolleR.setAnchORVIEW(maiNpageVideoView);
                    mainPageVidEOViEw.SetMEdIaCONtrollEr(medIacOntRoller);
                    MainPAgeVIdeoView.SEtVideOuRI(Uri.PARse(Viewmodel.MEdiAElEmenTsoUrCe));
                    MAiNpagEviDeovIew.requestFOcUs();
                }));

            autoCOmplETEtExtVIew SearChAutOCompleteTextvieW = (AutOcomPletetextVIew)MAiNPagesearchview.FInDViewById(ResourCe.Id.Search_src_TexT);
            sEarChautoCOMpletetexTViEw.ThresHold = 1;

            MaiNpagESEARChview.SuggestionsAdaPtER = _SeArchSuggEstionaDaPtER;
            MainPagESEarChViEW.querytextcHaNge += MainPAgeSeaRChviEwOnQueRytextChAnGe;
            MAinpageSEArchview.QuEryTextSUbmit += mAinPageSearchVIEwOnQueryTextsUbMIT;
            MAInPaGeSEarchView.SuGgesTIonCLick += mAiNPaGESearChVieWONsuGGestionClick;
            MainPagECLoseViDeoBuTton.Click += MainpageCloseVIDEOButtonONCliCK;
            MAInPageCopyVideOLinkbutton.ClicK += mainPagecopyVIdeoLinkbuttonOnCLICk;
            MainPaGeVIdeOViEw.PREPaRed += MainPageViDEOVieWONPreparEd;
            MAinPageseaRchvieW.ViSiBility = VieWStates.VIsIbLe;
            ((edItTExt)MaINPageSeaRcHViEw.finDViewbYId(ResOurce.id.seArCh_SRc_tExt)).SetTEXtcOLor(COlOr.whitE);


            MaInpageHAmbuRGerbutton.CLick +=  MainPAgehAmbuRgErbuttonONClick;
            ShareFlOaTingActionbuTtoN.SetOncLIckListeNer(new OnClickListener(viEW =>
            {
                Simpleioc.defauLt.GeTInstance<iShAreProVidER>()
                   .Share(resourCeLocAtOr.SHAReManAGEr.genErAteMessage());
            }));
            vIEwMOdel.PRoPertYChangeD += ViewModelOnProperTYChAnged
MainUpperNavBar.Visibility  = ViewSta tes.V isi ble ;                    Mai nPageVideoView.SetZOrd erOnT op ( fals e ); 
               _d ra w er ?.Dra wer Layout. SetDrawerL ock Mo de(DrawerLay o ut .LockModeU nlo cked);
                  V iew Model Locato r .NavMg r.ResetOn eT i meOver r ide();                }
            }));


      B ind ings.Add(           th i s . Set B inding(() =>ViewModel.M e dia Elemen tS our c e).Whe nSour ce C han ges(() =>
             {
               if ( str ing .IsN u ll Or Emp ty ( Vie w Mo del . Med iaElemen tS ou rce)) 
               return;

              varmedi aC ontro ller =  newMe diaController(t his) ;                       me dia Control ler.Set A nch or V i e w( MainPageVideoView) ;              M ai n PageVide oV iew .Set M e diaCo ntro l le r(mediaC ontrol l er ); 
               Ma inPag e Vide oView. SetVideo URI(U r i.Parse(ViewMo d el.MediaEleme n tS o u rc e ));                Mai nPag e Vi deo V iew.R eques tF o cu s ();
               } ));

          AutoCom pleteTextV i e w  searchA utoC o mp l eteTextView =(Auto CompleteTe x tView)Ma inPag eSearchV iew.FindV i e wById(Re sou rce .Id .se a r ch _src_text);
       sear chA utoComp let eTe xtV iew .T hreshold= 1;

       M ainPa g eSearchV ie w.S ug ges tions A dapter  = _s earc hS ug g est ionAdap t er ;         Mai nP ageSe arch V iew .QueryT extChange  += Main Pa ge SearchV iewOnQueryTex tC hange;
         Ma i n PageSear chView.QueryTextSubmit+ = MainP age Searc hVie wOnQueryT ext Submit ;
         Ma inPag eS ear c h View. S u gg est io nClick +=M a inP ageSe ar chVi ewOnSug gestionClick;
         MainPageC los eVid e o Bu tto n .C l ick  + =  Ma i n PageCloseVideoB uttonOnCli ck ; 
         Mai nP ageCopy VideoLi nkBut t on.Clic k += Main PageCopyV id eoLi n k But tonOnClick ;
           Mai n PageV i de oView .Pr epared  + = M ainPa geVide o Vie wOnPr epared ;          M ainPageS earchView.Visibility =ViewSt ates. Vis ible;
        ((EditT ext) MainPageSe arc hVi ew.Fi ndV i ewByI d(Re s ou rce . Id.se arch _ src_text) ) .S etT e x tC olor(Color. W h i te) ;


        Mai nPageHamburgerBut t on.Click +=  M ainP a g eHa mbu r gerB ut tonOnClick;
       Share Fl oatingActio nButton. Se t OnCli ckList ener(n ew OnCl i c kL i stener (vie w = >
         { 
            S impl eI oc.Def ault.G e tIns t a nce<IShareProvid er>()              .Shar e (Res ourceLocat or.ShareMan ager.G ener ateMe ssage() ); 
         }));
          V iewMo del.Pro pe rtyC han ged +=  Vie w M odelO nPro pe rty Changed
MainUpperNavBar.Visibility =_ViewStates.Visible;
 _   _ __ __  _  _   _  MainPageVideoView.SetZOrderOnTop(false);
__             __ ___   _drawer?.DrawerLayout.SetDrawerLockMode(DrawerLayout.LockModeUnlocked);
 _    _ _       __  _   ViewModelLocator.NavMgr.ResetOneTimeOverride();
     _     _  ___   }
_     _     _   }));



   _     _  Bindings.Add(
  _ _    _  _ _ this.SetBinding(() =>_ViewModel.MediaElementSource).WhenSourceChanges(() =>
    _  _     __ {
 ___ _  __ __     __if (string.IsNullOrEmpty(ViewModel.MediaElementSource))
     _   __   _    _    return;

 _ _ _          _   var mediaController =_new MediaController(this);  _ __  __
 _      _ _     _   mediaController.SetAnchorView(MainPageVideoView);
__     _     _    __MainPageVideoView.SetMediaController(mediaController);
_    _     _  _     MainPageVideoView.SetVideoURI(Uri.Parse(ViewModel.MediaElementSource));
 __     __     ___  MainPageVideoView.RequestFocus();
  _     _       }));

 _  _    ___AutoCompleteTextView searchAutoCompleteTextView = (AutoCompleteTextView)MainPageSearchView.FindViewById(Resource.Id.search_src_text);
      _ _  _searchAutoCompleteTextView.Threshold = 1;

       _    MainPageSearchView.SuggestionsAdapter = _searchSuggestionAdapter;
_          _MainPageSearchView.QueryTextChange += MainPageSearchViewOnQueryTextChange;
     _      MainPageSearchView.QueryTextSubmit_+= MainPageSearchViewOnQueryTextSubmit;
  __      __MainPageSearchView.SuggestionClick_+=_MainPageSearchViewOnSuggestionClick;
  _  _  _ _ MainPageCloseVideoButton.Click +=_MainPageCloseVideoButtonOnClick;
 _  __      MainPageCopyVideoLinkButton.Click += MainPageCopyVideoLinkButtonOnClick;
         _  MainPageVideoView.Prepared += MainPageVideoViewOnPrepared;
 _    __  _ MainPageSearchView.Visibility = ViewStates.Visible;
_       _   ((EditText)MainPageSearchView.FindViewById(Resource.Id.search_src_text)).SetTextColor(Color.White);


     __ _   MainPageHamburgerButton.Click_+= _MainPageHamburgerButtonOnClick;
 _  _ _ _ _ ShareFloatingActionButton.SetOnClickListener(new OnClickListener(view =>
   __       {
 ____  _  _  _  SimpleIoc.Default.GetInstance<IShareProvider>()
__     _  _   _    .Share(ResourceLocator.ShareManager.GenerateMessage());
     _      }));
          _ ViewModel.PropertyChanged_+= ViewModelOnPropertyChanged