コード例 #1
0
 protected override void OnAppearing()
 {
     base.OnAppearing();
     WebView.Navigating          += OnNavigating;
     StatusLabel.PropertyChanged += OnStatusLabelPropertyChanged;
     if (!_inited)
     {
         _bc            = BindingContext as MainScreenViewModel;
         _initialHeight = topRow.Height.Value;
         _inited        = true;
     }
     if (StatusLabel.Text == string.Empty)
     {
         AnimateRow(StatusLabel.Text == String.Empty);
     }
 }
コード例 #2
0
        public MainMasterDetailPage()
        {
            Detail = new LiteHelperPage();
            var bc = new MainScreenViewModel();

            Detail.BindingContext = bc;


            Master = new MenuPage {
                Title = "Sandwich"
            };
            Master.BindingContext = Detail.BindingContext;
            _codeManager          = ServiceLocator.Current.GetInstance <CodeManager> ();

            //no unsubcribing, because this view is lifetime view
            bc.ShowMenuEvent   += ShowMenu;
            IsPresentedChanged += OnIsPresentedChanged;
        }