Beispiel #1
0
 protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
 {
     base.OnPropertyChanged(e);
     //System.Diagnostics.Debug.WriteLine(string.Format("Form PropertyChanged: {0}={1}", e.Property.Name, e.NewValue));
     if (e.Property.Name == "IsVisible")
     {
         ModalSpace.ShowModal(this, (bool)e.NewValue);
     }
 }
Beispiel #2
0
        public static void ShowModal(ActionBlock modal, bool isShow)
        {
            var space = ModalSpace.GetSpace(modal);

            if (space != null)
            {
                if (isShow)
                {
                    space.AddModal(modal);
                }
                else
                {
                    space.RemoveModal(modal);
                }
            }
        }