Class DocumentContextMenu
Represents document context menu
Inheritance
Implements
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class DocumentContextMenu : ContextMenu, IDisposable
Constructors
DocumentContextMenu()
Initializes a new instance of the DocumentContextMenu class.
Declaration
public DocumentContextMenu()
Fields
CustomItemStyleProperty
Presents a style for custom items.
Declaration
public static readonly DependencyProperty CustomItemStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CustomSeparatorStyleProperty
Presents a style for custom separators.
Declaration
public static readonly DependencyProperty CustomSeparatorStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IconBrushesProperty
Presents icon brushes list.
Declaration
public static readonly DependencyProperty IconBrushesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
CustomItemStyle
Gets or sets the value of the CustomItemStyle dependency property.
Declaration
public Style CustomItemStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Style | The custom item style. |
CustomSeparatorStyle
Gets or sets the value of the CustomSeparatorStyle dependency property.
Declaration
public Style CustomSeparatorStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Style | The custom separator style. |
IconBrushes
Gets or sets the value of the IconBrushes dependency property.
Declaration
public DictionaryList IconBrushes { get; set; }
Property Value
Type | Description |
---|---|
DictionaryList | The icon brushes. |
Methods
Dispose()
Method to clear unused objects
Declaration
public void Dispose()
OnCustomItemStyleChanged(DependencyPropertyChangedEventArgs)
Raises CustomItemStyleChanged event.
Declaration
protected virtual void OnCustomItemStyleChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnCustomSeparatorStyleChanged(DependencyPropertyChangedEventArgs)
Raises CustomSeparatorStyleChanged event.
Declaration
protected virtual void OnCustomSeparatorStyleChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnIconBrushesChanged(DependencyPropertyChangedEventArgs)
Raises IconBrushesChanged event.
Declaration
protected virtual void OnIconBrushesChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The System.Windows.RoutedEventArgs that contains the event data. |
Events
CustomItemStyleChanged
Event that is raised when CustomItemStyle property is changed.
Declaration
public event PropertyChangedCallback CustomItemStyleChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
CustomSeparatorStyleChanged
Event that is raised when CustomSeparatorStyle property is changed.
Declaration
public event PropertyChangedCallback CustomSeparatorStyleChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
IconBrushesChanged
Event that is raised when IconBrushes property is changed.
Declaration
public event PropertyChangedCallback IconBrushesChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |