Class VistaFlipSwitchPreviewControl
This class presents actions for like Vista Flip element switch.
Inherited Members
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class VistaFlipSwitchPreviewControl : SwicthPreviewControlBase
Constructors
VistaFlipSwitchPreviewControl()
Initializes a new instance of the VistaFlipSwitchPreviewControl class.
Declaration
public VistaFlipSwitchPreviewControl()
Properties
Items
Gets the items.
Declaration
public override IEnumerable Items { get; }
Property Value
Type | Description |
---|---|
System.Collections.IEnumerable | The items. |
Overrides
Owner
Gets the container.
Declaration
protected virtual IVistaFlipOwner Owner { get; }
Property Value
Type | Description |
---|---|
IVistaFlipOwner | The container. |
SelectedItem
Gets the selected item.
Declaration
public override object SelectedItem { get; }
Property Value
Type | Description |
---|---|
System.Object | The selected item. |
Overrides
UsedMainCollection
Gets a value indicating whether [used main collection].
Declaration
public override bool UsedMainCollection { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Overrides
Methods
AddItem(UIElement)
Adds the item.
Declaration
public override void AddItem(UIElement item)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.UIElement | item | The item ContentControl. |
Overrides
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a System.Windows.FrameworkElement derived class.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | finalSize | The final area within the parent that this element should use to arrange itself and its children. |
Returns
Type | Description |
---|---|
System.Windows.Size | The actual size used. |
ClearItems()
Clears the items.
Declaration
public override void ClearItems()
Overrides
GetItemFromSelectedWrapper(FrameworkElement)
Gets the item from selected wrapper.
Declaration
protected virtual object GetItemFromSelectedWrapper(FrameworkElement visual)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | visual | The visual. |
Returns
Type | Description |
---|---|
System.Object | object window Content |
GetItemSize(FrameworkElement)
Gets the size of the item.
Declaration
protected virtual Rect GetItemSize(FrameworkElement element)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | element | The element. |
Returns
Type | Description |
---|---|
System.Windows.Rect | Rect GetMDIBounds |
GetWindow(FrameworkElement)
Gets the window.
Declaration
protected virtual FrameworkElement GetWindow(FrameworkElement element)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | element | The element. |
Returns
Type | Description |
---|---|
System.Windows.FrameworkElement | Framework Element |
MeasureOverride(Size)
When overridden in a derived class, measures the size in layout required for child elements and determines a size for the System.Windows.FrameworkElement-derived class.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize | The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available. |
Returns
Type | Description |
---|---|
System.Windows.Size | The size that this element determines it needs during layout, based on its calculations of child element sizes. |
MoveItem(Boolean, SwitchDirection)
Moves the item.
Declaration
public override void MoveItem(bool isForward, SwitchDirection switchDirection)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isForward | if set to |
SwitchDirection | switchDirection | The switch direction. |
Overrides
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. |
ShowSelectedItem()
Shows the selected item.
Declaration
public override void ShowSelectedItem()