示例#1
0
 static NavigatorWindow()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(NavigatorWindow),
                                              new FrameworkPropertyMetadata(typeof(NavigatorWindow)));
     ShowActivatedProperty.OverrideMetadata(typeof(NavigatorWindow), new FrameworkPropertyMetadata(false));
     ShowInTaskbarProperty.OverrideMetadata(typeof(NavigatorWindow), new FrameworkPropertyMetadata(false));
 }
示例#2
0
        //--------------------------------------------------------------
        #region Dependency Properties & Routed Events
        //--------------------------------------------------------------
        #endregion


        //--------------------------------------------------------------
        #region Creation & Cleanup
        //--------------------------------------------------------------

        /// <summary>
        /// Initializes static members of the <see cref="DockOverlay"/> class.
        /// </summary>
        static DockOverlay()
        {
            AllowsTransparencyProperty.OverrideMetadata(typeof(DockOverlay), new FrameworkPropertyMetadata(Boxed.BooleanTrue));
            BackgroundProperty.OverrideMetadata(typeof(DockOverlay), new FrameworkPropertyMetadata(null));
            ShowActivatedProperty.OverrideMetadata(typeof(DockOverlay), new FrameworkPropertyMetadata(Boxed.BooleanFalse));
            ShowInTaskbarProperty.OverrideMetadata(typeof(DockOverlay), new FrameworkPropertyMetadata(Boxed.BooleanFalse));
            WindowStyleProperty.OverrideMetadata(typeof(DockOverlay), new FrameworkPropertyMetadata(WindowStyle.None));
        }
示例#3
0
 static DialogWindow()
 {
     WindowStyleProperty.OverrideMetadata(typeof(DialogWindow), new FrameworkPropertyMetadata(WindowStyle.None));
     ShowActivatedProperty.OverrideMetadata(typeof(DialogWindow), new FrameworkPropertyMetadata(false));
     ShowInTaskbarProperty.OverrideMetadata(typeof(DialogWindow), new FrameworkPropertyMetadata(false));
     ResizeModeProperty.OverrideMetadata(typeof(DialogWindow),
                                         new FrameworkPropertyMetadata(ResizeMode.NoResize));
 }
        static CompletionWindowBase()
        {
            WindowStyleProperty.OverrideMetadata(typeof(CompletionWindowBase), new FrameworkPropertyMetadata(WindowStyle.None));
            ShowActivatedProperty.OverrideMetadata(typeof(CompletionWindowBase), new FrameworkPropertyMetadata(Boxes.False));
            ShowInTaskbarProperty.OverrideMetadata(typeof(CompletionWindowBase), new FrameworkPropertyMetadata(Boxes.False));

            //Dirkster99 BugFix to get rid of window border on completion drop-down list
            AllowsTransparencyProperty.OverrideMetadata(typeof(CompletionWindowBase), new FrameworkPropertyMetadata(true));
        }
        static CompletionWindowBase()
        {
            WindowStyleProperty.OverrideMetadata(typeof(CompletionWindowBase), new FrameworkPropertyMetadata(WindowStyle.None));
            ShowActivatedProperty.OverrideMetadata(typeof(CompletionWindowBase), new FrameworkPropertyMetadata(Boxes.False));
            ShowInTaskbarProperty.OverrideMetadata(typeof(CompletionWindowBase), new FrameworkPropertyMetadata(Boxes.False));

            //!!!!
            //AllowsTransparencyProperty.OverrideMetadata( typeof( CompletionWindowBase ),new FrameworkPropertyMetadata( Boxes.True ) );
        }
