Skip to content

Commit ad16212

Browse files
committed
moved AutoSizeTextBox style to its own resource dictionary file
1 parent 662dbc7 commit ad16212

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

Asn1Editor.Wpf.Controls/Asn1Editor.Wpf.Controls.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171
<Generator>MSBuild:Compile</Generator>
7272
<SubType>Designer</SubType>
7373
</Page>
74+
<Page Include="Themes\AutoSizeTextBox.xaml">
75+
<Generator>MSBuild:Compile</Generator>
76+
<SubType>Designer</SubType>
77+
</Page>
7478
<Page Include="Themes\Generic.xaml">
7579
<SubType>Designer</SubType>
7680
<Generator>MSBuild:Compile</Generator>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3+
xmlns:c="clr-namespace:Asn1Editor.Wpf.Controls">
4+
<Style TargetType="c:AutoSizeTextBox" BasedOn="{StaticResource {x:Type TextBoxBase}}">
5+
<Setter Property="Background" Value="White"/>
6+
</Style>
7+
</ResourceDictionary>
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3-
xmlns:controls="clr-namespace:Asn1Editor.Wpf.Controls">
1+
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
42
<ResourceDictionary.MergedDictionaries>
53
<ResourceDictionary Source="/Asn1Editor.Wpf.Controls;component/Themes/AsnHexViewerControl.xaml"/>
4+
<ResourceDictionary Source="/Asn1Editor.Wpf.Controls;component/Themes/AutoSizeTextBox.xaml"/>
65
</ResourceDictionary.MergedDictionaries>
7-
<Style TargetType="controls:AutoSizeTextBox" BasedOn="{StaticResource {x:Type TextBoxBase}}">
8-
<Setter Property="Background" Value="White"/>
9-
</Style>
106
</ResourceDictionary>

0 commit comments

Comments
 (0)