|
1 | 1 | <ResourceDictionary
|
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
| 4 | + xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls" |
4 | 5 | xmlns:local="using:MvvmSampleUwp.Controls"
|
5 |
| - xmlns:muxc="using:Microsoft.UI.Xaml.Controls" |
6 |
| - xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"> |
| 6 | + xmlns:muxc="using:Microsoft.UI.Xaml.Controls"> |
7 | 7 |
|
8 |
| - <!--Operator button--> |
| 8 | + <!-- Operator button --> |
9 | 9 | <Style TargetType="local:InteractiveSample">
|
10 |
| - <Setter Property="HorizontalAlignment" Value="Stretch"/> |
11 |
| - <Setter Property="HorizontalContentAlignment" Value="Stretch"/> |
12 |
| - <Setter Property="VerticalAlignment" Value="Stretch"/> |
13 |
| - <Setter Property="VerticalContentAlignment" Value="Stretch"/> |
14 |
| - <Setter Property="IsTabStop" Value="False"/> |
| 10 | + <Setter Property="HorizontalAlignment" Value="Stretch" /> |
| 11 | + <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
| 12 | + <Setter Property="VerticalAlignment" Value="Stretch" /> |
| 13 | + <Setter Property="VerticalContentAlignment" Value="Stretch" /> |
| 14 | + <Setter Property="IsTabStop" Value="False" /> |
15 | 15 | <Setter Property="Template">
|
16 | 16 | <Setter.Value>
|
17 | 17 | <ControlTemplate TargetType="local:InteractiveSample">
|
18 | 18 | <Border
|
19 |
| - CornerRadius="4" |
20 |
| - BorderThickness="2" |
21 |
| - BorderBrush="{ThemeResource SystemControlHighlightAccentBrush}" |
22 | 19 | HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
23 |
| - VerticalAlignment="{TemplateBinding VerticalAlignment}"> |
| 20 | + VerticalAlignment="{TemplateBinding VerticalAlignment}" |
| 21 | + Background="{ThemeResource SubtleFillColorTertiaryBrush}" |
| 22 | + BorderBrush="{ThemeResource SystemChromeBlackLowColor}" |
| 23 | + BorderThickness="1" |
| 24 | + CornerRadius="4"> |
24 | 25 | <muxc:TabView
|
25 |
| - IsAddTabButtonVisible="False" |
26 | 26 | HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
27 |
| - VerticalAlignment="{TemplateBinding VerticalAlignment}"> |
| 27 | + VerticalAlignment="{TemplateBinding VerticalAlignment}" |
| 28 | + IsAddTabButtonVisible="False"> |
28 | 29 | <muxc:TabView.Resources>
|
29 | 30 | <x:Double x:Key="TabViewHeaderPadding">0</x:Double>
|
30 | 31 | <x:Double x:Key="TabViewItemHeaderFontSize">14</x:Double>
|
31 |
| - <StaticResource x:Key="TabViewItemHeaderBackgroundSelected" ResourceKey="SystemControlHighlightAccentBrush"/> |
32 | 32 | </muxc:TabView.Resources>
|
33 | 33 | <muxc:TabViewItem
|
| 34 | + FontWeight="Bold" |
34 | 35 | Header="INTERACTIVE SAMPLE"
|
35 |
| - IsClosable="False" |
36 |
| - FontWeight="Bold"> |
| 36 | + IsClosable="False"> |
37 | 37 | <ContentPresenter
|
38 |
| - Background="#60222222" |
39 | 38 | Padding="12"
|
40 |
| - Content="{TemplateBinding Content}"/> |
| 39 | + Background="#60121212" |
| 40 | + Content="{TemplateBinding Content}" /> |
41 | 41 | </muxc:TabViewItem>
|
42 |
| - <muxc:TabViewItem |
43 |
| - Header="See XAML" |
44 |
| - IsClosable="False"> |
| 42 | + <muxc:TabViewItem Header="See XAML" IsClosable="False"> |
45 | 43 | <ScrollViewer>
|
46 | 44 | <controls:MarkdownTextBlock
|
47 |
| - Background="#FF202020" |
48 | 45 | Padding="8"
|
49 |
| - Text="{TemplateBinding XamlCode}"/> |
| 46 | + Background="#FF202020" |
| 47 | + Text="{TemplateBinding XamlCode}" /> |
50 | 48 | </ScrollViewer>
|
51 | 49 | </muxc:TabViewItem>
|
52 |
| - <muxc:TabViewItem |
53 |
| - Header="See C#" |
54 |
| - IsClosable="False"> |
| 50 | + <muxc:TabViewItem Header="See C#" IsClosable="False"> |
55 | 51 | <ScrollViewer>
|
56 | 52 | <controls:MarkdownTextBlock
|
57 |
| - Background="#FF202020" |
58 | 53 | Padding="8"
|
59 |
| - Text="{TemplateBinding CSharpCode}"/> |
| 54 | + Background="#FF202020" |
| 55 | + Text="{TemplateBinding CSharpCode}" /> |
60 | 56 | </ScrollViewer>
|
61 | 57 | </muxc:TabViewItem>
|
62 | 58 | </muxc:TabView>
|
|
65 | 61 | </Setter.Value>
|
66 | 62 | </Setter>
|
67 | 63 | </Style>
|
68 |
| - |
| 64 | + |
69 | 65 | </ResourceDictionary>
|
0 commit comments