示例#6
0
 static GlowWindow()
 {
     AllowsTransparencyProperty.OverrideMetadata(typeof(GlowWindow), new FrameworkPropertyMetadata(true));
     BackgroundProperty.OverrideMetadata(typeof(GlowWindow), new FrameworkPropertyMetadata(Brushes.Transparent));
     ResizeModeProperty.OverrideMetadata(typeof(GlowWindow), new FrameworkPropertyMetadata(ResizeMode.NoResize));
     ShowActivatedProperty.OverrideMetadata(typeof(GlowWindow), new FrameworkPropertyMetadata(false));
     ShowInTaskbarProperty.OverrideMetadata(typeof(GlowWindow), new FrameworkPropertyMetadata(false));
     SnapsToDevicePixelsProperty.OverrideMetadata(typeof(GlowWindow), new FrameworkPropertyMetadata(true));
     WindowStyleProperty.OverrideMetadata(typeof(GlowWindow), new FrameworkPropertyMetadata(WindowStyle.None));
 }
        static OverlayWindow()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(OverlayWindow),
                                                     new FrameworkPropertyMetadata(typeof(OverlayWindow)));

            AllowsTransparencyProperty.OverrideMetadata(typeof(OverlayWindow), new FrameworkPropertyMetadata(true));
            WindowStyleProperty.OverrideMetadata(typeof(OverlayWindow), new FrameworkPropertyMetadata(WindowStyle.None));
            ShowInTaskbarProperty.OverrideMetadata(typeof(OverlayWindow), new FrameworkPropertyMetadata(false));
            ShowActivatedProperty.OverrideMetadata(typeof(OverlayWindow), new FrameworkPropertyMetadata(false));
        }
示例#8
0
 static NotificationWindow()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(NotificationWindow), new FrameworkPropertyMetadata(typeof(NotificationWindow)));
     WindowStyleProperty.OverrideMetadata(typeof(NotificationWindow), new FrameworkPropertyMetadata(WindowStyle.None));
     AllowsTransparencyProperty.OverrideMetadata(typeof(NotificationWindow), new FrameworkPropertyMetadata(true));
     BackgroundProperty.OverrideMetadata(typeof(NotificationWindow), new FrameworkPropertyMetadata(Brushes.CadetBlue));
     TopmostProperty.OverrideMetadata(typeof(NotificationWindow), new FrameworkPropertyMetadata(true));
     ShowInTaskbarProperty.OverrideMetadata(typeof(NotificationWindow), new FrameworkPropertyMetadata(false));
     ShowActivatedProperty.OverrideMetadata(typeof(NotificationWindow), new FrameworkPropertyMetadata(false));
     SizeToContentProperty.OverrideMetadata(typeof(NotificationWindow), new FrameworkPropertyMetadata(SizeToContent.Manual));
 }
示例#9
0
 static LegacyBorderWindow()
 {
     //DefaultStyleKeyProperty.OverrideMetadata(typeof(BorderWindow), new FrameworkPropertyMetadata(typeof(BorderWindow)));
     WindowStyleProperty.OverrideMetadata(typeof(LegacyBorderWindow), new FrameworkPropertyMetadata(WindowStyle.None));
     ShowInTaskbarProperty.OverrideMetadata(typeof(LegacyBorderWindow), new FrameworkPropertyMetadata(false));
     AllowsTransparencyProperty.OverrideMetadata(typeof(LegacyBorderWindow), new FrameworkPropertyMetadata(true));
     ShowActivatedProperty.OverrideMetadata(typeof(LegacyBorderWindow), new FrameworkPropertyMetadata(false));
     // override to make border less visible initially for slow machines
     //WindowStateProperty.OverrideMetadata(typeof(BorderWindow), new FrameworkPropertyMetadata(WindowState.Minimized));
     WidthProperty.OverrideMetadata(typeof(LegacyBorderWindow), new FrameworkPropertyMetadata(1d));
     HeightProperty.OverrideMetadata(typeof(LegacyBorderWindow), new FrameworkPropertyMetadata(1d));
 }
