File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListDetailsView
Microsoft.Toolkit.Uwp.UI.Controls.Layout/ListDetailsView Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11
11
<controls:ListDetailsView BackButtonBehavior="Automatic"
12
12
ItemsSource="{Binding Emails}"
13
13
NoSelectionContent="Select an item to view"
14
- CompactModeThresholdWidth="720">
14
+ CompactModeThresholdWidth="720"
15
+ ListPaneWidth="400">
15
16
<controls:ListDetailsView.ItemTemplate>
16
17
<DataTemplate>
17
18
<StackPanel Margin="0,8">
Original file line number Diff line number Diff line change @@ -461,7 +461,10 @@ protected override void OnItemsChanged(object e)
461
461
/// </summary>
462
462
private void OnListPaneWidthChanged ( )
463
463
{
464
- _twoPaneView . Pane1Length = new GridLength ( ListPaneWidth ) ;
464
+ if ( _twoPaneView != null )
465
+ {
466
+ _twoPaneView . Pane1Length = new GridLength ( ListPaneWidth ) ;
467
+ }
465
468
}
466
469
}
467
470
}
You can’t perform that action at this time.
0 commit comments