C# Class Fluent.RibbonWindow

Inheritance: System.Windows.Window
Datei anzeigen Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
CaptionHeightProperty System.Windows.DependencyProperty
CornerRadiusProperty System.Windows.DependencyProperty
GlassBorderThicknessProperty System.Windows.DependencyProperty
IsAutomaticCollapseEnabledProperty System.Windows.DependencyProperty
IsCollapsedProperty System.Windows.DependencyProperty
IsIconVisibleProperty System.Windows.DependencyProperty
IsNonClientAreaActiveProperty System.Windows.DependencyProperty
ResizeBorderThicknessProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
ApplyCustomChrome void
ClearRoundingRegion void
CreateAndCombineRoundRectRgn void
CreateRoundRectRgn System.IntPtr
DoHitTest System.IntPtr
ExtendGlassFrame void
FixClientRect void
FixFrameworkIssues void
FixRestoreBounds void
FixWindows7Issues void
GetAdjustedWindowRect NativeMethods.Rect
GetHwndState WindowState
HitTestNonClientArea int
IsFlagSet bool
IsInRootPopup bool
IsUniform bool
MaintainIsCollapsed void
ModifyStyle bool
MouseWndProc System.IntPtr
OnCloseCommandExecuted void
OnCoerceStyle object
OnGlassBorderThicknessChanged void
OnMaximizeCommandExecuted void
OnMinimizeCommandExecuted void
OnNormalizeCommandExecuted void
OnSizeChanged void
OnWindowClosed void
OnWindowPropertyChangedThatRequiresTemplateFixup void
RibbonWindow System
RibbonWindow_Loaded void
SetRoundingRegion void
ShowSystemMenuPhysicalCoordinates void
UpdateFrameState void
UpdateSystemMenu void
WndProc System.IntPtr

Public Methods

Method Description
OnApplyTemplate ( ) : void

When overridden in a derived class, is invoked whenever application code or internal processes call M:System.Windows.FrameworkElement.ApplyTemplate.

SetBlur ( bool HideBlur ) : void
ShowSystemMenu ( Point screenLocation ) : void

Display the system menu at a specified location.

Protected Methods

Method Description
OnSourceInitialized ( EventArgs e ) : void

Raises the E:System.Windows.Window.SourceInitialized event.

Private Methods

Method Description
ApplyCustomChrome ( ) : void
ClearRoundingRegion ( ) : void
CreateAndCombineRoundRectRgn ( IntPtr hrgnSource, Rect region, double radius ) : void
CreateRoundRectRgn ( Rect region, double radius ) : IntPtr
DoHitTest ( int msg, IntPtr wParam, IntPtr lParam, bool &handled ) : IntPtr
ExtendGlassFrame ( ) : void
FixClientRect ( IntPtr lParam ) : void
FixFrameworkIssues ( ) : void
FixRestoreBounds ( object sender, EventArgs e ) : void
FixWindows7Issues ( ) : void
GetAdjustedWindowRect ( NativeMethods rcWindow ) : NativeMethods.Rect
GetHwndState ( ) : WindowState

Get the WindowState as the native HWND knows it to be. This isn't necessarily the same as what Window thinks.

HitTestNonClientArea ( Rect windowPosition, Point mousePosition ) : int
IsFlagSet ( int value, int mask ) : bool
IsInRootPopup ( DependencyObject element ) : bool
IsUniform ( System.Windows.CornerRadius cornerRadius ) : bool
MaintainIsCollapsed ( ) : void
ModifyStyle ( int removeStyle, int addStyle ) : bool

Add and remove a native WindowStyle from the HWND.

MouseWndProc ( int code, IntPtr wParam, IntPtr lParam ) : IntPtr
OnCloseCommandExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnCoerceStyle ( DependencyObject d, object basevalue ) : object
OnGlassBorderThicknessChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnMaximizeCommandExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnMinimizeCommandExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnNormalizeCommandExecuted ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
OnWindowClosed ( object sender, EventArgs e ) : void
OnWindowPropertyChangedThatRequiresTemplateFixup ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RibbonWindow ( ) : System

Static constructor

RibbonWindow_Loaded ( object sender, RoutedEventArgs e ) : void
SetRoundingRegion ( NativeMethods wp ) : void
ShowSystemMenuPhysicalCoordinates ( Point physicalScreenLocation ) : void
UpdateFrameState ( bool force ) : void
UpdateSystemMenu ( WindowState assumeState ) : void

Update the items in the system menu based on the current, or assumed, WindowState.

We want to update the menu while we have some control over whether the caption will be repainted.

WndProc ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool &handled ) : IntPtr

Method Details

OnApplyTemplate() public method

When overridden in a derived class, is invoked whenever application code or internal processes call M:System.Windows.FrameworkElement.ApplyTemplate.
public OnApplyTemplate ( ) : void
return void

OnSourceInitialized() protected method

Raises the E:System.Windows.Window.SourceInitialized event.
protected OnSourceInitialized ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
return void

SetBlur() public method

public SetBlur ( bool HideBlur ) : void
HideBlur bool
return void

ShowSystemMenu() public method

Display the system menu at a specified location.
public ShowSystemMenu ( Point screenLocation ) : void
screenLocation Point The location to display the system menu, in logical screen coordinates.
return void

Property Details

CaptionHeightProperty public_oe static_oe property

Using a DependencyProperty as the backing store for CaptionHeight. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows CaptionHeightProperty
return System.Windows.DependencyProperty

CornerRadiusProperty public_oe static_oe property

Using a DependencyProperty as the backing store for CornerRadius. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows CornerRadiusProperty
return System.Windows.DependencyProperty

GlassBorderThicknessProperty public_oe static_oe property

Using a DependencyProperty as the backing store for GlassBorderThickness. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows GlassBorderThicknessProperty
return System.Windows.DependencyProperty

IsAutomaticCollapseEnabledProperty public_oe static_oe property

Using a DependencyProperty as the backing store for IsCollapsed. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsAutomaticCollapseEnabledProperty
return System.Windows.DependencyProperty

IsCollapsedProperty public_oe static_oe property

Using a DependencyProperty as the backing store for IsCollapsed. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsCollapsedProperty
return System.Windows.DependencyProperty

IsIconVisibleProperty public_oe static_oe property

Gets or sets whether icon is visible
public static DependencyProperty,System.Windows IsIconVisibleProperty
return System.Windows.DependencyProperty

IsNonClientAreaActiveProperty public_oe static_oe property

Using a DependencyProperty as the backing store for IsNcActivated. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsNonClientAreaActiveProperty
return System.Windows.DependencyProperty

ResizeBorderThicknessProperty public_oe static_oe property

Using a DependencyProperty as the backing store for ResizeBorderTickness. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ResizeBorderThicknessProperty
return System.Windows.DependencyProperty