Xceed Toolkit Plus for WPF v5.1 Documentation
Xceed.Wpf.ListBox Assembly / Xceed.Wpf.ListBox Namespace / PathView Class
Example


In This Topic
    PathView Class
    In This Topic
    Provides a view that lays out its containers along a path.
    Object Model
    PathView ClassDraggedElementConfiguration ClassListBoxGroupHeaderConfiguration ClassListBoxItemConfiguration ClassPathConfiguration Class
    Syntax
    'Declaration
     
    
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public NotInheritable Class PathView 
       Inherits View
    'Usage
     
    
    Dim instance As PathView
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public sealed class PathView : View 
    Remarks

    Used within a MultiViewPanel, which allows switching between multiple views.

    See PathConfiguration for details on the settings available for creating a path.

    Example
    The following XAML illustrates how to set up a simple PathView in a MultiViewPanel. The MultiViewPanel also contains a vertically and a horizontally oriented StackView.
    <sllb:ListBox.ItemsPanel>
      <sllb:ItemsPanelTemplate>
        <sllb:MultiViewPanel>
          <sllb:MultiViewPanel.Views>
            <sllb:StackView Orientation="Vertical"
                            ListBoxItemConfiguration="{StaticResource OrderItemConfigurationForVerticalStackView}"
                            IsActiveView="True" />
    
            <sllb:StackView Orientation="Horizontal"
                            ListBoxItemConfiguration="{StaticResource OrderItemConfigurationForHorizontalStackView}" />
    
            <sllb:PathView ListBoxItemConfiguration="{StaticResource OrderItemConfigurationForPathView}"
                            ListBoxGroupHeaderConfiguration="{StaticResource pathViewCategoryGroupHeader}">
              <sllb:PathView.PathConfiguration>
                <sllb:PathConfiguration PathGeometry="{Binding Source={StaticResource SShapePath}, Converter={StaticResource stringToPathGeometryConverter}}"
                                        PathPadding="50,100,50,100"
                                        ContainerPadding="-100">
                  <sllb:PathConfiguration.ScalingStops>
                    <sllb:ScalingStop Offset="0"
                                      ScalingFactor="0.15" />
                    <sllb:ScalingStop Offset="0.5"
                                      ScalingFactor="1.2" />
                    <sllb:ScalingStop Offset="1"
                                      ScalingFactor="0.15" />
                  </sllb:PathConfiguration.ScalingStops>
    
                  <sllb:PathConfiguration.ZIndexStops>
                    <sllb:ZIndexStop Offset="0"
                                      ZIndexFactor="0" />
                    <sllb:ZIndexStop Offset="0.5"
                                      ZIndexFactor="1" />
                    <sllb:ZIndexStop Offset="1"
                                      ZIndexFactor="0" />
                  </sllb:PathConfiguration.ZIndexStops>
                </sllb:PathConfiguration>
              </sllb:PathView.PathConfiguration>
            </sllb:PathView>
          </sllb:MultiViewPanel.Views>
        </sllb:MultiViewPanel>
      </sllb:ItemsPanelTemplate>
    </sllb:ListBox.ItemsPanel>
    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             Xceed.Wpf.ListBox.ContainerConfigurationsBase
                Xceed.Wpf.ListBox.View
                   Xceed.Wpf.ListBox.PathView

    Public Constructors
     NameDescription
    Public ConstructorInitializes a new instance of the PathView class.  
    Top
    Public Fields
     NameDescription
    Public Fieldstatic (Shared in Visual Basic)Identifies the PathConfiguration dependency property.  
    Top
    Public Properties
     NameDescription
    Public Property (Inherited from System.Windows.DependencyObject)
    Public Property (Inherited from System.Windows.Threading.DispatcherObject)
    Public PropertyGets or sets the dragged container configuration. (Inherited from Xceed.Wpf.ListBox.ContainerConfigurationsBase)
    Public PropertyGets or sets a value indicating whether the view is currently the active view on the MultiViewPanel. (Inherited from Xceed.Wpf.ListBox.View)
    Public Property (Inherited from System.Windows.DependencyObject)
    Public PropertyGets or sets the listbox's group header configuration. (Inherited from Xceed.Wpf.ListBox.ContainerConfigurationsBase)
    Public PropertyGets or sets the listbox's item configuration. (Inherited from Xceed.Wpf.ListBox.ContainerConfigurationsBase)
    Public PropertyGets or sets the PathView's path configuration.  
    Top
    Public Methods
    Protected Methods
    Extension Methods
     NameDescription
    Public Extension MethodFinds the logical ancenster
    Public Extension Method
    Public Extension MethodFind the logical children.
    Public Extension MethodFinds the visual ancestor.
    Public Extension MethodFinds the visual children.
    Public Extension MethodFinds the visual tree root.
    Public Extension MethodOverloaded. 
    Top
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also