public override void OnPropertyChange(RadElement element, RadPropertyChangedEventArgs e)
        {
            if (!(bool)e.NewValue || this.popupShown)
            {
                return;
            }
            this.popupShown = true;
            ZoomPopup zoomPopup = new ZoomPopup(element, new SizeF(2f, 2f));

            zoomPopup.AnimationFrames   = 10;
            zoomPopup.AnimationInterval = 20;
            zoomPopup.BeginInit();
            zoomPopup.Closed += (EventHandler)((sender, ea) =>
            {
                this.popupShown = false;
                ThemeResolutionService.UnsubscribeFromThemeChanged((IThemeChangeListener)((RadControl)sender).ElementTree);
            });
            zoomPopup.EndInit();
            zoomPopup.Show();
        }
Exemple #2
0
        public override void OnPropertyChange(RadElement element, RadPropertyChangedEventArgs e)
        {
            if ((bool)e.NewValue == true)
            {
                if (!popupShown)
                {
                    popupShown = true;
                    ZoomPopup popup = new ZoomPopup(element, new SizeF(2f, 2f));
                    popup.AnimationFrames    = 10;
                    popup.AnimationInterval  = 20;
                    popup.UseNewLayoutSystem = true;
                    popup.BeginInit();
                    popup.Closed += delegate(object sender, EventArgs ea)
                    {
                        popupShown = false;
                        ThemeResolutionService.UnsubscribeFromThemeChanged(((ZoomPopup)sender).ElementTree);
                    };

                    popup.EndInit();
                    popup.Show();
                }
            }
        }
Exemple #3
0
 public override void OnPropertyChange(RadElement element, RadPropertyChangedEventArgs e)
 {
     if (!(bool)e.NewValue || this.IsPopupShown)
     {
         return;
     }
     this.popupShown = true;
     this.popup      = new ZoomPopup(element, new SizeF(1.5f, 1.5f), false);
     this.popup.BeginInit();
     this.popup.Closed += (EventHandler)((sender, ea) =>
     {
         this.popupShown = false;
         this.popup.Dispose();
         if (element.Parent == null)
         {
             return;
         }
         element.Parent.UpdateLayout();
     });
     this.popup.Clicked += (EventHandler)((sender, ea) => this.gallery.CloseDropDown());
     this.popup.EndInit();
     this.popup.Show();
 }
 public override void OnPropertyChange(RadElement element, RadPropertyChangedEventArgs e)
 {
     if ((bool)e.NewValue == true)
     {
         if (!this.IsPopupShown)
         {
             this.popupShown = true;
             this.popup      = new ZoomPopup(element, new SizeF(1.5f, 1.5f), false);
             this.popup.BeginInit();
             this.popup.Closed += delegate(object sender, EventArgs ea)
             {
                 this.popupShown = false;
                 this.popup.Dispose();
                 if (element.Parent != null)
                 {
                     element.Parent.UpdateLayout();
                 }
             };
             this.popup.Clicked += delegate(object sender, EventArgs ea) { gallery.CloseDropDown(); };
             this.popup.EndInit();
             this.popup.Show();
         }
     }
 }