Class ContextAdorner
This class is used for reflecting of ContextTabGroup.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class ContextAdorner : TemplatedAdornerBase, IDisposable
Constructors
ContextAdorner(RibbonTab)
Initializes a new instance of the ContextAdorner class..
Declaration
public ContextAdorner(RibbonTab adornedTab)
Parameters
Type | Name | Description |
---|---|---|
RibbonTab | adornedTab | Tab which will be adorned. |
Fields
ContextTabGroupProperty
Identifies ContextAdorner. ContextTabGroup dependency property.
Declaration
public static readonly DependencyProperty ContextTabGroupProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
ContextTabGroup
Gets or sets the value of the ContextTabGroup dependency property.
Declaration
public ContextTabGroup ContextTabGroup { get; protected set; }
Property Value
Type |
---|
ContextTabGroup |
TemplatedInnerControl
Gets the template inner control.
Declaration
protected Control TemplatedInnerControl { get; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.Control | The template inner control. |
Methods
MeasureOverride(Size)
Computes the desired size of the UniformGrid by measuring all of the child elements.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | constraint | The Size of the available area for the grid. |
Returns
Type | Description |
---|---|
System.Windows.Size | The desired Size based on the child content of the grid and the constraint parameter. |
Overrides
OnContextTabGroupChanged(DependencyPropertyChangedEventArgs)
Raises ContextTabGroupChanged event.
Declaration
protected virtual void OnContextTabGroupChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property changes details, such as old value and new value. |
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type |
---|
System.Windows.Automation.Peers.AutomationPeer |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed. |
Events
ContextTabGroupChanged
Event that is raised when ContextTabGroup property is changed.
Declaration
public event PropertyChangedCallback ContextTabGroupChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |