Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit.Zoombox Namespace / Zoombox Class / CurrentViewIndex Property


In This Topic
    CurrentViewIndex Property
    In This Topic
    Gets the index of the current view (see CurrentView) within the Zoombox control's view stack (see the ViewStack).
    Syntax
    'Declaration
     
    Public ReadOnly Property CurrentViewIndex As Integer
    'Usage
     
    Dim instance As Zoombox
    Dim value As Integer
     
    value = instance.CurrentViewIndex
    public int CurrentViewIndex {get;}

    Property Value

    If the current view is not a member of the view stack, the CurrentViewIndex property returns -1. This will happen if the Zoombox control has a manual view stack (see the ViewStackMode property) and the control has been zoomed or panned away from the selected view. In this case, the ViewStackIndex property can be used to get the index of the selected view. Also, the RefocusView() method can be used to zoom back to the selected view. If the view stack is disabled, the CurrentViewIndex property always returns -1.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also