More tidying up
This commit is contained in:
@@ -4,12 +4,18 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:vm="using:Wallet"
|
xmlns:vm="using:Wallet"
|
||||||
x:DataType="vm:DateEntryViewModel"
|
x:DataType="vm:DateEntryViewModel"
|
||||||
Header="{Binding Key}">
|
Header="{Binding Key}"
|
||||||
|
IsExpanded="False">
|
||||||
|
<SettingsExpander.Resources>
|
||||||
|
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness>
|
||||||
|
<Thickness x:Key="TextControlCompactThemePadding">0</Thickness>
|
||||||
|
</SettingsExpander.Resources>
|
||||||
<SettingsExpander.Footer>
|
<SettingsExpander.Footer>
|
||||||
<Grid>
|
<Grid>
|
||||||
<DatePicker SelectedDate="{Binding Value}">
|
<DatePicker SelectedDate="{Binding Value}">
|
||||||
<DatePicker.Styles>
|
<DatePicker.Styles>
|
||||||
<Style Selector="DatePicker.Write">
|
<Style Selector="DatePicker.Write">
|
||||||
|
<Setter Property="MaxWidth" Value="{Binding Width}" />
|
||||||
<Setter Property="MinWidth" Value="{Binding Width}" />
|
<Setter Property="MinWidth" Value="{Binding Width}" />
|
||||||
<Setter Property="IsVisible" Value="True" />
|
<Setter Property="IsVisible" Value="True" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -44,6 +50,8 @@
|
|||||||
<Setter Property="BorderBrush" Value="Transparent" />
|
<Setter Property="BorderBrush" Value="Transparent" />
|
||||||
<Setter Property="Background" Value="Transparent" />
|
<Setter Property="Background" Value="Transparent" />
|
||||||
<Setter Property="IsVisible" Value="True" />
|
<Setter Property="IsVisible" Value="True" />
|
||||||
|
<Setter Property="Padding" Value="{StaticResource TextControlCompactThemePadding}" />
|
||||||
|
<Setter Property="MinHeight" Value="0" />
|
||||||
<Setter Property="Foreground">
|
<Setter Property="Foreground">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<SolidColorBrush Opacity="0.7" Color="{DynamicResource TextFillColorPrimary}" />
|
<SolidColorBrush Opacity="0.7" Color="{DynamicResource TextFillColorPrimary}" />
|
||||||
|
|||||||
@@ -4,7 +4,12 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:vm="using:Wallet"
|
xmlns:vm="using:Wallet"
|
||||||
x:DataType="vm:DropdownEntryViewModel"
|
x:DataType="vm:DropdownEntryViewModel"
|
||||||
Header="{Binding Key}">
|
Header="{Binding Key}"
|
||||||
|
IsExpanded="False">
|
||||||
|
<SettingsExpander.Resources>
|
||||||
|
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness>
|
||||||
|
<Thickness x:Key="TextControlCompactThemePadding">0</Thickness>
|
||||||
|
</SettingsExpander.Resources>
|
||||||
<SettingsExpander.Footer>
|
<SettingsExpander.Footer>
|
||||||
<Grid>
|
<Grid>
|
||||||
<ComboBox
|
<ComboBox
|
||||||
@@ -15,6 +20,7 @@
|
|||||||
SelectedValueBinding="{ReflectionBinding Value}">
|
SelectedValueBinding="{ReflectionBinding Value}">
|
||||||
<ComboBox.Styles>
|
<ComboBox.Styles>
|
||||||
<Style Selector="ComboBox.Write">
|
<Style Selector="ComboBox.Write">
|
||||||
|
<Setter Property="MaxWidth" Value="{Binding Width}" />
|
||||||
<Setter Property="MinWidth" Value="{Binding Width}" />
|
<Setter Property="MinWidth" Value="{Binding Width}" />
|
||||||
<Setter Property="IsVisible" Value="True" />
|
<Setter Property="IsVisible" Value="True" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -42,6 +48,7 @@
|
|||||||
<TextBox.Styles>
|
<TextBox.Styles>
|
||||||
<Style Selector="TextBox.Write">
|
<Style Selector="TextBox.Write">
|
||||||
<Setter Property="IsVisible" Value="False" />
|
<Setter Property="IsVisible" Value="False" />
|
||||||
|
<Setter Property="Padding" Value="{StaticResource TextControlThemePadding}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="TextBox.Read">
|
<Style Selector="TextBox.Read">
|
||||||
<Setter Property="MinWidth" Value="0" />
|
<Setter Property="MinWidth" Value="0" />
|
||||||
@@ -49,6 +56,8 @@
|
|||||||
<Setter Property="BorderBrush" Value="Transparent" />
|
<Setter Property="BorderBrush" Value="Transparent" />
|
||||||
<Setter Property="Background" Value="Transparent" />
|
<Setter Property="Background" Value="Transparent" />
|
||||||
<Setter Property="IsVisible" Value="True" />
|
<Setter Property="IsVisible" Value="True" />
|
||||||
|
<Setter Property="Padding" Value="{StaticResource TextControlCompactThemePadding}" />
|
||||||
|
<Setter Property="MinHeight" Value="0" />
|
||||||
<Setter Property="Foreground">
|
<Setter Property="Foreground">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<SolidColorBrush Opacity="0.7" Color="{DynamicResource TextFillColorPrimary}" />
|
<SolidColorBrush Opacity="0.7" Color="{DynamicResource TextFillColorPrimary}" />
|
||||||
|
|||||||
@@ -4,16 +4,23 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:vm="using:Wallet"
|
xmlns:vm="using:Wallet"
|
||||||
x:DataType="vm:HyperlinkEntryViewModel"
|
x:DataType="vm:HyperlinkEntryViewModel"
|
||||||
Header="{Binding Key}">
|
Header="{Binding Key}"
|
||||||
|
IsExpanded="False">
|
||||||
|
<SettingsExpander.Resources>
|
||||||
|
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness>
|
||||||
|
<Thickness x:Key="TextControlCompactThemePadding">0</Thickness>
|
||||||
|
</SettingsExpander.Resources>
|
||||||
<SettingsExpander.Footer>
|
<SettingsExpander.Footer>
|
||||||
<Grid>
|
<Grid>
|
||||||
<TextBox Text="{Binding Value}">
|
<TextBox Text="{Binding Value}">
|
||||||
<TextBox.Styles>
|
<TextBox.Styles>
|
||||||
<Style Selector="TextBox.Write">
|
<Style Selector="TextBox.Write">
|
||||||
|
<Setter Property="MaxWidth" Value="{Binding Width}" />
|
||||||
<Setter Property="MinWidth" Value="{Binding Width}" />
|
<Setter Property="MinWidth" Value="{Binding Width}" />
|
||||||
<Setter Property="IsVisible" Value="True" />
|
<Setter Property="IsVisible" Value="True" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="TextBox.Read">
|
<Style Selector="TextBox.Read">
|
||||||
|
<Setter Property="MaxWidth" Value="{Binding Width}" />
|
||||||
<Setter Property="MinWidth" Value="{Binding Width}" />
|
<Setter Property="MinWidth" Value="{Binding Width}" />
|
||||||
<Setter Property="IsVisible" Value="False" />
|
<Setter Property="IsVisible" Value="False" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|||||||
@@ -4,18 +4,29 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:vm="using:Wallet"
|
xmlns:vm="using:Wallet"
|
||||||
x:DataType="vm:MaskedTextEntryViewModel"
|
x:DataType="vm:MaskedTextEntryViewModel"
|
||||||
Header="{Binding Key}">
|
Header="{Binding Key}"
|
||||||
|
IsExpanded="False">
|
||||||
|
<SettingsExpander.Resources>
|
||||||
|
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness>
|
||||||
|
<Thickness x:Key="TextControlCompactThemePadding">0</Thickness>
|
||||||
|
</SettingsExpander.Resources>
|
||||||
<SettingsExpander.Footer>
|
<SettingsExpander.Footer>
|
||||||
<MaskedTextBox Mask="{Binding Pattern}" Text="{Binding Value}">
|
<MaskedTextBox Mask="{Binding Pattern}" Text="{Binding Value}">
|
||||||
<TextBox.Styles>
|
<TextBox.Styles>
|
||||||
<Style Selector="TextBox.Write">
|
<Style Selector="TextBox.Write">
|
||||||
|
<Setter Property="MaxWidth" Value="{Binding Width}" />
|
||||||
<Setter Property="MinWidth" Value="{Binding Width}" />
|
<Setter Property="MinWidth" Value="{Binding Width}" />
|
||||||
|
<Setter Property="Padding" Value="{StaticResource TextControlThemePadding}" />
|
||||||
|
<Setter Property="TextWrapping" Value="NoWrap" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="TextBox.Read">
|
<Style Selector="TextBox.Read">
|
||||||
<Setter Property="MinWidth" Value="0" />
|
<Setter Property="MinWidth" Value="0" />
|
||||||
<Setter Property="IsReadOnly" Value="True" />
|
<Setter Property="IsReadOnly" Value="True" />
|
||||||
<Setter Property="BorderBrush" Value="Transparent" />
|
<Setter Property="BorderBrush" Value="Transparent" />
|
||||||
<Setter Property="Background" Value="Transparent" />
|
<Setter Property="Background" Value="Transparent" />
|
||||||
|
<Setter Property="Padding" Value="{StaticResource TextControlCompactThemePadding}" />
|
||||||
|
<Setter Property="MinHeight" Value="0" />
|
||||||
|
<Setter Property="TextWrapping" Value="Wrap" />
|
||||||
<Setter Property="Foreground">
|
<Setter Property="Foreground">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<SolidColorBrush Opacity="0.7" Color="{DynamicResource TextFillColorPrimary}" />
|
<SolidColorBrush Opacity="0.7" Color="{DynamicResource TextFillColorPrimary}" />
|
||||||
|
|||||||
@@ -4,7 +4,12 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:vm="using:Wallet"
|
xmlns:vm="using:Wallet"
|
||||||
x:DataType="vm:PasswordEntryViewModel"
|
x:DataType="vm:PasswordEntryViewModel"
|
||||||
Header="{Binding Key}">
|
Header="{Binding Key}"
|
||||||
|
IsExpanded="False">
|
||||||
|
<SettingsExpander.Resources>
|
||||||
|
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness>
|
||||||
|
<Thickness x:Key="TextControlCompactThemePadding">0</Thickness>
|
||||||
|
</SettingsExpander.Resources>
|
||||||
<SettingsExpander.Footer>
|
<SettingsExpander.Footer>
|
||||||
<TextBox
|
<TextBox
|
||||||
Classes="revealPasswordButton"
|
Classes="revealPasswordButton"
|
||||||
@@ -12,13 +17,19 @@
|
|||||||
Text="{Binding Value}">
|
Text="{Binding Value}">
|
||||||
<TextBox.Styles>
|
<TextBox.Styles>
|
||||||
<Style Selector="TextBox.Write">
|
<Style Selector="TextBox.Write">
|
||||||
|
<Setter Property="MaxWidth" Value="{Binding Width}" />
|
||||||
<Setter Property="MinWidth" Value="{Binding Width}" />
|
<Setter Property="MinWidth" Value="{Binding Width}" />
|
||||||
|
<Setter Property="Padding" Value="{StaticResource TextControlThemePadding}" />
|
||||||
|
<Setter Property="TextWrapping" Value="NoWrap" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="TextBox.Read">
|
<Style Selector="TextBox.Read">
|
||||||
<Setter Property="MinWidth" Value="0" />
|
<Setter Property="MinWidth" Value="0" />
|
||||||
<Setter Property="IsReadOnly" Value="True" />
|
<Setter Property="IsReadOnly" Value="True" />
|
||||||
<Setter Property="BorderBrush" Value="Transparent" />
|
<Setter Property="BorderBrush" Value="Transparent" />
|
||||||
<Setter Property="Background" Value="Transparent" />
|
<Setter Property="Background" Value="Transparent" />
|
||||||
|
<Setter Property="Padding" Value="{StaticResource TextControlCompactThemePadding}" />
|
||||||
|
<Setter Property="MinHeight" Value="0" />
|
||||||
|
<Setter Property="TextWrapping" Value="Wrap" />
|
||||||
<Setter Property="Foreground">
|
<Setter Property="Foreground">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<SolidColorBrush Opacity="0.7" Color="{DynamicResource TextFillColorPrimary}" />
|
<SolidColorBrush Opacity="0.7" Color="{DynamicResource TextFillColorPrimary}" />
|
||||||
|
|||||||
@@ -4,18 +4,29 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:vm="using:Wallet"
|
xmlns:vm="using:Wallet"
|
||||||
x:DataType="vm:TextEntryViewModel"
|
x:DataType="vm:TextEntryViewModel"
|
||||||
Header="{Binding Key}">
|
Header="{Binding Key}"
|
||||||
|
IsExpanded="False">
|
||||||
|
<SettingsExpander.Resources>
|
||||||
|
<Thickness x:Key="TextControlThemePadding">10,5,6,6</Thickness>
|
||||||
|
<Thickness x:Key="TextControlCompactThemePadding">0</Thickness>
|
||||||
|
</SettingsExpander.Resources>
|
||||||
<SettingsExpander.Footer>
|
<SettingsExpander.Footer>
|
||||||
<TextBox Text="{Binding Value}">
|
<TextBox Text="{Binding Value}">
|
||||||
<TextBox.Styles>
|
<TextBox.Styles>
|
||||||
<Style Selector="TextBox.Write">
|
<Style Selector="TextBox.Write">
|
||||||
|
<Setter Property="MaxWidth" Value="{Binding Width}" />
|
||||||
<Setter Property="MinWidth" Value="{Binding Width}" />
|
<Setter Property="MinWidth" Value="{Binding Width}" />
|
||||||
|
<Setter Property="Padding" Value="{StaticResource TextControlThemePadding}" />
|
||||||
|
<Setter Property="TextWrapping" Value="NoWrap" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="TextBox.Read">
|
<Style Selector="TextBox.Read">
|
||||||
<Setter Property="MinWidth" Value="0" />
|
<Setter Property="MinWidth" Value="0" />
|
||||||
<Setter Property="IsReadOnly" Value="True" />
|
<Setter Property="IsReadOnly" Value="True" />
|
||||||
<Setter Property="BorderBrush" Value="Transparent" />
|
<Setter Property="BorderBrush" Value="Transparent" />
|
||||||
<Setter Property="Background" Value="Transparent" />
|
<Setter Property="Background" Value="Transparent" />
|
||||||
|
<Setter Property="Padding" Value="{StaticResource TextControlCompactThemePadding}" />
|
||||||
|
<Setter Property="MinHeight" Value="0" />
|
||||||
|
<Setter Property="TextWrapping" Value="Wrap" />
|
||||||
<Setter Property="Foreground">
|
<Setter Property="Foreground">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<SolidColorBrush Opacity="0.7" Color="{DynamicResource TextFillColorPrimary}" />
|
<SolidColorBrush Opacity="0.7" Color="{DynamicResource TextFillColorPrimary}" />
|
||||||
|
|||||||
@@ -762,8 +762,7 @@ public record ItemConfiguration
|
|||||||
new DropdownEntryConfiguration
|
new DropdownEntryConfiguration
|
||||||
{
|
{
|
||||||
Label = "Type",
|
Label = "Type",
|
||||||
Values = ["American Express", "Discover", "Maestro", "Mastercard", "Visa"],
|
Values = ["American Express", "Discover", "Maestro", "Mastercard", "Visa"]
|
||||||
Width = 120
|
|
||||||
},
|
},
|
||||||
new MaskedTextEntryConfiguration
|
new MaskedTextEntryConfiguration
|
||||||
{
|
{
|
||||||
@@ -775,22 +774,19 @@ public record ItemConfiguration
|
|||||||
{
|
{
|
||||||
Label = "Expiry Date",
|
Label = "Expiry Date",
|
||||||
Pattern = "00/00",
|
Pattern = "00/00",
|
||||||
Value = "__/__",
|
Value = "__/__"
|
||||||
Width = 120
|
|
||||||
},
|
},
|
||||||
new MaskedTextEntryConfiguration
|
new MaskedTextEntryConfiguration
|
||||||
{
|
{
|
||||||
Label = "Valid From",
|
Label = "Valid From",
|
||||||
Pattern = "00/00",
|
Pattern = "00/00",
|
||||||
Value = "__/__",
|
Value = "__/__"
|
||||||
Width = 120
|
|
||||||
},
|
},
|
||||||
new MaskedTextEntryConfiguration
|
new MaskedTextEntryConfiguration
|
||||||
{
|
{
|
||||||
Label = "Card verification code",
|
Label = "Card verification code",
|
||||||
Pattern = "000",
|
Pattern = "000",
|
||||||
Value = "___",
|
Value = "___"
|
||||||
Width = 120
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user