GroupBox
GroupBox
GroupBox
GroupBox
Class
Definition
Represents a control that creates a container that has a border and a header for user interface (UI) content.
public ref class GroupBox : System::Windows::Controls::HeaderedContentControl
[System.Windows.Localizability(System.Windows.LocalizationCategory.None, Readability=System.Windows.Readability.Unreadable)]
public class GroupBox : System.Windows.Controls.HeaderedContentControl
type GroupBox = class
inherit HeaderedContentControl
Public Class GroupBox
Inherits HeaderedContentControl
- Inheritance
-
GroupBoxGroupBoxGroupBoxGroupBox
- Attributes
Examples
The following example defines a GroupBox control that is titled My Employee Info. The control encloses a TabControl and a Button in a StackPanel. The example sets the Header property to a Label.
<GroupBox Width="300" Height="410">
<GroupBox.Header>
<Label>Employee Data</Label>
</GroupBox.Header>
<StackPanel>
<TabControl Name="myTabControl"
TabStripPlacement="Top"
Margin="0, 0, 0, 10" Height="350"
>
<TabItem Name="PersonalInfo">
<TabItem.Header>_Personal Info</TabItem.Header>
<StackPanel>
<TextBlock>Employee</TextBlock>
<TextBlock>Select your name</TextBlock>
<ListBox Name="empName" SelectionChanged="updateSummary">
<ListBoxItem IsSelected="true">Esther</ListBoxItem>
<ListBoxItem>George</ListBoxItem>
<ListBoxItem>Alan</ListBoxItem>
<ListBoxItem>Eric</ListBoxItem>
</ListBox>
</StackPanel>
</TabItem>
<TabItem>
<TabItem.Header>_Job Info</TabItem.Header>
<StackPanel>
<TextBlock>Select a job</TextBlock>
<ListBox Name ="job" SelectionChanged="updateSummary">
<ListBoxItem IsSelected="true">Programmer</ListBoxItem>
<ListBoxItem>Tester</ListBoxItem>
<ListBoxItem>Writer</ListBoxItem>
<ListBoxItem>Manager</ListBoxItem>
</ListBox>
</StackPanel>
</TabItem>
<TabItem Name="Skill">
<TabItem.Header>_Skill</TabItem.Header>
<StackPanel>
<TextBlock>
Select your strongest skill
</TextBlock>
<ListBox Name="skills" SelectionChanged="updateSummary">
<ListBoxItem IsSelected="true">C#</ListBoxItem>
<ListBoxItem>Visual Basic</ListBoxItem>
<ListBoxItem>.NET</ListBoxItem>
<ListBoxItem>JScript</ListBoxItem>
</ListBox>
</StackPanel>
</TabItem>
<TabItem Name="Summary" >
<TabItem.Header>Su_mmary</TabItem.Header>
<StackPanel>
<TextBlock Name="emp"/>
<TextBlock Name="ejob"/>
<TextBlock Name="eskill"/>
</StackPanel>
</TabItem>
</TabControl>
<Button Content="Show Summary" Click="goToSummaryTab"/>
</StackPanel>
</GroupBox>
You must also define an event handler on a code-behind page in order to handle the Click event that occurs when a user clicks the Show Summary button.
Remarks
GroupBox is a HeaderedContentControl, which means its Content and Header properties can be of any type (such as string, image, or panel). For more information, see the HeaderedContentControl class.
The following illustration is an example of a GroupBox that contains a TabControl and a Button that are enclosed in a StackPanel.
Customizing the GroupBox Control
To apply the same property settings to multiple GroupBox controls, use the Style property. You can modify the default ControlTemplate to give the control a unique appearance. For more information about creating a ControlTemplate, see Customizing the Appearance of an Existing Control by Creating a ControlTemplate. To see the parts and states that are specific to the GroupBox, see GroupBox Styles and Templates.
Dependency properties for this control might be set by the control's default style. If a property is set by a default style, the property might change from its default value when the control appears in the application. The default style is determined by which desktop theme is used when the application is running. For more information, see Default WPF Themes.
Note
Setting a visual property only has an effect if that property is both present in the control's default template and is set by using a TemplateBinding. You can find a list of visual properties in the Changing the Visual Structure of a Control section in the Customizing the Appearance of an Existing Control by Creating a ControlTemplate article.
Constructors
GroupBox() GroupBox() GroupBox() GroupBox() |
Initializes a new instance of the GroupBox class. |
Methods
Properties
ActualHeight ActualHeight ActualHeight ActualHeight |
Gets the rendered height of this element. (Inherited from FrameworkElement) |
ActualWidth ActualWidth ActualWidth ActualWidth |
Gets the rendered width of this element. (Inherited from FrameworkElement) |
AllowDrop AllowDrop AllowDrop AllowDrop |
Gets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation. This is a dependency property. (Inherited from UIElement) |
AreAnyTouchesCaptured AreAnyTouchesCaptured AreAnyTouchesCaptured AreAnyTouchesCaptured |
Gets a value that indicates whether at least one touch is captured to this element. (Inherited from UIElement) |
AreAnyTouchesCapturedWithin AreAnyTouchesCapturedWithin AreAnyTouchesCapturedWithin AreAnyTouchesCapturedWithin |
Gets a value that indicates whether at least one touch is captured to this element or to any child elements in its visual tree. (Inherited from UIElement) |
AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver |
Gets a value that indicates whether at least one touch is pressed over this element. (Inherited from UIElement) |
AreAnyTouchesOver AreAnyTouchesOver AreAnyTouchesOver AreAnyTouchesOver |
Gets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree. (Inherited from UIElement) |
Background Background Background Background |
Gets or sets a brush that describes the background of a control. (Inherited from Control) |
BindingGroup BindingGroup BindingGroup BindingGroup |
Gets or sets the BindingGroup that is used for the element. (Inherited from FrameworkElement) |
BitmapEffect BitmapEffect BitmapEffect BitmapEffect |
Gets or sets a bitmap effect that applies directly to the rendered content for this element. This is a dependency property. (Inherited from UIElement) |
BitmapEffectInput BitmapEffectInput BitmapEffectInput BitmapEffectInput |
Gets or sets an input source for the bitmap effect that applies directly to the rendered content for this element. This is a dependency property. (Inherited from UIElement) |
BorderBrush BorderBrush BorderBrush BorderBrush |
Gets or sets a brush that describes the border background of a control. (Inherited from Control) |
BorderThickness BorderThickness BorderThickness BorderThickness |
Gets or sets the border thickness of a control. (Inherited from Control) |
CacheMode CacheMode CacheMode CacheMode |
Gets or sets a cached representation of the UIElement. (Inherited from UIElement) |
Clip Clip Clip Clip |
Gets or sets the geometry used to define the outline of the contents of an element. This is a dependency property. (Inherited from UIElement) |
ClipToBounds ClipToBounds ClipToBounds ClipToBounds |
Gets or sets a value indicating whether to clip the content of this element (or content coming from the child elements of this element) to fit into the size of the containing element. This is a dependency property. (Inherited from UIElement) |
CommandBindings CommandBindings CommandBindings CommandBindings |
Gets a collection of CommandBinding objects associated with this element. A CommandBinding enables command handling for this element, and declares the linkage between a command, its events, and the handlers attached by this element. (Inherited from UIElement) |
Content Content Content Content |
Gets or sets the content of a ContentControl. (Inherited from ContentControl) |
ContentStringFormat ContentStringFormat ContentStringFormat ContentStringFormat |
Gets or sets a composite string that specifies how to format the Content property if it is displayed as a string. (Inherited from ContentControl) |
ContentTemplate ContentTemplate ContentTemplate ContentTemplate |
Gets or sets the data template used to display the content of the ContentControl. (Inherited from ContentControl) |
ContentTemplateSelector ContentTemplateSelector ContentTemplateSelector ContentTemplateSelector |
Gets or sets a template selector that enables an application writer to provide custom template-selection logic. (Inherited from ContentControl) |
ContextMenu ContextMenu ContextMenu ContextMenu |
Gets or sets the context menu element that should appear whenever the context menu is requested through user interface (UI) from within this element. (Inherited from FrameworkElement) |
Cursor Cursor Cursor Cursor |
Gets or sets the cursor that displays when the mouse pointer is over this element. (Inherited from FrameworkElement) |
DataContext DataContext DataContext DataContext |
Gets or sets the data context for an element when it participates in data binding. (Inherited from FrameworkElement) |
DefaultStyleKey DefaultStyleKey DefaultStyleKey DefaultStyleKey |
Gets or sets the key to use to reference the style for this control, when theme styles are used or defined. (Inherited from FrameworkElement) |
DependencyObjectType DependencyObjectType DependencyObjectType DependencyObjectType |
Gets the DependencyObjectType that wraps the CLR type of this instance. (Inherited from DependencyObject) |
DesiredSize DesiredSize DesiredSize DesiredSize |
Gets the size that this element computed during the measure pass of the layout process. (Inherited from UIElement) |
Dispatcher Dispatcher Dispatcher Dispatcher |
Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject) |
Effect Effect Effect Effect |
Gets or sets the bitmap effect to apply to the UIElement. This is a dependency property. (Inherited from UIElement) |
FlowDirection FlowDirection FlowDirection FlowDirection |
Gets or sets the direction that text and other user interface (UI) elements flow within any parent element that controls their layout. (Inherited from FrameworkElement) |
Focusable Focusable Focusable Focusable |
Gets or sets a value that indicates whether the element can receive focus. This is a dependency property. (Inherited from UIElement) |
FocusVisualStyle FocusVisualStyle FocusVisualStyle FocusVisualStyle |
Gets or sets a property that enables customization of appearance, effects, or other style characteristics that will apply to this element when it captures keyboard focus. (Inherited from FrameworkElement) |
FontFamily FontFamily FontFamily FontFamily |
Gets or sets the font family of the control. (Inherited from Control) |
FontSize FontSize FontSize FontSize |
Gets or sets the font size. (Inherited from Control) |
FontStretch FontStretch FontStretch FontStretch |
Gets or sets the degree to which a font is condensed or expanded on the screen. (Inherited from Control) |
FontStyle FontStyle FontStyle FontStyle |
Gets or sets the font style. (Inherited from Control) |
FontWeight FontWeight FontWeight FontWeight |
Gets or sets the weight or thickness of the specified font. (Inherited from Control) |
ForceCursor ForceCursor ForceCursor ForceCursor |
Gets or sets a value that indicates whether this FrameworkElement should force the user interface (UI) to render the cursor as declared by the Cursor property. (Inherited from FrameworkElement) |
Foreground Foreground Foreground Foreground |
Gets or sets a brush that describes the foreground color. (Inherited from Control) |
HandlesScrolling HandlesScrolling HandlesScrolling HandlesScrolling |
Gets a value that indicates whether a control supports scrolling. (Inherited from Control) |
HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties |
Gets a value indicating whether this element has any animated properties. (Inherited from UIElement) |
HasContent HasContent HasContent HasContent |
Gets a value that indicates whether the ContentControl contains content. (Inherited from ContentControl) |
HasEffectiveKeyboardFocus HasEffectiveKeyboardFocus HasEffectiveKeyboardFocus HasEffectiveKeyboardFocus |
Gets a value that indicates whether the UIElement has focus. (Inherited from UIElement) |
HasHeader HasHeader HasHeader HasHeader |
Gets a value that indicates whether the header is |
Header Header Header Header |
Gets or sets the data used for the header of each control. (Inherited from HeaderedContentControl) |
HeaderStringFormat HeaderStringFormat HeaderStringFormat HeaderStringFormat |
Gets or sets a composite string that specifies how to format the Header property if it is displayed as a string. (Inherited from HeaderedContentControl) |
HeaderTemplate HeaderTemplate HeaderTemplate HeaderTemplate |
Gets or sets the template used to display the content of the control's header. (Inherited from HeaderedContentControl) |
HeaderTemplateSelector HeaderTemplateSelector HeaderTemplateSelector HeaderTemplateSelector |
Gets or sets a data template selector that provides custom logic for choosing the template used to display the header. (Inherited from HeaderedContentControl) |
Height Height Height Height |
Gets or sets the suggested height of the element. (Inherited from FrameworkElement) |
HorizontalAlignment HorizontalAlignment HorizontalAlignment HorizontalAlignment |
Gets or sets the horizontal alignment characteristics applied to this element when it is composed within a parent element, such as a panel or items control. (Inherited from FrameworkElement) |
HorizontalContentAlignment HorizontalContentAlignment HorizontalContentAlignment HorizontalContentAlignment |
Gets or sets the horizontal alignment of the control's content. (Inherited from Control) |
InheritanceBehavior InheritanceBehavior InheritanceBehavior InheritanceBehavior |
Gets or sets the scope limits for property value inheritance, resource key lookup, and RelativeSource FindAncestor lookup. (Inherited from FrameworkElement) |
InputBindings InputBindings InputBindings InputBindings |
Gets the collection of input bindings associated with this element. (Inherited from UIElement) |
InputScope InputScope InputScope InputScope |
Gets or sets the context for input used by this FrameworkElement. (Inherited from FrameworkElement) |
IsArrangeValid IsArrangeValid IsArrangeValid IsArrangeValid |
Gets a value indicating whether the computed size and position of child elements in this element's layout are valid. (Inherited from UIElement) |
IsEnabled IsEnabled IsEnabled IsEnabled |
Gets or sets a value indicating whether this element is enabled in the user interface (UI). This is a dependency property. (Inherited from UIElement) |
IsEnabledCore IsEnabledCore IsEnabledCore IsEnabledCore |
Gets a value that becomes the return value of IsEnabled in derived classes. (Inherited from UIElement) |
IsFocused IsFocused IsFocused IsFocused |
Gets a value that determines whether this element has logical focus. This is a dependency property. (Inherited from UIElement) |
IsHitTestVisible IsHitTestVisible IsHitTestVisible IsHitTestVisible |
Gets or sets a value that declares whether this element can possibly be returned as a hit test result from some portion of its rendered content. This is a dependency property. (Inherited from UIElement) |
IsInitialized IsInitialized IsInitialized IsInitialized |
Gets a value that indicates whether this element has been initialized, either during processing by a XAML processor, or by explicitly having its EndInit() method called. (Inherited from FrameworkElement) |
IsInputMethodEnabled IsInputMethodEnabled IsInputMethodEnabled IsInputMethodEnabled |
Gets a value indicating whether an input method system, such as an Input Method Editor (IME), is enabled for processing the input to this element. (Inherited from UIElement) |
IsKeyboardFocused IsKeyboardFocused IsKeyboardFocused IsKeyboardFocused |
Gets a value indicating whether this element has keyboard focus. This is a dependency property. (Inherited from UIElement) |
IsKeyboardFocusWithin IsKeyboardFocusWithin IsKeyboardFocusWithin IsKeyboardFocusWithin |
Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements. This is a dependency property. (Inherited from UIElement) |
IsLoaded IsLoaded IsLoaded IsLoaded |
Gets a value that indicates whether this element has been loaded for presentation. (Inherited from FrameworkElement) |
IsManipulationEnabled IsManipulationEnabled IsManipulationEnabled IsManipulationEnabled |
Gets or sets a value that indicates whether manipulation events are enabled on this UIElement. (Inherited from UIElement) |
IsMeasureValid IsMeasureValid IsMeasureValid IsMeasureValid |
Gets a value indicating whether the current size returned by layout measure is valid. (Inherited from UIElement) |
IsMouseCaptured IsMouseCaptured IsMouseCaptured IsMouseCaptured |
Gets a value indicating whether the mouse is captured to this element. This is a dependency property. (Inherited from UIElement) |
IsMouseCaptureWithin IsMouseCaptureWithin IsMouseCaptureWithin IsMouseCaptureWithin |
Gets a value that determines whether mouse capture is held by this element or by child elements in its visual tree. This is a dependency property. (Inherited from UIElement) |
IsMouseDirectlyOver IsMouseDirectlyOver IsMouseDirectlyOver IsMouseDirectlyOver |
Gets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account. This is a dependency property. (Inherited from UIElement) |
IsMouseOver IsMouseOver IsMouseOver IsMouseOver |
Gets a value indicating whether the mouse pointer is located over this element (including child elements in the visual tree). This is a dependency property. (Inherited from UIElement) |
IsSealed IsSealed IsSealed IsSealed |
Gets a value that indicates whether this instance is currently sealed (read-only). (Inherited from DependencyObject) |
IsStylusCaptured IsStylusCaptured IsStylusCaptured IsStylusCaptured |
Gets a value indicating whether the stylus is captured by this element. This is a dependency property. (Inherited from UIElement) |
IsStylusCaptureWithin IsStylusCaptureWithin IsStylusCaptureWithin IsStylusCaptureWithin |
Gets a value that determines whether stylus capture is held by this element, or an element within the element bounds and its visual tree. This is a dependency property. (Inherited from UIElement) |
IsStylusDirectlyOver IsStylusDirectlyOver IsStylusDirectlyOver IsStylusDirectlyOver |
Gets a value that indicates whether the stylus position corresponds to hit test results, which take element compositing into account. This is a dependency property. (Inherited from UIElement) |
IsStylusOver IsStylusOver IsStylusOver IsStylusOver |
Gets a value indicating whether the stylus cursor is located over this element (including visual child elements). This is a dependency property. (Inherited from UIElement) |
IsTabStop IsTabStop IsTabStop IsTabStop |
Gets or sets a value that indicates whether a control is included in tab navigation. (Inherited from Control) |
IsVisible IsVisible IsVisible IsVisible |
Gets a value indicating whether this element is visible in the user interface (UI). This is a dependency property. (Inherited from UIElement) |
Language Language Language Language |
Gets or sets localization/globalization language information that applies to an element. (Inherited from FrameworkElement) |
LayoutTransform LayoutTransform LayoutTransform LayoutTransform |
Gets or sets a graphics transformation that should apply to this element when layout is performed. (Inherited from FrameworkElement) |
LogicalChildren LogicalChildren LogicalChildren LogicalChildren |
Gets an enumerator to the logical child elements of the ControlTemplate. (Inherited from HeaderedContentControl) |
Margin Margin Margin Margin |
Gets or sets the outer margin of an element. (Inherited from FrameworkElement) |
MaxHeight MaxHeight MaxHeight MaxHeight |
Gets or sets the maximum height constraint of the element. (Inherited from FrameworkElement) |
MaxWidth MaxWidth MaxWidth MaxWidth |
Gets or sets the maximum width constraint of the element. (Inherited from FrameworkElement) |
MinHeight MinHeight MinHeight MinHeight |
Gets or sets the minimum height constraint of the element. (Inherited from FrameworkElement) |
MinWidth MinWidth MinWidth MinWidth |
Gets or sets the minimum width constraint of the element. (Inherited from FrameworkElement) |
Name Name Name Name |
Gets or sets the identifying name of the element. The name provides a reference so that code-behind, such as event handler code, can refer to a markup element after it is constructed during processing by a XAML processor. (Inherited from FrameworkElement) |
Opacity Opacity Opacity Opacity |
Gets or sets the opacity factor applied to the entire UIElement when it is rendered in the user interface (UI). This is a dependency property. (Inherited from UIElement) |
OpacityMask OpacityMask OpacityMask OpacityMask |
Gets or sets an opacity mask, as a Brush implementation that is applied to any alpha-channel masking for the rendered content of this element. This is a dependency property. (Inherited from UIElement) |
OverridesDefaultStyle OverridesDefaultStyle OverridesDefaultStyle OverridesDefaultStyle |
Gets or sets a value that indicates whether this element incorporates style properties from theme styles. (Inherited from FrameworkElement) |
Padding Padding Padding Padding |
Gets or sets the padding inside a control. (Inherited from Control) |
Parent Parent Parent Parent |
Gets the logical parent element of this element. (Inherited from FrameworkElement) |
PersistId PersistId PersistId PersistId |
Gets a value that uniquely identifies this element. (Inherited from UIElement) |
RenderSize RenderSize RenderSize RenderSize |
Gets (or sets) the final render size of this element. (Inherited from UIElement) |
RenderTransform RenderTransform RenderTransform RenderTransform |
Gets or sets transform information that affects the rendering position of this element. This is a dependency property. (Inherited from UIElement) |
RenderTransformOrigin RenderTransformOrigin RenderTransformOrigin RenderTransformOrigin |
Gets or sets the center point of any possible render transform declared by RenderTransform, relative to the bounds of the element. This is a dependency property. (Inherited from UIElement) |
Resources Resources Resources Resources |
Gets or sets the locally-defined resource dictionary. (Inherited from FrameworkElement) |
SnapsToDevicePixels SnapsToDevicePixels SnapsToDevicePixels SnapsToDevicePixels |
Gets or sets a value that determines whether rendering for this element should use device-specific pixel settings during rendering. This is a dependency property. (Inherited from UIElement) |
Style Style Style Style |
Gets or sets the style used by this element when it is rendered. (Inherited from FrameworkElement) |
StylusPlugIns StylusPlugIns StylusPlugIns StylusPlugIns |
Gets a collection of all stylus plug-in (customization) objects associated with this element. (Inherited from UIElement) |
TabIndex TabIndex TabIndex TabIndex |
Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by using the TAB key. (Inherited from Control) |
Tag Tag Tag Tag |
Gets or sets an arbitrary object value that can be used to store custom information about this element. (Inherited from FrameworkElement) |
Template Template Template Template |
Gets or sets a control template. (Inherited from Control) |
TemplatedParent TemplatedParent TemplatedParent TemplatedParent |
Gets a reference to the template parent of this element. This property is not relevant if the element was not created through a template. (Inherited from FrameworkElement) |
ToolTip ToolTip ToolTip ToolTip |
Gets or sets the tool-tip object that is displayed for this element in the user interface (UI). (Inherited from FrameworkElement) |
TouchesCaptured TouchesCaptured TouchesCaptured TouchesCaptured |
Gets all touch devices that are captured to this element. (Inherited from UIElement) |
TouchesCapturedWithin TouchesCapturedWithin TouchesCapturedWithin TouchesCapturedWithin |
Gets all touch devices that are captured to this element or any child elements in its visual tree. (Inherited from UIElement) |
TouchesDirectlyOver TouchesDirectlyOver TouchesDirectlyOver TouchesDirectlyOver |
Gets all touch devices that are over this element. (Inherited from UIElement) |
TouchesOver TouchesOver TouchesOver TouchesOver |
Gets all touch devices that are over this element or any child elements in its visual tree. (Inherited from UIElement) |
Triggers Triggers Triggers Triggers |
Gets the collection of triggers established directly on this element, or in child elements. (Inherited from FrameworkElement) |
Uid Uid Uid Uid |
Gets or sets the unique identifier (for localization) for this element. This is a dependency property. (Inherited from UIElement) |
UseLayoutRounding UseLayoutRounding UseLayoutRounding UseLayoutRounding |
Gets or sets a value that indicates whether layout rounding should be applied to this element's size and position during layout. (Inherited from FrameworkElement) |
VerticalAlignment VerticalAlignment VerticalAlignment VerticalAlignment |
Gets or sets the vertical alignment characteristics applied to this element when it is composed within a parent element such as a panel or items control. (Inherited from FrameworkElement) |
VerticalContentAlignment VerticalContentAlignment VerticalContentAlignment VerticalContentAlignment |
Gets or sets the vertical alignment of the control's content. (Inherited from Control) |
Visibility Visibility Visibility Visibility |
Gets or sets the user interface (UI) visibility of this element. This is a dependency property. (Inherited from UIElement) |
VisualBitmapEffect VisualBitmapEffect VisualBitmapEffect VisualBitmapEffect |
Gets or sets the BitmapEffect value for the Visual. (Inherited from Visual) |
VisualBitmapEffectInput VisualBitmapEffectInput VisualBitmapEffectInput VisualBitmapEffectInput |
Gets or sets the BitmapEffectInput value for the Visual. (Inherited from Visual) |
VisualBitmapScalingMode VisualBitmapScalingMode VisualBitmapScalingMode VisualBitmapScalingMode |
Gets or sets the BitmapScalingMode for the Visual. (Inherited from Visual) |
VisualCacheMode VisualCacheMode VisualCacheMode VisualCacheMode |
Gets or sets a cached representation of the Visual. (Inherited from Visual) |
VisualChildrenCount VisualChildrenCount VisualChildrenCount VisualChildrenCount |
Gets the number of visual child elements within this element. (Inherited from FrameworkElement) |
VisualClearTypeHint VisualClearTypeHint VisualClearTypeHint VisualClearTypeHint |
Gets or sets the ClearTypeHint that determines how ClearType is rendered in the Visual. (Inherited from Visual) |
VisualClip VisualClip VisualClip VisualClip |
Gets or sets the clip region of the Visual as a Geometry value. (Inherited from Visual) |
VisualEdgeMode VisualEdgeMode VisualEdgeMode VisualEdgeMode |
Gets or sets the edge mode of the Visual as an EdgeMode value. (Inherited from Visual) |
VisualEffect VisualEffect VisualEffect VisualEffect |
Gets or sets the bitmap effect to apply to the Visual. (Inherited from Visual) |
VisualOffset VisualOffset VisualOffset VisualOffset |
Gets or sets the offset value of the visual object. (Inherited from Visual) |
VisualOpacity VisualOpacity VisualOpacity VisualOpacity |
Gets or sets the opacity of the Visual. (Inherited from Visual) |
VisualOpacityMask VisualOpacityMask VisualOpacityMask VisualOpacityMask |
Gets or sets the Brush value that represents the opacity mask of the Visual. (Inherited from Visual) |
VisualParent VisualParent VisualParent VisualParent |
Gets the visual tree parent of the visual object. (Inherited from Visual) |
VisualScrollableAreaClip VisualScrollableAreaClip VisualScrollableAreaClip VisualScrollableAreaClip |
Gets or sets a clipped scrollable area for the Visual. (Inherited from Visual) |
VisualTextHintingMode VisualTextHintingMode VisualTextHintingMode VisualTextHintingMode |
Gets or sets the TextHintingMode of the Visual. (Inherited from Visual) |
VisualTextRenderingMode VisualTextRenderingMode VisualTextRenderingMode VisualTextRenderingMode |
Gets or sets the TextRenderingMode of the Visual. (Inherited from Visual) |
VisualTransform VisualTransform VisualTransform VisualTransform |
Gets or sets the Transform value for the Visual. (Inherited from Visual) |
VisualXSnappingGuidelines VisualXSnappingGuidelines VisualXSnappingGuidelines VisualXSnappingGuidelines |
Gets or sets the x-coordinate (vertical) guideline collection. (Inherited from Visual) |
VisualYSnappingGuidelines VisualYSnappingGuidelines VisualYSnappingGuidelines VisualYSnappingGuidelines |
Gets or sets the y-coordinate (horizontal) guideline collection. (Inherited from Visual) |
Width Width Width Width |
Gets or sets the width of the element. (Inherited from FrameworkElement) |
Explicit Interface Implementations
IAddChild.AddChild(Object) IAddChild.AddChild(Object) IAddChild.AddChild(Object) IAddChild.AddChild(Object) |
This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. (Inherited from ContentControl) |
IAddChild.AddText(String) IAddChild.AddText(String) IAddChild.AddText(String) IAddChild.AddText(String) |
This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. (Inherited from ContentControl) |
IQueryAmbient.IsAmbientPropertyAvailable(String) IQueryAmbient.IsAmbientPropertyAvailable(String) IQueryAmbient.IsAmbientPropertyAvailable(String) IQueryAmbient.IsAmbientPropertyAvailable(String) |
For a description of this member, see the IsAmbientPropertyAvailable(String) method. (Inherited from FrameworkElement) |
Events
ContextMenuClosing ContextMenuClosing ContextMenuClosing ContextMenuClosing |
Occurs just before any context menu on the element is closed. (Inherited from FrameworkElement) |
ContextMenuOpening ContextMenuOpening ContextMenuOpening ContextMenuOpening |
Occurs when any context menu on the element is opened. (Inherited from FrameworkElement) |
DataContextChanged DataContextChanged DataContextChanged DataContextChanged |
Occurs when the data context for this element changes. (Inherited from FrameworkElement) |
DragEnter DragEnter DragEnter DragEnter |
Occurs when the input system reports an underlying drag event with this element as the drag target. (Inherited from UIElement) |
DragLeave DragLeave DragLeave DragLeave |
Occurs when the input system reports an underlying drag event with this element as the drag origin. (Inherited from UIElement) |
DragOver DragOver DragOver DragOver |
Occurs when the input system reports an underlying drag event with this element as the potential drop target. (Inherited from UIElement) |
Drop Drop Drop Drop |
Occurs when the input system reports an underlying drop event with this element as the drop target. (Inherited from UIElement) |
FocusableChanged FocusableChanged FocusableChanged FocusableChanged |
Occurs when the value of the Focusable property changes. (Inherited from UIElement) |
GiveFeedback GiveFeedback GiveFeedback GiveFeedback |
Occurs when the input system reports an underlying drag-and-drop event that involves this element. (Inherited from UIElement) |
GotFocus GotFocus GotFocus GotFocus |
Occurs when this element gets logical focus. (Inherited from UIElement) |
GotKeyboardFocus GotKeyboardFocus GotKeyboardFocus GotKeyboardFocus |
Occurs when the keyboard is focused on this element. (Inherited from UIElement) |
GotMouseCapture GotMouseCapture GotMouseCapture GotMouseCapture |
Occurs when this element captures the mouse. (Inherited from UIElement) |
GotStylusCapture GotStylusCapture GotStylusCapture GotStylusCapture |
Occurs when this element captures the stylus. (Inherited from UIElement) |
GotTouchCapture GotTouchCapture GotTouchCapture GotTouchCapture |
Occurs when a touch is captured to this element. (Inherited from UIElement) |
Initialized Initialized Initialized Initialized |
Occurs when this FrameworkElement is initialized. This event coincides with cases where the value of the IsInitialized property changes from |
IsEnabledChanged IsEnabledChanged IsEnabledChanged IsEnabledChanged |
Occurs when the value of the IsEnabled property on this element changes. (Inherited from UIElement) |
IsHitTestVisibleChanged IsHitTestVisibleChanged IsHitTestVisibleChanged IsHitTestVisibleChanged |
Occurs when the value of the IsHitTestVisible dependency property changes on this element. (Inherited from UIElement) |
IsKeyboardFocusedChanged IsKeyboardFocusedChanged IsKeyboardFocusedChanged IsKeyboardFocusedChanged |
Occurs when the value of the IsKeyboardFocused property changes on this element. (Inherited from UIElement) |
IsKeyboardFocusWithinChanged IsKeyboardFocusWithinChanged IsKeyboardFocusWithinChanged IsKeyboardFocusWithinChanged |
Occurs when the value of the IsKeyboardFocusWithinChanged property changes on this element. (Inherited from UIElement) |
IsMouseCapturedChanged IsMouseCapturedChanged IsMouseCapturedChanged IsMouseCapturedChanged |
Occurs when the value of the IsMouseCaptured property changes on this element. (Inherited from UIElement) |
IsMouseCaptureWithinChanged IsMouseCaptureWithinChanged IsMouseCaptureWithinChanged IsMouseCaptureWithinChanged |
Occurs when the value of the IsMouseCaptureWithinProperty changes on this element. (Inherited from UIElement) |
IsMouseDirectlyOverChanged IsMouseDirectlyOverChanged IsMouseDirectlyOverChanged IsMouseDirectlyOverChanged |
Occurs when the value of the IsMouseDirectlyOver property changes on this element. (Inherited from UIElement) |
IsStylusCapturedChanged IsStylusCapturedChanged IsStylusCapturedChanged IsStylusCapturedChanged |
Occurs when the value of the IsStylusCaptured property changes on this element. (Inherited from UIElement) |
IsStylusCaptureWithinChanged IsStylusCaptureWithinChanged IsStylusCaptureWithinChanged IsStylusCaptureWithinChanged |
Occurs when the value of the IsStylusCaptureWithin property changes on this element. (Inherited from UIElement) |
IsStylusDirectlyOverChanged IsStylusDirectlyOverChanged IsStylusDirectlyOverChanged IsStylusDirectlyOverChanged |
Occurs when the value of the IsStylusDirectlyOver property changes on this element. (Inherited from UIElement) |
IsVisibleChanged IsVisibleChanged IsVisibleChanged IsVisibleChanged |
Occurs when the value of the IsVisible property changes on this element. (Inherited from UIElement) |
KeyDown KeyDown KeyDown KeyDown |
Occurs when a key is pressed while focus is on this element. (Inherited from UIElement) |
KeyUp KeyUp KeyUp KeyUp |
Occurs when a key is released while focus is on this element. (Inherited from UIElement) |
LayoutUpdated LayoutUpdated LayoutUpdated LayoutUpdated |
Occurs when the layout of the various visual elements associated with the current Dispatcher changes. (Inherited from UIElement) |
Loaded Loaded Loaded Loaded |
Occurs when the element is laid out, rendered, and ready for interaction. (Inherited from FrameworkElement) |
LostFocus LostFocus LostFocus LostFocus |
Occurs when this element loses logical focus. (Inherited from UIElement) |
LostKeyboardFocus LostKeyboardFocus LostKeyboardFocus LostKeyboardFocus |
Occurs when the keyboard is no longer focused on this element,. (Inherited from UIElement) |
LostMouseCapture LostMouseCapture LostMouseCapture LostMouseCapture |
Occurs when this element loses mouse capture. (Inherited from UIElement) |
LostStylusCapture LostStylusCapture LostStylusCapture LostStylusCapture |
Occurs when this element loses stylus capture. (Inherited from UIElement) |
LostTouchCapture LostTouchCapture LostTouchCapture LostTouchCapture |
Occurs when this element loses a touch capture. (Inherited from UIElement) |
ManipulationBoundaryFeedback ManipulationBoundaryFeedback ManipulationBoundaryFeedback ManipulationBoundaryFeedback |
Occurs when the manipulation encounters a boundary. (Inherited from UIElement) |
ManipulationCompleted ManipulationCompleted ManipulationCompleted ManipulationCompleted |
Occurs when a manipulation and inertia on the UIElement object is complete. (Inherited from UIElement) |
ManipulationDelta ManipulationDelta ManipulationDelta ManipulationDelta |
Occurs when the input device changes position during a manipulation. (Inherited from UIElement) |
ManipulationInertiaStarting ManipulationInertiaStarting ManipulationInertiaStarting ManipulationInertiaStarting |
Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins. (Inherited from UIElement) |
ManipulationStarted ManipulationStarted ManipulationStarted ManipulationStarted |
Occurs when an input device begins a manipulation on the UIElement object. (Inherited from UIElement) |
ManipulationStarting ManipulationStarting ManipulationStarting ManipulationStarting |
Occurs when the manipulation processor is first created. (Inherited from UIElement) |
MouseDoubleClick MouseDoubleClick MouseDoubleClick MouseDoubleClick |
Occurs when a mouse button is clicked two or more times. (Inherited from Control) |
MouseDown MouseDown MouseDown MouseDown |
Occurs when any mouse button is pressed while the pointer is over this element. (Inherited from UIElement) |
MouseEnter MouseEnter MouseEnter MouseEnter |
Occurs when the mouse pointer enters the bounds of this element. (Inherited from UIElement) |
MouseLeave MouseLeave MouseLeave MouseLeave |
Occurs when the mouse pointer leaves the bounds of this element. (Inherited from UIElement) |
MouseLeftButtonDown MouseLeftButtonDown MouseLeftButtonDown MouseLeftButtonDown |
Occurs when the left mouse button is pressed while the mouse pointer is over this element. (Inherited from UIElement) |
MouseLeftButtonUp MouseLeftButtonUp MouseLeftButtonUp MouseLeftButtonUp |
Occurs when the left mouse button is released while the mouse pointer is over this element. (Inherited from UIElement) |
MouseMove MouseMove MouseMove MouseMove |
Occurs when the mouse pointer moves while over this element. (Inherited from UIElement) |
MouseRightButtonDown MouseRightButtonDown MouseRightButtonDown MouseRightButtonDown |
Occurs when the right mouse button is pressed while the mouse pointer is over this element. (Inherited from UIElement) |
MouseRightButtonUp MouseRightButtonUp MouseRightButtonUp MouseRightButtonUp |
Occurs when the right mouse button is released while the mouse pointer is over this element. (Inherited from UIElement) |
MouseUp MouseUp MouseUp MouseUp |
Occurs when any mouse button is released over this element. (Inherited from UIElement) |
MouseWheel MouseWheel MouseWheel MouseWheel |
Occurs when the user rotates the mouse wheel while the mouse pointer is over this element. (Inherited from UIElement) |
PreviewDragEnter PreviewDragEnter PreviewDragEnter PreviewDragEnter |
Occurs when the input system reports an underlying drag event with this element as the drag target. (Inherited from UIElement) |
PreviewDragLeave PreviewDragLeave PreviewDragLeave PreviewDragLeave |
Occurs when the input system reports an underlying drag event with this element as the drag origin. (Inherited from UIElement) |
PreviewDragOver PreviewDragOver PreviewDragOver PreviewDragOver |
Occurs when the input system reports an underlying drag event with this element as the potential drop target. (Inherited from UIElement) |
PreviewDrop PreviewDrop PreviewDrop PreviewDrop |
Occurs when the input system reports an underlying drop event with this element as the drop target. (Inherited from UIElement) |
PreviewGiveFeedback PreviewGiveFeedback PreviewGiveFeedback PreviewGiveFeedback |
Occurs when a drag-and-drop operation is started. (Inherited from UIElement) |
PreviewGotKeyboardFocus PreviewGotKeyboardFocus PreviewGotKeyboardFocus PreviewGotKeyboardFocus |
Occurs when the keyboard is focused on this element. (Inherited from UIElement) |
PreviewKeyDown PreviewKeyDown PreviewKeyDown PreviewKeyDown |
Occurs when a key is pressed while focus is on this element. (Inherited from UIElement) |
PreviewKeyUp PreviewKeyUp PreviewKeyUp PreviewKeyUp |
Occurs when a key is released while focus is on this element. (Inherited from UIElement) |
PreviewLostKeyboardFocus PreviewLostKeyboardFocus PreviewLostKeyboardFocus PreviewLostKeyboardFocus |
Occurs when the keyboard is no longer focused on this element. (Inherited from UIElement) |
PreviewMouseDoubleClick PreviewMouseDoubleClick PreviewMouseDoubleClick PreviewMouseDoubleClick |
Occurs when a user clicks the mouse button two or more times. (Inherited from Control) |
PreviewMouseDown PreviewMouseDown PreviewMouseDown PreviewMouseDown |
Occurs when any mouse button is pressed while the pointer is over this element. (Inherited from UIElement) |
PreviewMouseLeftButtonDown PreviewMouseLeftButtonDown PreviewMouseLeftButtonDown PreviewMouseLeftButtonDown |
Occurs when the left mouse button is pressed while the mouse pointer is over this element. (Inherited from UIElement) |
PreviewMouseLeftButtonUp PreviewMouseLeftButtonUp PreviewMouseLeftButtonUp PreviewMouseLeftButtonUp |
Occurs when the left mouse button is released while the mouse pointer is over this element. (Inherited from UIElement) |
PreviewMouseMove PreviewMouseMove PreviewMouseMove PreviewMouseMove |
Occurs when the mouse pointer moves while the mouse pointer is over this element. (Inherited from UIElement) |
PreviewMouseRightButtonDown PreviewMouseRightButtonDown PreviewMouseRightButtonDown PreviewMouseRightButtonDown |
Occurs when the right mouse button is pressed while the mouse pointer is over this element. (Inherited from UIElement) |
PreviewMouseRightButtonUp PreviewMouseRightButtonUp PreviewMouseRightButtonUp PreviewMouseRightButtonUp |
Occurs when the right mouse button is released while the mouse pointer is over this element. (Inherited from UIElement) |
PreviewMouseUp PreviewMouseUp PreviewMouseUp PreviewMouseUp |
Occurs when any mouse button is released while the mouse pointer is over this element. (Inherited from UIElement) |
PreviewMouseWheel PreviewMouseWheel PreviewMouseWheel PreviewMouseWheel |
Occurs when the user rotates the mouse wheel while the mouse pointer is over this element. (Inherited from UIElement) |
PreviewQueryContinueDrag PreviewQueryContinueDrag PreviewQueryContinueDrag PreviewQueryContinueDrag |
Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation. (Inherited from UIElement) |
PreviewStylusButtonDown PreviewStylusButtonDown PreviewStylusButtonDown PreviewStylusButtonDown |
Occurs when the stylus button is pressed while the pointer is over this element. (Inherited from UIElement) |
PreviewStylusButtonUp PreviewStylusButtonUp PreviewStylusButtonUp PreviewStylusButtonUp |
Occurs when the stylus button is released while the pointer is over this element. (Inherited from UIElement) |
PreviewStylusDown PreviewStylusDown PreviewStylusDown PreviewStylusDown |
Occurs when the stylus touches the digitizer while it is over this element. (Inherited from UIElement) |
PreviewStylusInAirMove PreviewStylusInAirMove PreviewStylusInAirMove PreviewStylusInAirMove |
Occurs when the stylus moves over an element without actually touching the digitizer. (Inherited from UIElement) |
PreviewStylusInRange PreviewStylusInRange PreviewStylusInRange PreviewStylusInRange |
Occurs when the stylus is close enough to the digitizer to be detected, while over this element. (Inherited from UIElement) |
PreviewStylusMove PreviewStylusMove PreviewStylusMove PreviewStylusMove |
Occurs when the stylus moves while over the element. The stylus must move while being detected by the digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead. (Inherited from UIElement) |
PreviewStylusOutOfRange PreviewStylusOutOfRange PreviewStylusOutOfRange PreviewStylusOutOfRange |
Occurs when the stylus is too far from the digitizer to be detected. (Inherited from UIElement) |
PreviewStylusSystemGesture PreviewStylusSystemGesture PreviewStylusSystemGesture PreviewStylusSystemGesture |
Occurs when a user performs one of several stylus gestures. (Inherited from UIElement) |
PreviewStylusUp PreviewStylusUp PreviewStylusUp PreviewStylusUp |
Occurs when the user raises the stylus off the digitizer while the stylus is over this element. (Inherited from UIElement) |
PreviewTextInput PreviewTextInput PreviewTextInput PreviewTextInput |
Occurs when this element gets text in a device-independent manner. (Inherited from UIElement) |
PreviewTouchDown PreviewTouchDown PreviewTouchDown PreviewTouchDown |
Occurs when a finger touches the screen while the finger is over this element. (Inherited from UIElement) |
PreviewTouchMove PreviewTouchMove PreviewTouchMove PreviewTouchMove |
Occurs when a finger moves on the screen while the finger is over this element. (Inherited from UIElement) |
PreviewTouchUp PreviewTouchUp PreviewTouchUp PreviewTouchUp |
Occurs when a finger is raised off of the screen while the finger is over this element. (Inherited from UIElement) |
QueryContinueDrag QueryContinueDrag QueryContinueDrag QueryContinueDrag |
Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation. (Inherited from UIElement) |
QueryCursor QueryCursor QueryCursor QueryCursor |
Occurs when the cursor is requested to display. This event is raised on an element each time that the mouse pointer moves to a new location, which means the cursor object might need to be changed based on its new position. (Inherited from UIElement) |
RequestBringIntoView RequestBringIntoView RequestBringIntoView RequestBringIntoView |
Occurs when BringIntoView(Rect) is called on this element. (Inherited from FrameworkElement) |
SizeChanged SizeChanged SizeChanged SizeChanged |
Occurs when either the ActualHeight or the ActualWidth properties change value on this element. (Inherited from FrameworkElement) |
SourceUpdated SourceUpdated SourceUpdated SourceUpdated |
Occurs when the source value changes for any existing property binding on this element. (Inherited from FrameworkElement) |
StylusButtonDown StylusButtonDown StylusButtonDown StylusButtonDown |
Occurs when the stylus button is pressed while the pointer is over this element. (Inherited from UIElement) |
StylusButtonUp StylusButtonUp StylusButtonUp StylusButtonUp |
Occurs when the stylus button is released while the pointer is over this element. (Inherited from UIElement) |
StylusDown StylusDown StylusDown StylusDown |
Occurs when the stylus touches the digitizer while the stylus is over this element. (Inherited from UIElement) |
StylusEnter StylusEnter StylusEnter StylusEnter |
Occurs when the stylus enters the bounds of this element. (Inherited from UIElement) |
StylusInAirMove StylusInAirMove StylusInAirMove StylusInAirMove |
Occurs when the stylus moves over an element without actually touching the digitizer. (Inherited from UIElement) |
StylusInRange StylusInRange StylusInRange StylusInRange |
Occurs when the stylus is close enough to the digitizer to be detected, while over this element. (Inherited from UIElement) |
StylusLeave StylusLeave StylusLeave StylusLeave |
Occurs when the stylus leaves the bounds of the element. (Inherited from UIElement) |
StylusMove StylusMove StylusMove StylusMove |
Occurs when the stylus moves over this element. The stylus must move while on the digitizer to raise this event. Otherwise, StylusInAirMove is raised instead. (Inherited from UIElement) |
StylusOutOfRange StylusOutOfRange StylusOutOfRange StylusOutOfRange |
Occurs when the stylus is too far from the digitizer to be detected, while over this element. (Inherited from UIElement) |
StylusSystemGesture StylusSystemGesture StylusSystemGesture StylusSystemGesture |
Occurs when a user performs one of several stylus gestures. (Inherited from UIElement) |
StylusUp StylusUp StylusUp StylusUp |
Occurs when the user raises the stylus off the digitizer while it is over this element. (Inherited from UIElement) |
TargetUpdated TargetUpdated TargetUpdated TargetUpdated |
Occurs when the target value changes for any property binding on this element. (Inherited from FrameworkElement) |
TextInput TextInput TextInput TextInput |
Occurs when this element gets text in a device-independent manner. (Inherited from UIElement) |
ToolTipClosing ToolTipClosing ToolTipClosing ToolTipClosing |
Occurs just before any tooltip on the element is closed. (Inherited from FrameworkElement) |
ToolTipOpening ToolTipOpening ToolTipOpening ToolTipOpening |
Occurs when any tooltip on the element is opened. (Inherited from FrameworkElement) |
TouchDown TouchDown TouchDown TouchDown |
Occurs when a finger touches the screen while the finger is over this element. (Inherited from UIElement) |
TouchEnter TouchEnter TouchEnter TouchEnter |
Occurs when a touch moves from outside to inside the bounds of this element. (Inherited from UIElement) |
TouchLeave TouchLeave TouchLeave TouchLeave |
Occurs when a touch moves from inside to outside the bounds of this element. (Inherited from UIElement) |
TouchMove TouchMove TouchMove TouchMove |
Occurs when a finger moves on the screen while the finger is over this element. (Inherited from UIElement) |
TouchUp TouchUp TouchUp TouchUp |
Occurs when a finger is raised off of the screen while the finger is over this element. (Inherited from UIElement) |
Unloaded Unloaded Unloaded Unloaded |
Occurs when the element is removed from within an element tree of loaded elements. (Inherited from FrameworkElement) |
Applies to
See also
Feedback
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.
Loading feedback...