示例#10
0
 static BorderWindow()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(BorderWindow), new FrameworkPropertyMetadata(typeof(BorderWindow)));
     WindowStyleProperty.OverrideMetadata(typeof(BorderWindow), new FrameworkPropertyMetadata(WindowStyle.None));
     ShowInTaskbarProperty.OverrideMetadata(typeof(BorderWindow), new FrameworkPropertyMetadata(false));
     AllowsTransparencyProperty.OverrideMetadata(typeof(BorderWindow), new FrameworkPropertyMetadata(true));
     ShowActivatedProperty.OverrideMetadata(typeof(BorderWindow), new FrameworkPropertyMetadata(false));
     ResizeModeProperty.OverrideMetadata(typeof(BorderWindow), new FrameworkPropertyMetadata(ResizeMode.NoResize));
     BorderBrushProperty.OverrideMetadata(typeof(BorderWindow), new FrameworkPropertyMetadata(Brushes.DimGray));
     // override to make border less visible initially for slow machines
     WidthProperty.OverrideMetadata(typeof(BorderWindow), new FrameworkPropertyMetadata(1d));
     HeightProperty.OverrideMetadata(typeof(BorderWindow), new FrameworkPropertyMetadata(1d));
 }
        static NativeFloatingWindow()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(NativeFloatingWindow), new FrameworkPropertyMetadata(typeof(NativeFloatingWindow)));
            ShowInTaskbarProperty.OverrideMetadata(typeof(NativeFloatingWindow), new FrameworkPropertyMetadata(BooleanBoxes.False));
            ShowActivatedProperty.OverrideMetadata(typeof(NativeFloatingWindow), new FrameworkPropertyMetadata(BooleanBoxes.False));

            CommandBinding performCloseCommandBinding      = new CommandBinding(DockCommands.PerformClose, new ExecutedRoutedEventHandler(OnPerformCloseExecuted));
            CommandBinding toggleFloatingCommandBinding    = new CommandBinding(DockCommands.ToggleFloating, new ExecutedRoutedEventHandler(OnToggleFloatingExecuted));
            CommandBinding toggleWindowStateCommandBinding = new CommandBinding(DockCommands.ToggleWindowState, new ExecutedRoutedEventHandler(OnToggleWindowStateExecuted));

            CommandManager.RegisterClassCommandBinding(typeof(NativeFloatingWindow), performCloseCommandBinding);
            CommandManager.RegisterClassCommandBinding(typeof(NativeFloatingWindow), toggleFloatingCommandBinding);
            CommandManager.RegisterClassCommandBinding(typeof(NativeFloatingWindow), toggleWindowStateCommandBinding);
        }
 static ChromeWindow()
 {
     AllowsTransparencyProperty.OverrideMetadata(
         typeof(ChromeWindow),
         new FrameworkPropertyMetadata(true));
     ResizeModeProperty.OverrideMetadata(
         typeof(ChromeWindow),
         new FrameworkPropertyMetadata(ResizeMode.NoResize));
     ShowActivatedProperty.OverrideMetadata(
         typeof(ChromeWindow),
         new FrameworkPropertyMetadata(false));
     ShowInTaskbarProperty.OverrideMetadata(
         typeof(ChromeWindow),
         new FrameworkPropertyMetadata(false));
     VisibilityProperty.OverrideMetadata(
         typeof(ChromeWindow),
         new FrameworkPropertyMetadata(Visibility.Collapsed));
     WindowStyleProperty.OverrideMetadata(
         typeof(ChromeWindow),
         new FrameworkPropertyMetadata(WindowStyle.None));
 }
示例#13
0
 static CompletionWindowBase()
 {
     WindowStyleProperty.OverrideMetadata(typeof(CompletionWindowBase), new FrameworkPropertyMetadata(WindowStyle.None));
     ShowActivatedProperty.OverrideMetadata(typeof(CompletionWindowBase), new FrameworkPropertyMetadata(false));
     ShowInTaskbarProperty.OverrideMetadata(typeof(CompletionWindowBase), new FrameworkPropertyMetadata(false));
 }