Edit

Share via


ListDetailsView Class

Definition

Panel that allows for a List/Details pattern.

[Windows.UI.Xaml.TemplatePart(Name="DetailsPresenter", Type=typeof(Windows.UI.Xaml.Controls.ContentPresenter))]
[Windows.UI.Xaml.TemplatePart(Name="DetailsPanel", Type=typeof(Windows.UI.Xaml.FrameworkElement))]
[Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="NoSelectionNarrow")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="NoSelectionWide")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="HasSelectionWide")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="HasSelectionNarrow")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="WidthStates", Name="NarrowState")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="WidthStates", Name="WideState")]
public class ListDetailsView : Windows.UI.Xaml.Controls.ItemsControl
[Windows.UI.Xaml.TemplatePart(Name="DetailsPresenter", Type=typeof(Windows.UI.Xaml.Controls.ContentPresenter))]
[Windows.UI.Xaml.TemplatePart(Name="DetailsPanel", Type=typeof(Windows.UI.Xaml.FrameworkElement))]
[Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="NoSelectionNarrow")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="NoSelectionWide")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="HasSelectionWide")]
[Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="HasSelectionNarrow")]
public class ListDetailsView : Windows.UI.Xaml.Controls.ItemsControl
[<Windows.UI.Xaml.TemplatePart(Name="DetailsPresenter", Type=typeof(Windows.UI.Xaml.Controls.ContentPresenter))>]
[<Windows.UI.Xaml.TemplatePart(Name="DetailsPanel", Type=typeof(Windows.UI.Xaml.FrameworkElement))>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="NoSelectionNarrow")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="NoSelectionWide")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="HasSelectionWide")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="HasSelectionNarrow")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="WidthStates", Name="NarrowState")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="WidthStates", Name="WideState")>]
type ListDetailsView = class
    inherit ItemsControl
[<Windows.UI.Xaml.TemplatePart(Name="DetailsPresenter", Type=typeof(Windows.UI.Xaml.Controls.ContentPresenter))>]
[<Windows.UI.Xaml.TemplatePart(Name="DetailsPanel", Type=typeof(Windows.UI.Xaml.FrameworkElement))>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="NoSelectionNarrow")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="NoSelectionWide")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="HasSelectionWide")>]
[<Windows.UI.Xaml.TemplateVisualState(GroupName="SelectionStates", Name="HasSelectionNarrow")>]
type ListDetailsView = class
    inherit ItemsControl
Public Class ListDetailsView
Inherits ItemsControl
Inheritance
Windows.UI.Xaml.Controls.ItemsControl
ListDetailsView
Attributes
Windows.UI.Xaml.TemplatePartAttribute Windows.UI.Xaml.TemplateVisualStateAttribute

Constructors

ListDetailsView()

Initializes a new instance of the ListDetailsView class.

Fields

BackButtonBehaviorProperty

Identifies the BackButtonBehavior dependency property

CompactModeThresholdWidthProperty

Identifies the CompactModeThresholdWidth dependency property

DetailsCommandBarProperty

Identifies the DetailsCommandBar dependency property

DetailsContentTemplateSelectorProperty

Identifies the DetailsContentTemplateSelector dependency property.

DetailsHeaderProperty

Identifies the DetailsHeader dependency property.

DetailsHeaderTemplateProperty

Identifies the DetailsHeaderTemplate dependency property.

DetailsPaneBackgroundProperty

Identifies the DetailsPaneBackground dependency property.

DetailsTemplateProperty

Identifies the DetailsTemplate dependency property.

ListCommandBarProperty

Identifies the ListCommandBar dependency property

ListHeaderProperty

Identifies the ListHeader dependency property.

ListHeaderTemplateProperty

Identifies the ListHeaderTemplate dependency property.

ListPaneBackgroundProperty

Identifies the ListPaneBackground dependency property.

ListPaneEmptyContentProperty

Identifies the ListPaneEmptyContent dependency property.

ListPaneEmptyContentTemplateProperty

Identifies the ListPaneEmptyContentTemplate dependency property.

ListPaneItemTemplateSelectorProperty

Identifies the ListPaneItemTemplateSelector dependency property.

ListPaneWidthProperty

Identifies the ListPaneWidth dependency property.

NoSelectionContentProperty

Identifies the NoSelectionContent dependency property.

NoSelectionContentTemplateProperty

Identifies the NoSelectionContentTemplate dependency property.

SelectedIndexProperty

Identifies the SelectedIndex dependency property.

SelectedItemProperty

Identifies the SelectedItem dependency property.

ViewStateProperty

Identifies the ViewState dependency property

Properties

BackButtonBehavior

Gets or sets the behavior to use for the back button

CompactModeThresholdWidth

Gets or sets the Threshold width that will trigger the control to go into compact mode

DetailsCommandBar

Gets or sets the Windows.UI.Xaml.Controls.CommandBar for the details section.

DetailsContentTemplateSelector

Gets or sets the Windows.UI.Xaml.Controls.DataTemplateSelector for the details presenter.

DetailsHeader

Gets or sets the content for the details pane's header

DetailsHeaderTemplate

Gets or sets the DataTemplate used to display the content of the details pane's header.

DetailsPaneBackground

Gets or sets the content for the list pane's header Gets or sets the Brush to apply to the background of the details area of the control.

DetailsTemplate

Gets or sets the DataTemplate used to display the details.

ListCommandBar

Gets or sets the Windows.UI.Xaml.Controls.CommandBar for the list section.

ListHeader

Gets or sets the content for the list pane's header

ListHeaderTemplate

Gets or sets the DataTemplate used to display the content of the list pane's header.

ListPaneBackground

Gets or sets the Brush to apply to the background of the list area of the control.

ListPaneEmptyContent

Gets or sets the content for the list pane's no items presenter.

ListPaneEmptyContentTemplate

Gets or sets the DataTemplate used to display the list pane's no items presenter.

ListPaneItemTemplateSelector

Gets or sets the Windows.UI.Xaml.Controls.DataTemplateSelector for the list pane items.

ListPaneWidth

Gets or sets the width of the list pane when the view is expanded.

MapDetails

Gets or sets a function for mapping the selected item to a different model. This new model will be the DataContext of the Details area.

NoSelectionContent

Gets or sets the content to dsiplay when there is no item selected in the list list.

NoSelectionContentTemplate

Gets or sets the DataTemplate used to display the content when there is no selection.

SelectedIndex

Gets or sets the index of the current selection.

SelectedItem

Gets or sets the selected item.

ViewState

Gets the current visual state of the control

Methods

ClearSelectedItem()

Clears the SelectedItem and prevent flickering of the UI if only the order of the items changed.

OnApplyTemplate()

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.

OnItemsChanged(Object)

Invoked once the items changed and ensures the visual state is constant.

Events

SelectionChanged

Occurs when the currently selected item changes.

ViewStateChanged

Occurs when the view state changes.

Applies to

See also

  • <xref:Windows.UI.Xaml.Controls.ItemsControl>