Class TextBoxChrome
Creates a theme-specific look for TextBox elements.
Inheritance
Implements
Inherited Members
Namespace: PresentationTheme.AeroLite.Win10
Assembly: PresentationTheme.AeroLite.Win10.dll
Syntax
[TemplateVisualState(GroupName = "BackgroundStates", Name = "BackgroundDisabled")]
[TemplateVisualState(GroupName = "BackgroundStates", Name = "BackgroundReadOnly")]
[TemplateVisualState(GroupName = "BackgroundStates", Name = "BackgroundFocused")]
[TemplateVisualState(GroupName = "BackgroundStates", Name = "BackgroundHot")]
[TemplateVisualState(GroupName = "BackgroundStates", Name = "BackgroundNormal")]
[TemplateVisualState(GroupName = "BorderCommonStates", Name = "BorderDisabled")]
[TemplateVisualState(GroupName = "BorderCommonStates", Name = "BorderFocused")]
[TemplateVisualState(GroupName = "BorderCommonStates", Name = "BorderHot")]
[TemplateVisualState(GroupName = "BorderCommonStates", Name = "BorderNormal")]
public class TextBoxChrome : ContentControl, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild
Remarks
The actual appearance of a TextBox is dependent on which theme is active on the user's system. The properties of this class allow WPF to set the appearance based on the current theme.
TextBoxChrome does not actually render a button but instead provides visual states allowing its Template to accurately render the appearance of buttons.
Fields
| Improve this Doc View SourceRenderEnabledProperty
Identifies the RenderEnabled dependency property.
Declaration
public static readonly DependencyProperty RenderEnabledProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RenderFocusedProperty
Identifies the RenderFocused dependency property.
Declaration
public static readonly DependencyProperty RenderFocusedProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RenderHotProperty
Identifies the RenderHot dependency property.
Declaration
public static readonly DependencyProperty RenderHotProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RenderReadOnlyProperty
Identifies the RenderReadOnly dependency property.
Declaration
public static readonly DependencyProperty RenderReadOnlyProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceRenderEnabled
Gets or sets a value indicating whether the textbox chrome should render an enabled state.
Declaration
public bool RenderEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true if the textbox chrome appears enabled; otherwise false. |
Remarks
Dependency Property Information
Identifier field | RenderEnabledProperty |
Metadata properties set to true | None |
RenderFocused
Gets or sets whether the textbox chrome shows a focused state.
Declaration
public bool RenderFocused { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true if the textbox chrome appears focused; otherwise false. |
Remarks
Dependency Property Information
Identifier field | RenderFocusedProperty |
Metadata properties set to true | None |
RenderHot
Gets or sets a value indicating whether the textbox chrome should render a hot state (i.e., as if the mouse is over it).
Declaration
public bool RenderHot { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true if the textbox chrome appears as if the mouse is over it; otherwise false. |
Remarks
Dependency Property Information
Identifier field | RenderHotProperty |
Metadata properties set to true | None |
RenderReadOnly
Gets or sets a value indicating whether the textbox chrome should render a read-only state.
Declaration
public bool RenderReadOnly { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true if the textbox chrome appears read-only; otherwise false. |
Remarks
Dependency Property Information
Identifier field | RenderReadOnlyProperty |
Metadata properties set to true | None |
Methods
| Improve this Doc View SourceChangeVisualState(Boolean)
Changes the visual state of the textbox chrome.
Declaration
protected virtual void ChangeVisualState(bool useTransitions)
Parameters
Type | Name | Description |
---|---|---|
Boolean | useTransitions | true to use a VisualTransition object to transition between states; otherwise false. |
See Also
| Improve this Doc View SourceOnApplyTemplate()
Declaration
public override void OnApplyTemplate()