mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
ColorPickerControl finally doesn't set database to dirty when there is an initial value
This commit is contained in:
@@ -6,10 +6,14 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
<ComboBox x:Name="ComboBox"
|
||||
ItemsSource="{Binding Colors, ElementName=UserControl}"
|
||||
SelectedValue="{Binding SelectedColor, ElementName=UserControl, Mode=TwoWay}"
|
||||
SelectedValuePath="ColorBrush"
|
||||
IsEnabled="{Binding IsEnabled, ElementName=UserControl}">
|
||||
DataContext="{Binding Source={StaticResource Locator}, Path=ColorPicker}"
|
||||
ItemsSource="{Binding Colors}"
|
||||
SelectedItem="{Binding SelectedItem}"
|
||||
SelectedValue="{Binding SelectedColor, ElementName=UserControl}"
|
||||
SelectedValuePath="ColorBrush"
|
||||
Loaded="ComboBox_OnLoaded"
|
||||
SelectionChanged="ComboBox_OnSelectionChanged"
|
||||
IsEnabled="{Binding IsEnabled, ElementName=UserControl}">
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<StackPanel Orientation="Horizontal" Margin="0,0,10,0">
|
||||
|
Reference in New Issue
Block a user