From d6659c0e75cd8b8a18130691db6906c35de5ce33 Mon Sep 17 00:00:00 2001 From: CanHua Li Date: Mon, 11 Mar 2019 16:26:14 -0700 Subject: [PATCH 1/7] Add PaneTitle to NavigationViewTemplateSettings --- .../PaneTitle.md | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 active/NavigationView/NavigationViewTemplateSettings/PaneTitle.md diff --git a/active/NavigationView/NavigationViewTemplateSettings/PaneTitle.md b/active/NavigationView/NavigationViewTemplateSettings/PaneTitle.md new file mode 100644 index 000000000..d85934f65 --- /dev/null +++ b/active/NavigationView/NavigationViewTemplateSettings/PaneTitle.md @@ -0,0 +1,47 @@ +# Background +PaneTitle is added to NavigationView in RS4, but it's a String. Since RS5, we introduced PaneHeader(UIElement) to deprecate PaneTitle. If both PaneTitle and PaneHeader are provided by customer, PaneHeader is used. + +This API update addes PaneTitle [Template-Settings](https://docs.microsoft.com/en-us/windows/uwp/xaml-platform/template-settings-classes) to the NavigationView control. + +# Description +Provides calculated PaneTitle that can be referenced as TemplatedParent sources when defining templates for a NavigatiionView control. Not intended for general use. + +# Examples + +``` +[WUXC_VERSION_RS5] +[webhosthidden] +unsealed runtimeclass NavigationViewTemplateSettings : Windows.UI.Xaml.DependencyObject +{ + ... + + [WUXC_VERSION_MUXONLY] + { + String PaneTitle{ get; }; + static Windows.UI.Xaml.DependencyProperty PaneTitleProperty{ get; }; + } +} +``` + +# Remarks +This is intended for use in the style of the `NavigationView` control. Sample usage: + +```xaml +