Skip to content

Commit 64ab57d

Browse files
committed
Simplify header property
1 parent ca63881 commit 64ab57d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Files.App/Views/Settings/DevToolsPage.xaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
Width="300"
101101
HorizontalAlignment="Left"
102102
VerticalAlignment="Center"
103+
Header="{helpers:ResourceString Name=Name}"
103104
PlaceholderText="{helpers:ResourceString Name=Name}"
104105
Text="{x:Bind ViewModel.IDEName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
105106
Visibility="{x:Bind ViewModel.IsEditingIDEConfig, Converter={StaticResource BoolVisibilityConverter}, Mode=OneWay}">
@@ -112,9 +113,6 @@
112113
PreferredPlacement="Bottom"
113114
Target="{x:Bind IDENameTextBox}" />
114115
</TextBox.Resources>
115-
<TextBox.Header>
116-
<TextBlock Text="{helpers:ResourceString Name=Name}" />
117-
</TextBox.Header>
118116
</TextBox>
119117

120118
<!-- IDE Path -->
@@ -149,6 +147,7 @@
149147
x:Name="IDEPathTextBox"
150148
Width="300"
151149
VerticalAlignment="Center"
150+
Header="{helpers:ResourceString Name=PathOrAlias}"
152151
PlaceholderText="{helpers:ResourceString Name=IDEPathPlaceholder}"
153152
Text="{x:Bind ViewModel.IDEPath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
154153
<TextBox.Resources>
@@ -161,9 +160,6 @@
161160
PreferredPlacement="Bottom"
162161
Target="{x:Bind IDEPathTextBox}" />
163162
</TextBox.Resources>
164-
<TextBox.Header>
165-
<TextBlock Text="{helpers:ResourceString Name=PathOrAlias}" />
166-
</TextBox.Header>
167163
</TextBox>
168164

169165
<SplitButton

0 commit comments

Comments
 (0)