File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1- <Page x : Class =" TitleBarExperiment.Samples.ShellPage"
1+ <Page x : Class =" TitleBarExperiment.Samples.ShellPage"
22 xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
44 xmlns : controls =" using:CommunityToolkit.WinUI.Controls"
2323 IsPaneButtonVisible =" True"
2424 PaneButtonClick =" appTitleBar_PaneButtonClick"
2525 Subtitle =" Preview" >
26+ <controls : TitleBar .Resources>
27+ <!-- Example of overriding the MinWidth of the SearchBox so it's extra wide -->
28+ <x : Double x : Key =" TitleBarContentMinWidth" >600</x : Double >
29+ </controls : TitleBar .Resources>
2630 <controls : TitleBar .Icon>
2731 <BitmapIcon ShowAsMonochrome =" False"
2832 UriSource =" ms-appx:///Assets/AppTitleBarIcon.png" />
Original file line number Diff line number Diff line change 77
88 <x : Double x : Key =" TitleBarCompactHeight" >32</x : Double >
99 <x : Double x : Key =" TitleBarTallHeight" >48</x : Double >
10- <x : Double x : Key =" TitleBarContentMaxWidth " >360</x : Double >
10+ <x : Double x : Key =" TitleBarContentMinWidth " >360</x : Double >
1111 <Style BasedOn =" {StaticResource DefaultTitleBarStyle}"
1212 TargetType =" local:TitleBar" />
1313
178178
179179 <ContentPresenter x : Name =" PART_ContentPresenter"
180180 Grid.Column=" 5"
181- MinWidth =" 360 "
181+ MinWidth =" {ThemeResource TitleBarContentMinWidth} "
182182 HorizontalAlignment =" Stretch"
183183 VerticalAlignment =" Center"
184184 HorizontalContentAlignment =" Stretch"
You can’t perform that action at this time.
0 commit comments