Class SwicthPreviewControlBase
Presents interface and base implementation for all preview controls.
Inheritance
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public abstract class SwicthPreviewControlBase : Control
Constructors
SwicthPreviewControlBase()
Declaration
protected SwicthPreviewControlBase()
Fields
CornerRadiusProperty
Identifies DocumentContainer.CornerRadiusProperty dependency property.
Declaration
public static readonly DependencyProperty CornerRadiusProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | Type: System.Windows.Rect |
ItemBorderBrushProperty
Identifies DocumentContainer.ItemBorderBrushProperty dependency property.
Declaration
public static readonly DependencyProperty ItemBorderBrushProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | Type: System.Boolean |
ItemBorderThicknessProperty
Identifies DocumentContainer.ItemBorderThicknessProperty dependency property.
Declaration
public static readonly DependencyProperty ItemBorderThicknessProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | Type: System.Windows.Thickness |
ItemCornerRadiusProperty
Identifies DocumentContainer.ItemCornerRadiusProperty dependency property.
Declaration
public static readonly DependencyProperty ItemCornerRadiusProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | Type: System.Windows.Rect |
ItemHeightProperty
Identifies DocumentContainer.ItemHeightProperty dependency property.
Declaration
public static readonly DependencyProperty ItemHeightProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | Type: System.Double |
ItemWidthProperty
Identifies DocumentContainer.ItemWidthProperty dependency property.
Declaration
public static readonly DependencyProperty ItemWidthProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | Type: System.Double |
SelectedItemBackgroundProperty
Identifies DocumentContainer.SelectedItemBackgroundProperty dependency property.
Declaration
public static readonly DependencyProperty SelectedItemBackgroundProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | Type: System.Windows.Media.Brush |
SelectedItemBorderBrushProperty
Identifies DocumentContainer.SelectedItemBorderBrushProperty dependency property.
Declaration
public static readonly DependencyProperty SelectedItemBorderBrushProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | Type: System.Windows.Media.Brush |
SelectedItemBorderThicknessProperty
Identifies DocumentContainer.SelectedItemBorderThicknessProperty dependency property.
Declaration
public static readonly DependencyProperty SelectedItemBorderThicknessProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | Type: System.Windows.Thickness |
Properties
CornerRadius
Gets or sets the value of the CornerRadius dependency property.
Declaration
public CornerRadius CornerRadius { get; set; }
Property Value
Type |
---|
System.Windows.CornerRadius |
ItemBorderBrush
Gets or sets the value of the ItemBorderBrush dependency property.
Declaration
public Brush ItemBorderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
ItemBorderThickness
Gets or sets the value of the ItemBorderThickness dependency property.
Declaration
public Thickness ItemBorderThickness { get; set; }
Property Value
Type |
---|
System.Windows.Thickness |
ItemCornerRadius
Gets or sets the value of the ItemCornerRadius dependency property.
Declaration
public CornerRadius ItemCornerRadius { get; set; }
Property Value
Type |
---|
System.Windows.CornerRadius |
ItemHeight
Gets or sets the value of the ItemHeight dependency property.
Declaration
public double ItemHeight { get; set; }
Property Value
Type |
---|
System.Double |
Items
Gets the items.
Declaration
public abstract IEnumerable Items { get; }
Property Value
Type | Description |
---|---|
System.Collections.IEnumerable | The items. |
ItemWidth
Gets or sets the value of the ItemWidth dependency property.
Declaration
public double ItemWidth { get; set; }
Property Value
Type |
---|
System.Double |
SelectedItem
Gets the selected item.
Declaration
public abstract object SelectedItem { get; }
Property Value
Type | Description |
---|---|
System.Object | The selected item. |
SelectedItemBackground
Gets or sets the value of the SelectedItemBackground dependency property.
Declaration
public Brush SelectedItemBackground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
SelectedItemBorderBrush
Gets or sets the value of the SelectedItemBorderBrush dependency property.
Declaration
public Brush SelectedItemBorderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
SelectedItemBorderThickness
Gets or sets the value of the SelectedItemBorderThickness dependency property.
Declaration
public Thickness SelectedItemBorderThickness { get; set; }
Property Value
Type |
---|
System.Windows.Thickness |
UsedMainCollection
Gets a value indicating whether [used main collection].
Declaration
public abstract bool UsedMainCollection { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
AddItem(UIElement)
Adds the item.
Declaration
public abstract void AddItem(UIElement item)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.UIElement | item | The item ContentControl. |
ClearItems()
Clears the items.
Declaration
public abstract void ClearItems()
MoveItem(Boolean, SwitchDirection)
Moves the item.
Declaration
public abstract void MoveItem(bool isForward, SwitchDirection switchDirection)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isForward | if set to |
SwitchDirection | switchDirection | The switch direction. |
OnCornerRadiusChanged(DependencyPropertyChangedEventArgs)
Raises CornerRadiusChanged event.
Declaration
protected virtual void OnCornerRadiusChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnItemBorderBrushChanged(DependencyPropertyChangedEventArgs)
Raises ItemBorderBrushChanged event.
Declaration
protected virtual void OnItemBorderBrushChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnItemBorderThicknessChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises ItemBorderThicknessChanged event.
Declaration
protected virtual void OnItemBorderThicknessChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnItemCornerRadiusChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises ItemCornerRadiusChanged event.
Declaration
protected virtual void OnItemCornerRadiusChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnItemHeightChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises ItemHeightChanged event.
Declaration
protected virtual void OnItemHeightChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnItemWidthChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises ItemWidthChanged event.
Declaration
protected virtual void OnItemWidthChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnSelectedItemBackgroundChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises SelectedItemBackgroundChanged event.
Declaration
protected virtual void OnSelectedItemBackgroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnSelectedItemBorderBrushChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises SelectedItemBorderBrushChanged event.
Declaration
protected virtual void OnSelectedItemBorderBrushChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnSelectedItemBorderThicknessChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises SelectedItemBorderThicknessChanged event.
Declaration
protected virtual void OnSelectedItemBorderThicknessChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnVisibilityPropertyChanged(Visibility)
Called when [visibility property changed].
Declaration
protected virtual void OnVisibilityPropertyChanged(Visibility newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Visibility | newValue | The new value. |
ShowSelectedItem()
Shows the selected item.
Declaration
public abstract void ShowSelectedItem()
Events
Collapsed
Occurs when [collapsed].
Declaration
public event EventHandler Collapsed
Event Type
Type |
---|
System.EventHandler |
CornerRadiusChanged
Event that is raised when CornerRadius property is changed.
Declaration
public event PropertyChangedCallback CornerRadiusChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ItemBorderBrushChanged
Event that is raised when ItemBorderBrush property is changed.
Declaration
public event PropertyChangedCallback ItemBorderBrushChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ItemBorderThicknessChanged
Event that is raised when ItemBorderThickness property is changed.
Declaration
public event PropertyChangedCallback ItemBorderThicknessChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ItemCornerRadiusChanged
Event that is raised when ItemCornerRadius property is changed.
Declaration
public event PropertyChangedCallback ItemCornerRadiusChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ItemHeightChanged
Event that is raised when ItemHeight property is changed.
Declaration
public event PropertyChangedCallback ItemHeightChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ItemWidthChanged
Event that is raised when ItemWidth property is changed.
Declaration
public event PropertyChangedCallback ItemWidthChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SelectedItemBackgroundChanged
Event that is raised when SelectedItemBackground property is changed.
Declaration
public event PropertyChangedCallback SelectedItemBackgroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SelectedItemBorderBrushChanged
Event that is raised when SelectedItemBorderBrush property is changed.
Declaration
public event PropertyChangedCallback SelectedItemBorderBrushChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SelectedItemBorderThicknessChanged
Event that is raised when SelectedItemBorderThickness property is changed.
Declaration
public event PropertyChangedCallback SelectedItemBorderThicknessChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |