Skip to content

Commit 75d73b1

Browse files
authored
Code improvements in properties details (#2136)
1 parent d55b793 commit 75d73b1

File tree

6 files changed

+564
-471
lines changed

6 files changed

+564
-471
lines changed

Files/ResourceDictionaries/PropertiesStyles.xaml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<Thickness x:Key="PropertyNameMargin">0,7</Thickness>
1313
<Thickness x:Key="PropertyValueMargin">20,0,0,0</Thickness>
1414
<VerticalAlignment x:Key="PropertyValueVerticalAlignment">Center</VerticalAlignment>
15+
<!--Might be used for Expander control-->
16+
<SolidColorBrush Color="Transparent" x:Key="SystemControlBackgroundBaseHighBrush"/>
1517

1618
<Style x:Key="PropertyName" TargetType="TextBlock">
1719
<Setter Property="Margin" Value="{StaticResource PropertyNameMargin}" />
@@ -33,7 +35,6 @@
3335
<Setter Property="Margin" Value="{StaticResource PropertyValueMargin}" />
3436
<Setter Property="VerticalAlignment" Value="{StaticResource PropertyValueVerticalAlignment}" />
3537
<Setter Property="IsTextSelectionEnabled" Value="True" />
36-
<Setter Property="Margin" Value="20,0,0,0" />
3738
</Style>
3839

3940
<Style
@@ -44,18 +45,8 @@
4445
<Setter Property="VerticalAlignment" Value="{StaticResource PropertyValueVerticalAlignment}" />
4546
<Setter Property="HorizontalAlignment" Value="Stretch" />
4647
<Setter Property="BorderThickness" Value="1" />
47-
<Setter Property="Margin" Value="20,0,0,0" />
48-
<Setter Property="BorderBrush">
49-
<Setter.Value>
50-
<SolidColorBrush Color="Transparent" />
51-
</Setter.Value>
52-
</Setter>
53-
54-
<Setter Property="Background">
55-
<Setter.Value>
56-
<SolidColorBrush Color="Transparent" />
57-
</Setter.Value>
58-
</Setter>
48+
<Setter Property="BorderBrush" Value="Transparent" />
49+
<Setter Property="Background" Value="Transparent" />
5950
</Style>
6051

6152
<converters:StringArrayToString x:Key="StringArrayToString" />

Files/UserControls/PropertyListItem.xaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
Grid.Column="1"
3535
IsReadOnly="{x:Bind IsReadOnly, Mode=OneWay}"
3636
Style="{StaticResource PropertyValueTextBox}"
37-
Text="{x:Bind ValueText, Mode=TwoWay}"
38-
TextChanged="TextBox_TextChanged" />
37+
Text="{x:Bind ValueText, Mode=TwoWay}" />
3938
</Grid>
4039
</UserControl>

Files/UserControls/PropertyListItem.xaml.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,5 @@ public PropertyListItem()
3131
{
3232
this.InitializeComponent();
3333
}
34-
35-
private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
36-
{
37-
}
3834
}
3935
}

Files/View Models/Properties/PropertiesTab.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public abstract class PropertiesTab : Page
1515

1616
protected Microsoft.UI.Xaml.Controls.ProgressBar ItemMD5HashProgress = null;
1717

18-
protected void Properties_Loaded(object sender, RoutedEventArgs e)
18+
protected virtual void Properties_Loaded(object sender, RoutedEventArgs e)
1919
{
2020
if (BaseProperties != null)
2121
{

0 commit comments

Comments
 (0)