Beispiel #1
0
        static WindowBase()
        {
            IsVisibleProperty.OverrideDefaultValue <WindowBase>(false);
            IsVisibleProperty.Changed.AddClassHandler <WindowBase>((x, e) => x.IsVisibleChanged(e));


            TopmostProperty.Changed.AddClassHandler <WindowBase>((w, e) => w.PlatformImpl?.SetTopmost((bool)e.NewValue !));
        }
Beispiel #2
0
        static WindowBase()
        {
            IsVisibleProperty.OverrideDefaultValue <WindowBase>(false);
            IsVisibleProperty.Changed.AddClassHandler <WindowBase>(x => x.IsVisibleChanged);

            MinWidthProperty.Changed.AddClassHandler <WindowBase>((w, e) => w.PlatformImpl?.SetMinMaxSize(new Size((double)e.NewValue, w.MinHeight), new Size(w.MaxWidth, w.MaxHeight)));
            MinHeightProperty.Changed.AddClassHandler <WindowBase>((w, e) => w.PlatformImpl?.SetMinMaxSize(new Size(w.MinWidth, (double)e.NewValue), new Size(w.MaxWidth, w.MaxHeight)));
            MaxWidthProperty.Changed.AddClassHandler <WindowBase>((w, e) => w.PlatformImpl?.SetMinMaxSize(new Size(w.MinWidth, w.MinHeight), new Size((double)e.NewValue, w.MaxHeight)));
            MaxHeightProperty.Changed.AddClassHandler <WindowBase>((w, e) => w.PlatformImpl?.SetMinMaxSize(new Size(w.MinWidth, w.MinHeight), new Size(w.MaxWidth, (double)e.NewValue)));
        }
Beispiel #3
0
 static WindowBase()
 {
     IsVisibleProperty.OverrideDefaultValue <WindowBase>(false);
     IsVisibleProperty.Changed.AddClassHandler <WindowBase>(x => x.IsVisibleChanged);
 }