ListDetailsView Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.ItemsControlListDetailsView
- Attributes
-
Windows.UI.Xaml.TemplatePartAttribute Windows.UI.Xaml.TemplateVisualStateAttribute
Constructors
ListDetailsView() |
Initializes a new instance of the ListDetailsView class. |
Fields
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>