Exemplo n.º 1
0
 public override void OnAppearing()
 {
     base.OnAppearing();
     if (initialPopup == null)
     {
         initialPopup = new InitialPopup().Content as Syncfusion.XForms.PopupLayout.SfPopupLayout;
         initialPopup.Show();
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// You can override this method to subscribe to AssociatedObject events and initialize properties.
        /// </summary>
        /// <param name="bindAble">SampleView type parameter named as bindAble</param>
        protected override void OnAttachedTo(SampleView bindAble)
        {
            base.OnAttachedTo(bindAble);

            this.popupLayout = bindAble.FindByName <Syncfusion.XForms.PopupLayout.SfPopupLayout>("popupLayout");
            this.viewModel   = new GettingStartedViewModel();

            this.alertWithTitle          = bindAble.FindByName <Button>("AlertTitle");
            this.alertWithTitle.Clicked += this.AlertWithTitle_Clicked;

            this.contentBackGroundColor = Color.White;
            this.contentTextColor       = Color.Gray;
            this.headerTextColor        = Color.Black;

            bindAble.BindingContext = this.viewModel;
        }
Exemplo n.º 3
0
 /// <summary>
 /// You can override this method while View was detached from window
 /// </summary>
 /// <param name="bindAble">SampleView type parameter named as bindAble</param>
 protected override void OnDetachingFrom(SampleView bindAble)
 {
     this.popupLayout             = null;
     this.alertWithTitle.Clicked -= this.AlertWithTitle_Clicked;
     base.OnDetachingFrom(bindAble);
 }