|
15 | 15 | <converters:BooleanReverseConverter x:Key="BooleanReverseConverter" /> |
16 | 16 | </UserControl.Resources> |
17 | 17 | <StackPanel> |
18 | | - <TextBlock Text="{x:Static localization:Strings.Theme}" Style="{StaticResource HeaderTextBlock}" /> |
19 | | - <ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" ItemsSource="{Binding Themes}" |
20 | | - SelectedItem="{Binding SelectedTheme}" |
21 | | - IsEnabled="{Binding UseCustomTheme, Converter={StaticResource BooleanReverseConverter}}" |
| 18 | + <TextBlock Text="{x:Static Member=localization:Strings.Theme}" Style="{StaticResource ResourceKey=HeaderTextBlock}" /> |
| 19 | + <ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" ItemsSource="{Binding Path=Themes}" |
| 20 | + SelectedItem="{Binding Path=SelectedTheme}" |
| 21 | + IsEnabled="{Binding Path=UseCustomTheme, Converter={StaticResource ResourceKey=BooleanReverseConverter}}" |
22 | 22 | VerticalAlignment="Top" BorderThickness="0" SelectionMode="Single" Margin="0,0,0,20"> |
23 | 23 | <ListView.ItemTemplate> |
24 | 24 | <DataTemplate> |
25 | 25 | <Rectangle Width="48" Height="48" Margin="-1,2" Fill="{Binding Color}" |
26 | | - ToolTip="{Binding Name, Converter={StaticResource ThemeToStringConverter}}" /> |
| 26 | + ToolTip="{Binding Name, Converter={StaticResource ResourceKey=ThemeToStringConverter}}" /> |
27 | 27 | </DataTemplate> |
28 | 28 | </ListView.ItemTemplate> |
29 | 29 | <ListView.ItemsPanel> |
|
39 | 39 | </ListBox.Template> |
40 | 40 | <!-- /BUGFIX--> |
41 | 41 | </ListView> |
42 | | - <TextBlock Text="{x:Static localization:Strings.Accent}" Style="{StaticResource HeaderTextBlock}" /> |
43 | | - <ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" ItemsSource="{Binding Accents}" |
44 | | - SelectedItem="{Binding SelectedAccent}" |
45 | | - IsEnabled="{Binding UseCustomTheme, Converter={StaticResource BooleanReverseConverter}}" |
| 42 | + <TextBlock Text="{x:Static localization:Strings.Accent}" Style="{StaticResource ResourceKey=HeaderTextBlock}" /> |
| 43 | + <ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" ItemsSource="{Binding Path=Accents}" |
| 44 | + SelectedItem="{Binding Path=SelectedAccent}" |
| 45 | + IsEnabled="{Binding Path=UseCustomTheme, Converter={StaticResource ResourceKey=BooleanReverseConverter}}" |
46 | 46 | VerticalAlignment="Top" BorderThickness="0" SelectionMode="Single" Margin="0,0,0,20"> |
47 | 47 | <ListView.ItemTemplate> |
48 | 48 | <DataTemplate> |
49 | | - <Rectangle Width="48" Height="48" Margin="-1,2" Fill="{Binding Color}" |
50 | | - ToolTip="{Binding Name,Converter={StaticResource AccentToStringConverter}}" /> |
| 49 | + <Rectangle Width="48" Height="48" Margin="-1,2" Fill="{Binding Path=Color}" |
| 50 | + ToolTip="{Binding Path=Name,Converter={StaticResource ResourceKey=AccentToStringConverter}}" /> |
51 | 51 | </DataTemplate> |
52 | 52 | </ListView.ItemTemplate> |
53 | 53 | <ListView.ItemsPanel> |
|
63 | 63 | </ListBox.Template> |
64 | 64 | <!-- /BUGFIX--> |
65 | 65 | </ListView> |
66 | | - <TextBlock Style="{StaticResource HeaderTextBlock}" Text="{x:Static localization:Strings.CustomThemes}" /> |
67 | | - <mah:ToggleSwitch Header="{x:Static localization:Strings.UseCustomThemes}" IsOn="{Binding UseCustomTheme}" |
68 | | - Margin="0,0,0,10" /> |
69 | | - <ComboBox ItemsSource="{Binding CustomThemes}" SelectedItem="{Binding SelectedCustomTheme}" |
70 | | - IsEnabled="{Binding UseCustomTheme}" Width="250" HorizontalAlignment="Left" Margin="0,0,0,20"> |
| 66 | + <TextBlock Style="{StaticResource ResourceKey=HeaderTextBlock}" Text="{x:Static Member=localization:Strings.CustomThemes}" /> |
| 67 | + <StackPanel Orientation="Horizontal" Margin="0,0,0,10"> |
| 68 | + <mah:ToggleSwitch Header="{x:Static Member=localization:Strings.UseCustomThemes}" IsOn="{Binding Path=UseCustomTheme}" /> |
| 69 | + <Rectangle Width="24" Height="24" |
| 70 | + ToolTip="{x:Static Member=localization:Strings.HelpMessage_UseCustomThemes}" |
| 71 | + Style="{StaticResource ResourceKey=HelpImageRectangle}" VerticalAlignment="Top" Margin="10,0,0,0"> |
| 72 | + <Rectangle.Resources> |
| 73 | + <Style TargetType="{x:Type TypeName=ToolTip}" BasedOn="{StaticResource ResourceKey=HelpToolTip}" /> |
| 74 | + </Rectangle.Resources> |
| 75 | + </Rectangle> |
| 76 | + </StackPanel> |
| 77 | + <ComboBox ItemsSource="{Binding Path=CustomThemes}" SelectedItem="{Binding Path=SelectedCustomTheme}" |
| 78 | + IsEnabled="{Binding Path=UseCustomTheme}" Width="250" HorizontalAlignment="Left" Margin="0,0,0,20"> |
71 | 79 | <ComboBox.ItemTemplate> |
72 | 80 | <DataTemplate> |
73 | | - <TextBlock Text="{Binding DisplayName}" d:DataContext="{d:DesignInstance appearance:ThemeInfo}" /> |
| 81 | + <TextBlock Text="{Binding Path=DisplayName}" d:DataContext="{d:DesignInstance appearance:ThemeInfo}" /> |
74 | 82 | </DataTemplate> |
75 | 83 | </ComboBox.ItemTemplate> |
76 | 84 | </ComboBox> |
77 | | - <TextBlock Style="{StaticResource HeaderTextBlock}" Text="{x:Static localization:Strings.PowerShell}" /> |
| 85 | + <TextBlock Style="{StaticResource ResourceKey=HeaderTextBlock}" Text="{x:Static Member=localization:Strings.PowerShell}" /> |
78 | 86 | <StackPanel Orientation="Horizontal"> |
79 | | - <mah:ToggleSwitch Header="{x:Static localization:Strings.ApplyThemeToPowerShellConsole}" |
80 | | - IsOn="{Binding PowerShellModifyGlobalProfile}" /> |
| 87 | + <mah:ToggleSwitch Header="{x:Static Member=localization:Strings.ApplyThemeToPowerShellConsole}" |
| 88 | + IsOn="{Binding Path=PowerShellModifyGlobalProfile}" /> |
81 | 89 | <Rectangle Width="24" Height="24" |
82 | | - ToolTip="{x:Static localization:Strings.HelpMessage_ApplyThemeToPowerShellConsole}" |
83 | | - Style="{StaticResource HelpImageRectangle}" VerticalAlignment="Top" Margin="10,0,0,0"> |
| 90 | + ToolTip="{x:Static Member=localization:Strings.HelpMessage_ApplyThemeToPowerShellConsole}" |
| 91 | + Style="{StaticResource ResourceKey=HelpImageRectangle}" VerticalAlignment="Top" Margin="10,0,0,0"> |
84 | 92 | <Rectangle.Resources> |
85 | | - <Style TargetType="{x:Type ToolTip}" BasedOn="{StaticResource HelpToolTip}" /> |
| 93 | + <Style TargetType="{x:Type TypeName=ToolTip}" BasedOn="{StaticResource ResourceKey=HelpToolTip}" /> |
86 | 94 | </Rectangle.Resources> |
87 | 95 | </Rectangle> |
88 | 96 | </StackPanel> |
|
0 commit comments