C# Класс Fluent.RibbonWindow

Наследование: System.Windows.Window
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnSourceInitialized ( EventArgs e ) : void

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

Приватные методы

Метод Описание
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

Описание методов

OnApplyTemplate() публичный Метод

When overridden in a derived class, is invoked whenever application code or internal processes call M:System.Windows.FrameworkElement.ApplyTemplate.
public OnApplyTemplate ( ) : void
Результат void

OnSourceInitialized() защищенный Метод

Raises the E:System.Windows.Window.SourceInitialized event.
protected OnSourceInitialized ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
Результат void

SetBlur() публичный Метод

public SetBlur ( bool HideBlur ) : void
HideBlur bool
Результат void

ShowSystemMenu() публичный Метод

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.
Результат void

Описание свойств

CaptionHeightProperty публичное статическое свойство

Using a DependencyProperty as the backing store for CaptionHeight. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows CaptionHeightProperty
Результат System.Windows.DependencyProperty

CornerRadiusProperty публичное статическое свойство

Using a DependencyProperty as the backing store for CornerRadius. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows CornerRadiusProperty
Результат System.Windows.DependencyProperty

GlassBorderThicknessProperty публичное статическое свойство

Using a DependencyProperty as the backing store for GlassBorderThickness. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows GlassBorderThicknessProperty
Результат System.Windows.DependencyProperty

IsAutomaticCollapseEnabledProperty публичное статическое свойство

Using a DependencyProperty as the backing store for IsCollapsed. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsAutomaticCollapseEnabledProperty
Результат System.Windows.DependencyProperty

IsCollapsedProperty публичное статическое свойство

Using a DependencyProperty as the backing store for IsCollapsed. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsCollapsedProperty
Результат System.Windows.DependencyProperty

IsIconVisibleProperty публичное статическое свойство

Gets or sets whether icon is visible
public static DependencyProperty,System.Windows IsIconVisibleProperty
Результат System.Windows.DependencyProperty

IsNonClientAreaActiveProperty публичное статическое свойство

Using a DependencyProperty as the backing store for IsNcActivated. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsNonClientAreaActiveProperty
Результат System.Windows.DependencyProperty

ResizeBorderThicknessProperty публичное статическое свойство

Using a DependencyProperty as the backing store for ResizeBorderTickness. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ResizeBorderThicknessProperty
Результат System.Windows.DependencyProperty