Preview 3 lock

This commit is contained in:
TheXamlGuy
2024-07-06 22:59:33 +01:00
parent c0b166b970
commit 015af41fc8
5 changed files with 25 additions and 13 deletions
+13 -5
View File
@@ -7,8 +7,10 @@
Header="{Binding Key}"
IsExpanded="False">
<SettingsExpander.Resources>
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness>
<Thickness x:Key="TextControlCompactThemePadding">0</Thickness>
<Thickness x:Key="TextControlMargin">0</Thickness>
<Thickness x:Key="TextControlPadding">10,5,6,6</Thickness>
<Thickness x:Key="TextControlCompactPadding">0</Thickness>
<Thickness x:Key="TextControlCompactMargin">0,-3,0,0</Thickness>
</SettingsExpander.Resources>
<SettingsExpander.Action>
<ItemEntryActionView />
@@ -23,9 +25,14 @@
<Setter Property="IsVisible" Value="True" />
</Style>
<Style Selector="TextBox.Read">
<Setter Property="MaxWidth" Value="{Binding Width}" />
<Setter Property="MinWidth" Value="{Binding Width}" />
<Setter Property="IsVisible" Value="False" />
<Setter Property="MinWidth" Value="0" />
<Setter Property="IsReadOnly" Value="True" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="IsVisible" Value="True" />
<Setter Property="Margin" Value="{StaticResource TextControlCompactMargin}" />
<Setter Property="Padding" Value="{StaticResource TextControlCompactPadding}" />
<Setter Property="MinHeight" Value="0" />
</Style>
</TextBox.Styles>
<Interaction.Behaviors>
@@ -53,6 +60,7 @@
</Style>
<Style Selector="HyperlinkButton.Read">
<Setter Property="IsVisible" Value="True" />
<Setter Property="Margin" Value="{StaticResource TextControlCompactMargin}" />
</Style>
</HyperlinkButton.Styles>
<Interaction.Behaviors>