|
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 | 5 | xmlns:behaviors="using:CommunityToolkit.App.Shared.Behaviors" |
| 6 | + xmlns:converters="using:CommunityToolkit.WinUI.Converters" |
6 | 7 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
7 | 8 | xmlns:interactions="using:Microsoft.Xaml.Interactions.Core" |
8 | 9 | xmlns:interactivity="using:Microsoft.Xaml.Interactivity" |
|
12 | 13 | xmlns:muxc="using:Microsoft.UI.Xaml.Controls" |
13 | 14 | xmlns:renderer="using:CommunityToolkit.App.Shared.Renderers" |
14 | 15 | xmlns:wasm="http://uno.ui/wasm" |
15 | | - xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:converters="using:CommunityToolkit.WinUI.Converters" |
| 16 | + xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
16 | 17 | mc:Ignorable="d wasm"> |
17 | 18 |
|
18 | 19 | <Page.Resources> |
|
34 | 35 | <local:DocOrSampleTemplateSelector x:Key="DocOrSampleTemplateSelector" |
35 | 36 | Document="{StaticResource DocumentTemplate}" |
36 | 37 | Sample="{StaticResource SampleTemplate}" /> |
37 | | - <converters:DoubleToVisibilityConverter x:Name="doubleToVisibilityConverter" GreaterThan="1" TrueValue="Visible" FalseValue="Collapsed" NullValue="Collapsed"/> |
| 38 | + <converters:DoubleToVisibilityConverter x:Name="doubleToVisibilityConverter" |
| 39 | + FalseValue="Collapsed" |
| 40 | + GreaterThan="1" |
| 41 | + NullValue="Collapsed" |
| 42 | + TrueValue="Visible" /> |
38 | 43 | </Page.Resources> |
39 | 44 |
|
40 | 45 | <Grid> |
|
90 | 95 |
|
91 | 96 | <!-- Header grid --> |
92 | 97 | <Grid x:Name="HeaderGrid" |
93 | | - Margin="40,24,40,40" |
| 98 | + Margin="40,24,40,24" |
94 | 99 | VerticalAlignment="Top" |
95 | 100 | ColumnSpacing="8"> |
96 | 101 | <Grid.ColumnDefinitions> |
|
112 | 117 | <TextBlock Grid.Row="1" |
113 | 118 | Margin="0,8,0,0" |
114 | 119 | HorizontalAlignment="Left" |
| 120 | + Foreground="{ThemeResource TextFillColorSecondaryBrush}" |
115 | 121 | Text="{x:Bind Metadata.Description, Mode=OneWay}" |
116 | 122 | TextWrapping="WrapWholeWords" /> |
117 | 123 |
|
|
162 | 168 | MinWidth="160" |
163 | 169 | HorizontalAlignment="Right" |
164 | 170 | VerticalAlignment="Bottom" |
165 | | - Visibility="{x:Bind Samples.Count, Converter={StaticResource doubleToVisibilityConverter}}" |
166 | 171 | ItemsSource="{x:Bind Samples, Mode=OneWay}" |
167 | 172 | SelectedIndex="0" |
168 | | - SelectionChanged="SampleSelectionBox_SelectionChanged"> |
| 173 | + SelectionChanged="SampleSelectionBox_SelectionChanged" |
| 174 | + Visibility="{x:Bind Samples.Count, Converter={StaticResource doubleToVisibilityConverter}}"> |
169 | 175 | <ComboBox.Header> |
170 | 176 | <TextBlock Foreground="{ThemeResource TextFillColorSecondaryBrush}" |
171 | 177 | Style="{StaticResource CaptionTextBlockStyle}" |
|
183 | 189 | Grid.ColumnSpan="2" |
184 | 190 | Margin="0,16,0,0" |
185 | 191 | IsClosable="False" |
186 | | - IsOpen="False"> |
| 192 | + Visibility="Collapsed"> |
187 | 193 | <muxc:InfoBar.ActionButton> |
188 | 194 | <HyperlinkButton Content="Learn how you can use this experiment in your app" |
189 | 195 | NavigateUri="https://aka.ms/wct/wiki/previewpackages" /> |
|
192 | 198 | </Grid> |
193 | 199 | </Grid> |
194 | 200 | </Page> |
| 201 | + |
0 commit comments