C# Класс ModernWPF.Chrome

Attached property class for making a Window modern.
Наследование: System.Windows.Freezable
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
ActiveBorderBrushProperty System.Windows.DependencyProperty
ActiveCaptionBrushProperty System.Windows.DependencyProperty
ActiveCaptionForegroundProperty System.Windows.DependencyProperty
CaptionExtraContentProperty System.Windows.DependencyProperty
CaptionHeightProperty System.Windows.DependencyProperty
ChromeProperty System.Windows.DependencyProperty
InactiveBorderBrushProperty System.Windows.DependencyProperty
InactiveCaptionBrushProperty System.Windows.DependencyProperty
InactiveCaptionForegroundProperty System.Windows.DependencyProperty
IsCaptionProperty System.Windows.DependencyProperty
IsHitTestVisibleProperty System.Windows.DependencyProperty
ResizeBorderThicknessProperty System.Windows.DependencyProperty
ShowCaptionIconProperty System.Windows.DependencyProperty
ShowCaptionTextProperty System.Windows.DependencyProperty
ShowControlBoxesProperty System.Windows.DependencyProperty

Private Properties

Свойство Тип Описание
ChromeChanged void
GetChrome Chrome
SetChrome void

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

Метод Описание
GetCaptionExtraContent ( Window window ) : object

Gets the extra content on the caption area.

GetCaptionHeight ( DependencyObject obj ) : double

Gets the height of the window caption area.

GetIsCaption ( IInputElement inputElement ) : bool

Gets the IsCaption value.

GetIsHitTestVisible ( IInputElement inputElement ) : bool

Gets the IsHitTestVisible property for the element.

GetShowCaptionIcon ( DependencyObject obj ) : bool

Gets the value indicating whether to show caption icon on the window.

GetShowCaptionText ( DependencyObject obj ) : bool

Gets the value indicating whether to show caption text on the window.

GetShowControlBoxes ( DependencyObject obj ) : bool

Gets whether to show control boxes in ModernWindow style.

SetCaptionExtraContent ( Window window, object value ) : void

Sets the extra content on the caption area.

SetCaptionHeight ( DependencyObject obj, double value ) : void

Sets the height of the window caption area.

SetIsCaption ( IInputElement inputElement, bool isCaption ) : void

Sets the IsCaption value.

SetIsHitTestVisible ( IInputElement inputElement, bool hitTestVisible ) : void

Sets the IsHitTestVisible property for the element.

SetShowCaptionIcon ( DependencyObject obj, bool value ) : void

Sets the value indicating whether to show caption text on the window.

SetShowCaptionText ( DependencyObject obj, bool value ) : void

Gets the value indicating whether to show caption text on the window.

SetShowControlBoxes ( DependencyObject obj, bool value ) : void

Sets whether to show control boxes.

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

Метод Описание
CreateInstanceCore ( ) : System.Windows.Freezable

When implemented in a derived class, creates a new instance of the T:System.Windows.Freezable derived class.

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

Метод Описание
ChromeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
GetChrome ( Window window ) : Chrome
SetChrome ( Window window, Chrome chrome ) : void

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

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

When implemented in a derived class, creates a new instance of the T:System.Windows.Freezable derived class.
protected CreateInstanceCore ( ) : System.Windows.Freezable
Результат System.Windows.Freezable

GetCaptionExtraContent() публичный статический Метод

Gets the extra content on the caption area.
public static GetCaptionExtraContent ( Window window ) : object
window System.Windows.Window The object.
Результат object

GetCaptionHeight() публичный статический Метод

Gets the height of the window caption area.
public static GetCaptionHeight ( DependencyObject obj ) : double
obj System.Windows.DependencyObject The object.
Результат double

GetIsCaption() публичный статический Метод

Gets the IsCaption value.
public static GetIsCaption ( IInputElement inputElement ) : bool
inputElement IInputElement The input element.
Результат bool

GetIsHitTestVisible() публичный статический Метод

Gets the IsHitTestVisible property for the element.
public static GetIsHitTestVisible ( IInputElement inputElement ) : bool
inputElement IInputElement The input element.
Результат bool

GetShowCaptionIcon() публичный статический Метод

Gets the value indicating whether to show caption icon on the window.
public static GetShowCaptionIcon ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject The object.
Результат bool

GetShowCaptionText() публичный статический Метод

