|
@@ -10,6 +10,7 @@
|
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
xmlns:local="clr-namespace:PDF_Master.Views.PropertyPanel.AnnotPanel"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
+ xmlns:tools="clr-namespace:PDF_Master.Views.Tools"
|
|
|
d:DataContext="{d:DesignInstance Type=AnnotPanel:StickyNotePropertyViewModel}"
|
|
|
d:DesignHeight="450"
|
|
|
d:DesignWidth="260"
|
|
@@ -26,6 +27,7 @@
|
|
|
<Convert:AnnotArgsTypeConverter x:Key="AnnotArgsTypeConverter" />
|
|
|
<dataConvert:InvertBoolToVisibleConvert x:Key="InvertBoolToVisibleConvert" />
|
|
|
<dataConvert:ColorBrushConvert x:Key="ColorBrushToColorConvert"></dataConvert:ColorBrushConvert>
|
|
|
+ <tools:AnnotToolIsCheckedConvert x:Key="AnnotToolIsCheckedConvert" />
|
|
|
</ResourceDictionary>
|
|
|
</UserControl.Resources>
|
|
|
<Grid VerticalAlignment="Stretch">
|
|
@@ -115,7 +117,8 @@
|
|
|
Foreground="#616469"
|
|
|
GroupName="StrickyNote"
|
|
|
Style="{StaticResource GreyBgRadioBtnStyle}"
|
|
|
- Tag="Comment">
|
|
|
+ Tag="Comment"
|
|
|
+ IsChecked="{Binding strOtherTag, Converter={StaticResource AnnotToolIsCheckedConvert}, ConverterParameter=Comment}">
|
|
|
<RadioButton.Content>
|
|
|
<Path
|
|
|
VerticalAlignment="Center"
|
|
@@ -142,7 +145,8 @@
|
|
|
Foreground="#616469"
|
|
|
GroupName="StrickyNote"
|
|
|
Style="{StaticResource GreyBgRadioBtnStyle}"
|
|
|
- Tag="Note">
|
|
|
+ Tag="Note"
|
|
|
+ IsChecked="{Binding strOtherTag, Converter={StaticResource AnnotToolIsCheckedConvert}, ConverterParameter=Note}">
|
|
|
<RadioButton.Content>
|
|
|
<Path
|
|
|
VerticalAlignment="Center"
|
|
@@ -169,7 +173,8 @@
|
|
|
Foreground="#616469"
|
|
|
GroupName="StrickyNote"
|
|
|
Style="{StaticResource GreyBgRadioBtnStyle}"
|
|
|
- Tag="Key">
|
|
|
+ Tag="Key"
|
|
|
+ IsChecked="{Binding strOtherTag, Converter={StaticResource AnnotToolIsCheckedConvert}, ConverterParameter=Key}">
|
|
|
<RadioButton.Content>
|
|
|
<Path
|
|
|
VerticalAlignment="Center"
|
|
@@ -196,7 +201,8 @@
|
|
|
Foreground="#616469"
|
|
|
GroupName="StrickyNote"
|
|
|
Style="{StaticResource GreyBgRadioBtnStyle}"
|
|
|
- Tag="Help">
|
|
|
+ Tag="Help"
|
|
|
+ IsChecked="{Binding strOtherTag, Converter={StaticResource AnnotToolIsCheckedConvert}, ConverterParameter=Help}">
|
|
|
<RadioButton.Content>
|
|
|
<Path
|
|
|
VerticalAlignment="Center"
|
|
@@ -224,7 +230,8 @@
|
|
|
Foreground="#616469"
|
|
|
GroupName="StrickyNote"
|
|
|
Style="{StaticResource GreyBgRadioBtnStyle}"
|
|
|
- Tag="Insert">
|
|
|
+ Tag="Insert"
|
|
|
+ IsChecked="{Binding strOtherTag, Converter={StaticResource AnnotToolIsCheckedConvert}, ConverterParameter=Insert}">
|
|
|
<RadioButton.Content>
|
|
|
<Path
|
|
|
VerticalAlignment="Center"
|
|
@@ -251,7 +258,8 @@
|
|
|
Foreground="#616469"
|
|
|
GroupName="StrickyNote"
|
|
|
Style="{StaticResource GreyBgRadioBtnStyle}"
|
|
|
- Tag="Paragraph">
|
|
|
+ Tag="Paragraph"
|
|
|
+ IsChecked="{Binding strOtherTag, Converter={StaticResource AnnotToolIsCheckedConvert}, ConverterParameter=Paragraph}">
|
|
|
<RadioButton.Content>
|
|
|
<Path
|
|
|
VerticalAlignment="Center"
|
|
@@ -278,7 +286,8 @@
|
|
|
Foreground="#616469"
|
|
|
GroupName="StrickyNote"
|
|
|
Style="{StaticResource GreyBgRadioBtnStyle}"
|
|
|
- Tag="NewParagraph">
|
|
|
+ Tag="NewParagraph"
|
|
|
+ IsChecked="{Binding strOtherTag, Converter={StaticResource AnnotToolIsCheckedConvert}, ConverterParameter=NewParagraph}">
|
|
|
<RadioButton.Content>
|
|
|
<Path
|
|
|
VerticalAlignment="Center"
|