Skip to content

Commit 3083ace

Browse files
committed
Add design time text to settings view
1 parent 9cbc7b8 commit 3083ace

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

Flow.Launcher.Plugin.OneNote/UI/Views/SettingsView.xaml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@
3636
<ItemsControl Style="{StaticResource SettingGrid}">
3737
<StackPanel Style="{StaticResource TextPanel}">
3838
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="Show recycle bin" />
39-
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{Binding NotebookExplorerKeyword.Value, StringFormat='When using &quot;{0}&quot; show items that are in the recycle bin'}" />
39+
<TextBlock
40+
d:Text="When using &quot;{0}&quot; show items that are in the recycle bin"
41+
Style="{DynamicResource SettingSubTitleLabel}"
42+
Text="{Binding NotebookExplorerKeyword.Value, StringFormat='When using &quot;{0}&quot; show items that are in the recycle bin'}" />
4043
</StackPanel>
4144
<ui:ToggleSwitch
4245
Grid.Column="2"
@@ -52,7 +55,10 @@
5255
<ItemsControl Style="{StaticResource SettingGrid}">
5356
<StackPanel Style="{StaticResource TextPanel}">
5457
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="Show encrypted sections" />
55-
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{Binding NotebookExplorerKeyword.Value, StringFormat='When using &quot;{0}&quot; show encrypted sections, if the section has been unlocked, allow temporary access.'}" />
58+
<TextBlock
59+
d:Text="When using &quot;{0}&quot; show encrypted sections, if the section has been unlocked, allow temporary access."
60+
Style="{DynamicResource SettingSubTitleLabel}"
61+
Text="{Binding NotebookExplorerKeyword.Value, StringFormat='When using &quot;{0}&quot; show encrypted sections, if the section has been unlocked, allow temporary access.'}" />
5662
</StackPanel>
5763
<ui:ToggleSwitch
5864
Grid.Column="2"
@@ -93,7 +99,7 @@
9399
HorizontalContentAlignment="Center"
94100
Command="{Binding ClearCachedIconsCommand}">
95101
<Label HorizontalAlignment="Center">
96-
<TextBlock Text="{Binding CachedIconsFileSize, StringFormat='Clear Cached Images: {0}'}" />
102+
<TextBlock d:Text="Clear Cached Images: {0}" Text="{Binding CachedIconsFileSize, StringFormat='Clear Cached Images: {0}'}" />
97103
</Label>
98104
</Button>
99105
<Button Margin="0,4,22,4" Command="{Binding OpenGeneratedIconsFolderCommand}">
@@ -164,7 +170,10 @@
164170
<ItemsControl Style="{StaticResource SettingGrid}">
165171
<StackPanel Style="{StaticResource TextPanel}">
166172
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="Default number of recent pages" />
167-
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{Binding RecentPagesKeyword.Value, StringFormat='The initial number of recent pages to show when using &quot;{0}&quot;'}" />
173+
<TextBlock
174+
d:Text="The initial number of recent pages to show when using &quot;{0}&quot;"
175+
Style="{DynamicResource SettingSubTitleLabel}"
176+
Text="{Binding RecentPagesKeyword.Value, StringFormat='The initial number of recent pages to show when using &quot;{0}&quot;'}" />
168177
</StackPanel>
169178
<ComboBox
170179
Grid.Column="2"

0 commit comments

Comments
 (0)