1e21e33ade
Move SecureStoreManager project and tests to Deprecated folder and remove from solution. SecureStore functionality is now integrated into ConfigManager.
64 lines
3.0 KiB
XML
64 lines
3.0 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="clr-namespace:JdeScoping.SecureStoreManager.ViewModels"
|
|
x:Class="JdeScoping.SecureStoreManager.Views.OpenStoreDialog"
|
|
Title="Open Store"
|
|
Height="280" Width="500"
|
|
WindowStartupLocation="CenterOwner"
|
|
CanResize="False"
|
|
ShowInTaskbar="False">
|
|
<!-- DataContext is set in code-behind -->
|
|
|
|
<Grid Margin="15" RowDefinitions="Auto,Auto,*,Auto">
|
|
<!-- Store Path -->
|
|
<Border Grid.Row="0" BorderBrush="Gray" BorderThickness="1" CornerRadius="3" Padding="10" Margin="0,0,0,10">
|
|
<StackPanel>
|
|
<TextBlock Text="Store File" FontWeight="SemiBold" Margin="0,0,0,10" />
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
<TextBox Grid.Column="0"
|
|
Text="{Binding StorePath, Mode=TwoWay}"
|
|
Margin="0,0,5,0" />
|
|
<Button Grid.Column="1"
|
|
Content="Browse..."
|
|
Command="{Binding BrowseStorePathCommand}"
|
|
Padding="10,5" />
|
|
</Grid>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- Key File Settings -->
|
|
<Border Grid.Row="1"
|
|
BorderBrush="Gray" BorderThickness="1" CornerRadius="3" Padding="10" Margin="0,0,0,10">
|
|
<StackPanel>
|
|
<TextBlock Text="Key File" FontWeight="SemiBold" Margin="0,0,0,10" />
|
|
<TextBlock Text="Select the key file used to encrypt this store."
|
|
FontSize="11" Foreground="Gray" Margin="0,0,0,10" TextWrapping="Wrap" />
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
<TextBox Grid.Column="0"
|
|
Text="{Binding KeyFilePath, Mode=TwoWay}"
|
|
Margin="0,0,5,0" />
|
|
<Button Grid.Column="1"
|
|
Content="Browse..."
|
|
Command="{Binding BrowseKeyFilePathCommand}"
|
|
Padding="10,5" />
|
|
</Grid>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- Validation Error -->
|
|
<TextBlock Grid.Row="2"
|
|
Text="{Binding ValidationError}"
|
|
Foreground="Red"
|
|
FontSize="11"
|
|
Margin="0,5,0,0"
|
|
IsVisible="{Binding ValidationError, Converter={StaticResource StringToBool}}"
|
|
VerticalAlignment="Top" />
|
|
|
|
<!-- Buttons -->
|
|
<StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" Spacing="10">
|
|
<Button Content="Open" Click="OpenButton_Click" IsEnabled="{Binding IsValid}" MinWidth="80" Padding="10,5" />
|
|
<Button Content="Cancel" Click="CancelButton_Click" MinWidth="80" Padding="10,5" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|