Gets the value indicating whether to show caption text on the window.
public static GetShowCaptionText ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject The object.
Результат bool

GetShowControlBoxes() публичный статический Метод

Gets whether to show control boxes in ModernWindow style.
public static GetShowControlBoxes ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject The object.
Результат bool

SetCaptionExtraContent() публичный статический Метод

Sets the extra content on the caption area.
public static SetCaptionExtraContent ( Window window, object value ) : void
window System.Windows.Window The object.
value object The value.
Результат void

SetCaptionHeight() публичный статический Метод

Sets the height of the window caption area.
public static SetCaptionHeight ( DependencyObject obj, double value ) : void
obj System.Windows.DependencyObject The object.
value double The value.
Результат void

SetIsCaption() публичный статический Метод

Sets the IsCaption value.
public static SetIsCaption ( IInputElement inputElement, bool isCaption ) : void
inputElement IInputElement The input element.
isCaption bool if set to true then the element is hit test visible as caption.
Результат void

SetIsHitTestVisible() публичный статический Метод

Sets the IsHitTestVisible property for the element.
public static SetIsHitTestVisible ( IInputElement inputElement, bool hitTestVisible ) : void
inputElement IInputElement The input element.
hitTestVisible bool if set to true then the element is hit test visible in chrome.
Результат void

SetShowCaptionIcon() публичный статический Метод

Sets the value indicating whether to show caption text on the window.
public static SetShowCaptionIcon ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject The object.
value bool if set to true [value].
Результат void

SetShowCaptionText() публичный статический Метод

Gets the value indicating whether to show caption text on the window.
public static SetShowCaptionText ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject The object.
value bool if set to true then show window title.
Результат void

SetShowControlBoxes() публичный статический Метод

Sets whether to show control boxes.
public static SetShowControlBoxes ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject The object.
value bool if set to true then show the control boxes.
Результат void

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

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

The dependency property for ActiveBorderBrush.
public static DependencyProperty,System.Windows ActiveBorderBrushProperty
Результат System.Windows.DependencyProperty

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

The dependency property for ActiveCaptionBrush.
public static DependencyProperty,System.Windows ActiveCaptionBrushProperty
Результат System.Windows.DependencyProperty

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

The dependency property for ActiveCaptionForeground.
public static DependencyProperty,System.Windows ActiveCaptionForegroundProperty
Результат System.Windows.DependencyProperty

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

The dependency property for CaptionExtraContent.
public static DependencyProperty,System.Windows CaptionExtraContentProperty
Результат System.Windows.DependencyProperty

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

The dependency property for CaptionHeight.
public static DependencyProperty,System.Windows CaptionHeightProperty
Результат System.Windows.DependencyProperty

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

The modern chrome attached property.
public static DependencyProperty,System.Windows ChromeProperty
Результат System.Windows.DependencyProperty

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

The dependency property for InactiveBorderBrush.
public static DependencyProperty,System.Windows InactiveBorderBrushProperty
Результат System.Windows.DependencyProperty

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

The dependency property for InactiveCaptionBrush.
public static DependencyProperty,System.Windows InactiveCaptionBrushProperty
Результат System.Windows.DependencyProperty

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

The dependency property for InactiveCaptionForeground.
public static DependencyProperty,System.Windows InactiveCaptionForegroundProperty
Результат System.Windows.DependencyProperty

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

Attached property to mark a UI element as caption during hit-tests.
public static DependencyProperty,System.Windows IsCaptionProperty
Результат System.Windows.DependencyProperty

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

Attached property to mark a UI element as hit-testable when in the window caption area.
public static DependencyProperty,System.Windows IsHitTestVisibleProperty
Результат System.Windows.DependencyProperty

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

The dependency property for ResizeBorderThickness.
public static DependencyProperty,System.Windows ResizeBorderThicknessProperty
Результат System.Windows.DependencyProperty

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

The dependency property for ShowCaptionIcon.
public static DependencyProperty,System.Windows ShowCaptionIconProperty
Результат System.Windows.DependencyProperty

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

The dependency property for ShowCaptionText.
public static DependencyProperty,System.Windows ShowCaptionTextProperty
Результат System.Windows.DependencyProperty

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

The dependency property for ShowControlBoxes.
public static DependencyProperty,System.Windows ShowControlBoxesProperty
Результат System.Windows.DependencyProperty