-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
SAMKeyStoreKeyCounterControl.xaml
39 lines (39 loc) · 2.73 KB
/
SAMKeyStoreKeyCounterControl.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<UserControl x:Class="Leosac.KeyManager.Library.KeyStore.NXP_SAM.UI.SAMKeyStoreKeyCounterControl"
x:Name="userControl"
xmlns="http:https://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http:https://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http:https://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http:https://schemas.microsoft.com/expression/blend/2008"
xmlns:domain="clr-namespace:Leosac.KeyManager.Library.KeyStore.NXP_SAM.UI.Domain"
xmlns:local="clr-namespace:Leosac.KeyManager.Library.KeyStore.NXP_SAM.UI"
xmlns:materialDesign="http:https://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:properties="clr-namespace:Leosac.KeyManager.Library.KeyStore.NXP_SAM.UI.Properties"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance domain:SAMKeyStoreKeyCounterControlViewModel}"
d:DesignHeight="450" d:DesignWidth="800">
<materialDesign:DialogHost DialogTheme="Inherit" Identifier="KeyCounterDialog">
<DockPanel LastChildFill="True">
<ListBox ItemsSource="{Binding CounterIdentifiers}" SelectedItem="{Binding SelectedCounterIdentifier, Mode=TwoWay}" Margin="5,15,5,5">
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
</Style>
</ListBox.ItemContainerStyle>
<ListBox.ItemTemplate>
<DataTemplate>
<DockPanel LastChildFill="True">
<WrapPanel DockPanel.Dock="Right" Orientation="Horizontal">
<Button Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}" Command="{Binding DataContext.EditKeyUsageCounterCommand, ElementName=userControl}" CommandParameter="{Binding}" ToolTip="{x:Static properties:Resources.EditKUC}" Margin="3">
<materialDesign:PackIcon Kind="Edit" Height="24" Width="24" Cursor="Hand" />
</Button>
</WrapPanel>
<TextBox Text="{Binding Mode=OneWay}" IsReadOnly="True" Margin="10"
materialDesign:HintAssist.Hint="{x:Static properties:Resources.KUCIdentifier}"
materialDesign:HintAssist.HelperText="{x:Static properties:Resources.KUCIdentifierHelper}"/>
</DockPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</DockPanel>
</materialDesign:DialogHost>
</UserControl>