|
21 | 21 | <VisualStateGroup x:Name="CommonStates"> |
22 | 22 | <VisualState x:Name="Normal"> |
23 | 23 | <VisualState.Setters> |
24 | | - <!--<Setter Target="PageControl.MaxHeight" Value="400" />--> |
| 24 | + <Setter Target="PageControl.MaxHeight" Value="600" /> |
25 | 25 | </VisualState.Setters> |
26 | 26 | </VisualState> |
27 | 27 | <VisualState x:Name="Tabbed"> |
|
52 | 52 | <Setter Target="OptionsPanel.BorderThickness" Value="0,1,0,0" /> |
53 | 53 | <Setter Target="FixedOptionsBar.BorderThickness" Value="0" /> |
54 | 54 | <Setter Target="ThemeBG.CornerRadius" Value="0" /> |
55 | | - <Setter Target="PageControl.Padding" Value="16,16,16,32" /> |
56 | 55 | <Setter Target="ThemeBtn.(Grid.Row)" Value="0" /> |
57 | 56 | <Setter Target="FlowDirectionBtn.(Grid.Row)" Value="0" /> |
58 | 57 | <Setter Target="CodeBtn.(Grid.Row)" Value="0" /> |
59 | 58 | <Setter Target="ThemeBtn.(Grid.Column)" Value="0" /> |
60 | 59 | <Setter Target="FlowDirectionBtn.(Grid.Column)" Value="1" /> |
61 | 60 | <Setter Target="CodeBtn.(Grid.Column)" Value="2" /> |
62 | 61 | <Setter Target="CodePivot.Margin" Value="6,0,8,0" /> |
| 62 | + <Setter Target="FixedOptionsBar.ColumnSpacing" Value="8" /> |
| 63 | + <Setter Target="FixedOptionsBar.RowSpacing" Value="0" /> |
| 64 | + <Setter Target="FixedOptionsBar.Margin" Value="12" /> |
| 65 | + |
63 | 66 | </VisualState.Setters> |
64 | 67 | </VisualState> |
65 | 68 | </VisualStateGroup> |
|
91 | 94 | <ColumnDefinition Width="*" /> |
92 | 95 | <ColumnDefinition Width="Auto" /> |
93 | 96 | </Grid.ColumnDefinitions> |
94 | | - |
| 97 | + <ScrollViewer x:Name="OptionsScrollViewer" |
| 98 | + Grid.Row="0" |
| 99 | + Grid.Column="0" |
| 100 | + MinWidth="256" |
| 101 | + Padding="16"> |
| 102 | + <ContentControl x:Name="OptionsControl" |
| 103 | + Content="{x:Bind SampleOptionsPaneInstance, Mode=OneWay}" /> |
| 104 | + </ScrollViewer> |
95 | 105 | <Grid x:Name="FixedOptionsBar" |
96 | 106 | Grid.Column="1" |
| 107 | + Padding="4" |
97 | 108 | HorizontalAlignment="Right" |
98 | 109 | Background="{ThemeResource LayerFillColorAltBrush}" |
99 | 110 | BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" |
100 | | - BorderThickness="1,0,0,0"> |
| 111 | + BorderThickness="1,0,0,0" |
| 112 | + RowSpacing="8"> |
101 | 113 | <Grid.RowDefinitions> |
102 | 114 | <RowDefinition Height="Auto" /> |
103 | 115 | <RowDefinition Height="*" /> |
|
108 | 120 | <ColumnDefinition Width="Auto" /> |
109 | 121 | <ColumnDefinition Width="Auto" /> |
110 | 122 | </Grid.ColumnDefinitions> |
111 | | - <AppBarButton x:Name="ThemeBtn" |
112 | | - Grid.Row="0" |
113 | | - Click="ThemeBtn_OnClick" |
114 | | - Label="Toggle theme" |
115 | | - LabelPosition="Collapsed" |
116 | | - Style="{StaticResource SmallAppBarButtonStyle}" |
117 | | - ToolTipService.ToolTip="Toggle theme"> |
118 | | - <AppBarButton.Icon> |
119 | | - <FontIcon Glyph="" /> |
120 | | - </AppBarButton.Icon> |
121 | | - </AppBarButton> |
| 123 | + <Button x:Name="ThemeBtn" |
| 124 | + Grid.Row="0" |
| 125 | + Width="32" |
| 126 | + Height="32" |
| 127 | + Padding="4" |
| 128 | + HorizontalAlignment="Center" |
| 129 | + Click="ThemeBtn_OnClick" |
| 130 | + Style="{StaticResource SubtleButtonStyle}" |
| 131 | + ToolTipService.ToolTip="Toggle theme"> |
| 132 | + <Button.Content> |
| 133 | + <FontIcon FontSize="16" |
| 134 | + Glyph="" /> |
| 135 | + </Button.Content> |
| 136 | + </Button> |
| 137 | + |
| 138 | + <Button x:Name="FlowDirectionBtn" |
| 139 | + Grid.Row="1" |
| 140 | + Width="32" |
| 141 | + Height="32" |
| 142 | + Padding="4" |
| 143 | + HorizontalAlignment="Center" |
| 144 | + VerticalAlignment="Top" |
| 145 | + wasm:Visibility="Collapsed" |
| 146 | + Click="FlowDirectionBtn_OnClick" |
| 147 | + Style="{StaticResource SubtleButtonStyle}" |
| 148 | + ToolTipService.ToolTip="Toggle right-to-left"> |
122 | 149 |
|
123 | | - <AppBarButton x:Name="FlowDirectionBtn" |
124 | | - Grid.Row="1" |
125 | | - wasm:Visibility="Collapsed" |
126 | | - Click="FlowDirectionBtn_OnClick" |
127 | | - Label="Toggle direction" |
128 | | - LabelPosition="Collapsed" |
129 | | - Style="{StaticResource SmallAppBarButtonStyle}" |
130 | | - ToolTipService.ToolTip="Toggle right-to-left"> |
131 | | - <AppBarButton.Icon> |
132 | | - <FontIcon Glyph="" /> |
133 | | - </AppBarButton.Icon> |
134 | | - </AppBarButton> |
| 150 | + <Button.Content> |
| 151 | + <FontIcon FontSize="16" |
| 152 | + Glyph="" /> |
| 153 | + </Button.Content> |
| 154 | + </Button> |
135 | 155 |
|
136 | | - <AppBarButton x:Name="CodeBtn" |
137 | | - Grid.Row="2" |
138 | | - Click="CodeBtn_OnClick" |
139 | | - Label="View code" |
140 | | - LabelPosition="Collapsed" |
141 | | - Style="{StaticResource SmallAppBarButtonStyle}" |
142 | | - ToolTipService.ToolTip="View code"> |
143 | | - <AppBarButton.Icon> |
144 | | - <FontIcon Glyph="" /> |
145 | | - </AppBarButton.Icon> |
146 | | - </AppBarButton> |
| 156 | + <Button x:Name="CodeBtn" |
| 157 | + Grid.Row="2" |
| 158 | + Width="32" |
| 159 | + Height="32" |
| 160 | + Padding="4" |
| 161 | + HorizontalAlignment="Center" |
| 162 | + Click="CodeBtn_OnClick" |
| 163 | + Style="{StaticResource AccentButtonStyle}" |
| 164 | + ToolTipService.ToolTip="View code"> |
| 165 | + <Button.Content> |
| 166 | + <FontIcon FontSize="14" |
| 167 | + Glyph="" /> |
| 168 | + </Button.Content> |
| 169 | + </Button> |
147 | 170 | </Grid> |
148 | | - <ContentControl x:Name="OptionsControl" |
149 | | - Grid.Row="0" |
150 | | - Grid.Column="0" |
151 | | - MinWidth="256" |
152 | | - Margin="16" |
153 | | - HorizontalAlignment="Left" |
154 | | - Content="{x:Bind SampleOptionsPaneInstance, Mode=OneWay}" /> |
| 171 | + |
155 | 172 | </Grid> |
156 | 173 |
|
157 | 174 | <Grid x:Name="ContentPageHolder" |
|
161 | 178 | Background="{ThemeResource SolidBackgroundFillColorBaseBrush}" |
162 | 179 | CornerRadius="8,0,0,8" |
163 | 180 | Visibility="Collapsed" /> |
164 | | - <ContentControl x:Name="PageControl" |
165 | | - Padding="24,24,32,24" |
166 | | - HorizontalAlignment="Stretch" |
167 | | - VerticalAlignment="Stretch" |
168 | | - HorizontalContentAlignment="Stretch" |
169 | | - Content="{x:Bind SampleControlInstance, Mode=OneWay}" /> |
| 181 | + <ScrollViewer HorizontalAlignment="Stretch" |
| 182 | + VerticalAlignment="Stretch" |
| 183 | + HorizontalContentAlignment="Stretch"> |
| 184 | + |
| 185 | + <ContentControl x:Name="PageControl" |
| 186 | + Margin="16" |
| 187 | + HorizontalAlignment="Stretch" |
| 188 | + VerticalAlignment="Stretch" |
| 189 | + HorizontalContentAlignment="Stretch" |
| 190 | + Background="Yellow" |
| 191 | + Content="{x:Bind SampleControlInstance, Mode=OneWay}" /> |
| 192 | + </ScrollViewer> |
170 | 193 | </Grid> |
171 | 194 |
|
172 | 195 | <muxc:Expander x:Name="SourcecodeExpander" |
|
199 | 222 | <ScrollViewer> |
200 | 223 | <TextBlock wasm:IsTextSelectionEnabled="True" |
201 | 224 | win:IsTextSelectionEnabled="True" |
| 225 | + Style="{StaticResource CaptionTextBlockStyle}" |
202 | 226 | Text="{x:Bind XamlCode, Mode=OneWay}" /> |
203 | 227 | </ScrollViewer> |
204 | 228 | </PivotItem> |
205 | 229 | <PivotItem Header="C#"> |
206 | 230 | <ScrollViewer> |
207 | 231 | <TextBlock wasm:IsTextSelectionEnabled="True" |
208 | 232 | win:IsTextSelectionEnabled="True" |
| 233 | + Style="{StaticResource CaptionTextBlockStyle}" |
209 | 234 | Text="{x:Bind CSharpCode, Mode=OneWay}" /> |
210 | 235 | </ScrollViewer> |
211 | 236 | </PivotItem> |
|
0 commit comments