NavigationViewTemplateSettings.OpenPaneLength Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
min
Mendapatkan antara OpenPaneLength dan lebar jendela.
Ini adalah nilai terhitung dari lebar panel saat dibuka dan diperluas sepenuhnya.
Dokumentasi ini berlaku untuk WinUI 2 untuk UWP (untuk WinUI di SDK Aplikasi Windows, lihat namespace SDK Aplikasi Windows).
public:
property double OpenPaneLength { double get(); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="320.0")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="320.0")]
double OpenPaneLength();
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="320.0")]
public double OpenPaneLength { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="320.0")] get; }
Public ReadOnly Property OpenPaneLength As Double
Nilai Properti
Antara min
OpenPaneLength dan lebar jendela. Default ke 320.0.
- Atribut
-
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute
Contoh
Contoh ini menunjukkan properti yang NavigationViewTemplateSettings.OpenPaneLength
digunakan untuk ControlTemplate
NavigationView
meneruskan ke Windows.UI.Xaml.Controls.SplitView.OpenPaneLength.
<ControlTemplate TargetType="NavigationView">
<!-- ... -->
<SplitView
OpenPaneLength="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.OpenPaneLength}"
Background="{TemplateBinding Background}"
BorderBrush="{ThemeResource NavigationViewItemSeparatorForeground}"
BorderThickness="{ThemeResource NavigationViewBorderThickness}"
CompactPaneLength="{TemplateBinding CompactPaneLength}"
DisplayMode="Inline"
IsPaneOpen="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsPaneOpen, Mode=TwoWay}"
IsTabStop="False"
PaneBackground="{ThemeResource NavigationViewDefaultPaneBackground}">
Berlaku untuk
Saran dan Komentar
Kirim dan lihat umpan balik untuk