Files
modernkeepass/ModernKeePass/Views/UserControls/SymbolPickerUserControl.xaml

22 lines
886 B
Plaintext
Raw Normal View History

<UserControl x:Name="UserControl"
x:Class="ModernKeePass.Views.UserControls.SymbolPickerUserControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
2020-04-14 17:49:29 +02:00
<ComboBox
x:Name="ComboBox"
ItemsSource="{Binding Symbols, ElementName=UserControl}"
SelectedItem="{Binding SelectedSymbol, ElementName=UserControl, Mode=TwoWay}"
Loaded="ComboBox_OnLoaded">
<ComboBox.ItemTemplate>
<DataTemplate>
2020-04-14 17:49:29 +02:00
<Border>
<SymbolIcon Symbol="{Binding}" />
2020-04-14 17:49:29 +02:00
</Border>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</UserControl>