WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class VistaFlipSwitchPreviewControl

    Show / Hide Table of Contents

    Class VistaFlipSwitchPreviewControl

    This class presents actions for like Vista Flip element switch.

    Inheritance
    System.Object
    SwicthPreviewControlBase
    VistaFlipSwitchPreviewControl
    Inherited Members
    SwicthPreviewControlBase.ItemBorderBrushProperty
    SwicthPreviewControlBase.CornerRadiusProperty
    SwicthPreviewControlBase.ItemBorderThicknessProperty
    SwicthPreviewControlBase.SelectedItemBorderBrushProperty
    SwicthPreviewControlBase.SelectedItemBorderThicknessProperty
    SwicthPreviewControlBase.SelectedItemBackgroundProperty
    SwicthPreviewControlBase.ItemCornerRadiusProperty
    SwicthPreviewControlBase.ItemWidthProperty
    SwicthPreviewControlBase.ItemHeightProperty
    SwicthPreviewControlBase.OnCornerRadiusChanged(DependencyPropertyChangedEventArgs)
    SwicthPreviewControlBase.OnItemBorderBrushChanged(DependencyPropertyChangedEventArgs)
    SwicthPreviewControlBase.OnItemBorderThicknessChanged(DependencyPropertyChangedEventArgs)
    SwicthPreviewControlBase.OnSelectedItemBorderBrushChanged(DependencyPropertyChangedEventArgs)
    SwicthPreviewControlBase.OnSelectedItemBorderThicknessChanged(DependencyPropertyChangedEventArgs)
    SwicthPreviewControlBase.OnSelectedItemBackgroundChanged(DependencyPropertyChangedEventArgs)
    SwicthPreviewControlBase.OnItemCornerRadiusChanged(DependencyPropertyChangedEventArgs)
    SwicthPreviewControlBase.OnItemWidthChanged(DependencyPropertyChangedEventArgs)
    SwicthPreviewControlBase.OnItemHeightChanged(DependencyPropertyChangedEventArgs)
    SwicthPreviewControlBase.OnVisibilityPropertyChanged(Visibility)
    SwicthPreviewControlBase.ItemBorderBrush
    SwicthPreviewControlBase.CornerRadius
    SwicthPreviewControlBase.ItemBorderThickness
    SwicthPreviewControlBase.SelectedItemBorderBrush
    SwicthPreviewControlBase.SelectedItemBorderThickness
    SwicthPreviewControlBase.SelectedItemBackground
    SwicthPreviewControlBase.ItemCornerRadius
    SwicthPreviewControlBase.ItemWidth
    SwicthPreviewControlBase.ItemHeight
    SwicthPreviewControlBase.ItemBorderBrushChanged
    SwicthPreviewControlBase.CornerRadiusChanged
    SwicthPreviewControlBase.ItemBorderThicknessChanged
    SwicthPreviewControlBase.SelectedItemBorderBrushChanged
    SwicthPreviewControlBase.SelectedItemBorderThicknessChanged
    SwicthPreviewControlBase.SelectedItemBackgroundChanged
    SwicthPreviewControlBase.ItemCornerRadiusChanged
    SwicthPreviewControlBase.ItemWidthChanged
    SwicthPreviewControlBase.ItemHeightChanged
    SwicthPreviewControlBase.Collapsed
    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
    SwicthPreviewControlBase.Items

    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
    SwicthPreviewControlBase.SelectedItem

    UsedMainCollection

    Gets a value indicating whether [used main collection].

    Declaration
    public override bool UsedMainCollection { get; }
    Property Value
    Type Description
    System.Boolean

    true if [used main collection]; otherwise, false.

    Overrides
    SwicthPreviewControlBase.UsedMainCollection

    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
    SwicthPreviewControlBase.AddItem(UIElement)

    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
    SwicthPreviewControlBase.ClearItems()

    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 true [is forward].

    SwitchDirection switchDirection

    The switch direction.

    Overrides
    SwicthPreviewControlBase.MoveItem(Boolean, SwitchDirection)

    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()
    Overrides
    SwicthPreviewControlBase.ShowSelectedItem()
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved