Skip to content

Commit 210bc80

Browse files
committed
add design-time attributes
1 parent 11e7ff6 commit 210bc80

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

src/Notepads/Controls/DiffViewer/SideBySideDiffViewer.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
Grid.Row="0"
5858
HorizontalAlignment="Center"
5959
VerticalAlignment="Center"
60+
d:Text="Before your changes"
6061
FontStyle="Italic" />
6162
</Grid>
6263

@@ -83,6 +84,7 @@
8384
Grid.Row="0"
8485
HorizontalAlignment="Center"
8586
VerticalAlignment="Center"
87+
d:Text="After your changes"
8688
FontStyle="Italic" />
8789
</Grid>
8890

src/Notepads/Controls/FindAndReplace/FindAndReplaceControl.xaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xmlns:findAndReplace="using:Notepads.Controls.FindAndReplace"
66
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
77
d:DesignHeight="72"
8-
d:DesignWidth="250"
8+
d:DesignWidth="340"
99
mc:Ignorable="d">
1010

1111
<Grid x:Name="FindAndReplaceRootGrid" KeyDown="FindAndReplaceRootGrid_KeyDown">
@@ -32,6 +32,7 @@
3232
Width="20"
3333
Padding="0"
3434
Content="&#xE00F;"
35+
d:Content="&#xE76C;"
3536
FontFamily="Segoe MDL2 Assets"
3637
FontSize="12"
3738
Click="ToggleReplaceModeButton_OnClick"
@@ -59,7 +60,8 @@
5960
GotFocus="FindBar_GotFocus"
6061
IsSpellCheckEnabled="False"
6162
KeyDown="FindBar_OnKeyDown"
62-
LostFocus="FindBar_LostFocus" />
63+
LostFocus="FindBar_LostFocus"
64+
d:PlaceholderText="Find" />
6365

6466
<Grid x:Name="OptionButtonGrid"
6567
RelativePanel.AlignRightWithPanel="True"
@@ -69,7 +71,8 @@
6971
BorderThickness="1"
7072
Margin="9"
7173
VerticalAlignment="Bottom"
72-
Visibility="Collapsed" />
74+
Visibility="Collapsed"
75+
d:Visibility="Visible" />
7376
<Button x:Name="OptionButton"
7477
x:Uid="FindAndReplace_SearchOptionButton"
7578
Style="{StaticResource DismissButtonStyle}"
@@ -179,7 +182,8 @@
179182
GotFocus="ReplaceBar_GotFocus"
180183
IsSpellCheckEnabled="False"
181184
KeyDown="ReplaceBar_OnKeyDown"
182-
LostFocus="ReplaceBar_LostFocus" />
185+
LostFocus="ReplaceBar_LostFocus"
186+
d:PlaceholderText="Replace" />
183187
</Grid>
184188

185189
<Grid Grid.Row="1"

src/Notepads/Controls/GoTo/GoToControl.xaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
55
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
66
Height="36"
7-
d:DesignWidth="250"
7+
d:DesignWidth="260"
88
mc:Ignorable="d">
99

1010
<Grid x:Name="GoToRootGrid"
@@ -22,6 +22,7 @@
2222
Grid.Column="0"
2323
Margin="5,0,8,3"
2424
VerticalAlignment="Center"
25+
d:Text="Go To:"
2526
FontSize="15"
2627
TextAlignment="Center" />
2728

@@ -40,7 +41,8 @@
4041
GotFocus="GoToBar_GotFocus"
4142
IsSpellCheckEnabled="False"
4243
KeyDown="GoToBar_OnKeyDown"
43-
LostFocus="GoToBar_LostFocus" />
44+
LostFocus="GoToBar_LostFocus"
45+
d:PlaceholderText="Go To Line" />
4446
</Grid>
4547

4648
<Button x:Name="SearchButton"
@@ -52,6 +54,7 @@
5254
FontFamily="Segoe MDL2 Assets"
5355
FontSize="16"
5456
Visibility="Collapsed"
57+
d:Visibility="Visible"
5558
Click="SearchButton_OnClick"
5659
IsTabStop="False" />
5760

0 commit comments

Comments
 (0)