AnnotToolContent.xaml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <UserControl x:Class="PDF_Office.Views.Tools.AnnotToolContent"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:customControl ="clr-namespace:PDF_Office.CustomControl"
  7. xmlns:prism="http://prismlibrary.com/"
  8. prism:ViewModelLocator.AutoWireViewModel="True"
  9. xmlns:convert="clr-namespace:PDF_Office.DataConvert"
  10. xmlns:local="clr-namespace:PDF_Office.Views.Tools"
  11. mc:Ignorable="d"
  12. d:DesignHeight="450" d:DesignWidth="800">
  13. <UserControl.Resources>
  14. <ResourceDictionary>
  15. <ResourceDictionary.MergedDictionaries>
  16. <ResourceDictionary Source="../../Styles/CustomBtnStyle.xaml"/>
  17. </ResourceDictionary.MergedDictionaries>
  18. <SolidColorBrush x:Key="PageBackGround" Color="#FFFCFDFF"/>
  19. <SolidColorBrush x:Key="Button.Static.Background" Color="Transparent"/>
  20. <SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/>
  21. <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#1A000000"/>
  22. <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#273C62"/>
  23. <SolidColorBrush x:Key="Button.Pressed.Background" Color="#26000000"/>
  24. <SolidColorBrush x:Key="toggleButton.ischecked" Color="#1A477EDE"/>
  25. <SolidColorBrush x:Key="toggleButton.Disable" Color="#33000000"/>
  26. <SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/>
  27. <SolidColorBrush x:Key="mytool.highlight" Color="#FFFFBB00"/>
  28. <SolidColorBrush x:Key="mytool.underline" Color=" #FF12FDFF"/>
  29. <SolidColorBrush x:Key="mytool.suiggly" Color=" #FFFF8716"/>
  30. <SolidColorBrush x:Key="mytool.deleteline" Color="#FFFF3B30"/>
  31. <SolidColorBrush x:Key="mytool.freehand" Color="#38E02E"/>
  32. <SolidColorBrush x:Key="path.fill" Color="#273C62"/>
  33. <SolidColorBrush x:Key="Separator.fill" Color="#1A000000"/>
  34. </ResourceDictionary>
  35. </UserControl.Resources>
  36. <Grid>
  37. <Border x:Name="ToolsBorder" BorderBrush="#1A000000" BorderThickness="0,1,0,1" Height="40">
  38. <WrapPanel Name="ToolPanel" Height="40" HorizontalAlignment="Center" Grid.ColumnSpan="2" Margin="11,0,11,-1.6">
  39. <customControl:CustomIconToggleBtn x:Name="BtnHand" Style="{StaticResource ToggleBtnViewModeStyle}" Foreground="Black" Click="BtnHand_Click">
  40. <Path Fill="{StaticResource path.fill}" Data="M8.65675004,8.16487294 L8.31929176,3.08955344 C8.27484516,2.45067706 8.73605124,1.88916808 9.3672872,1.81364041 L9.42727978,1.80702946 C9.7375259,1.77231122 10.048341,1.86719397 10.2872855,2.06956407 C10.52623,2.27193417 10.6724298,2.56411249 10.6918109,2.87800309 L11.0592655,8.41136687 C11.0703604,8.56777914 11.1890067,8.69481191 11.3432929,8.71547049 C11.4117069,8.72451809 11.4807634,8.70437729 11.5338005,8.65990771 C11.5868376,8.61543812 11.6190384,8.55067845 11.6226334,8.48125404 L11.8869757,3.38137959 C11.9198227,2.72140464 12.4766895,2.21274431 13.1318218,2.24429647 L13.1402582,2.24429647 C13.7959421,2.28184343 14.297592,2.84726687 14.2613696,3.50793203 L13.9876535,8.77969113 C13.9789526,8.94299187 14.0966479,9.08545115 14.2576201,9.10646087 C14.4169754,9.12723813 14.5669569,9.02051854 14.5978905,8.86091136 L15.1434481,6.11075684 C15.2690576,5.45910622 15.8896058,5.03411668 16.5307766,5.1597247 L16.5401504,5.16161354 C17.1847354,5.29129021 17.6038557,5.92173435 17.4775345,6.57163438 L16.8232404,9.87521972 C16.2345632,13.9579525 15.4199764,16.2698956 14.7085019,17.2549269 C13.6052008,18.7830004 11.6685652,18.8 10.1340674,18.8 C8.60050699,18.8 6.95727264,18.4382867 6.19424198,17.8706895 C5.43027393,17.3030924 4.39727664,16.0045133 3.74110776,14.5850482 L3.7504816,14.5803261 C3.69866814,14.5113251 3.65435718,14.4369191 3.61831044,14.3583871 L2.61249729,12.1767742 C2.33448107,11.5760307 2.58933313,10.86181 3.18336421,10.5769247 L3.19273805,10.5722026 C3.47751589,10.4385054 3.80345194,10.4247302 4.09834296,10.5339286 C4.39323397,10.643127 4.63273624,10.8662846 4.76379382,11.153966 C5.30935138,12.3250483 5.65243396,12.8614795 5.79491635,12.7632597 C6.00770254,12.61593 5.84366032,12.2117178 5.55869555,9.52767272 C5.36691233,7.72541424 5.12842292,5.92851198 4.84347147,4.13880539 C4.72485796,3.51086239 5.11430225,2.89908368 5.73023684,2.74578413 L5.79491635,2.72972897 C6.09856283,2.65668014 6.41866346,2.71262661 6.68014755,2.8844477 C6.94163163,3.05626878 7.1214958,3.32884896 7.17755791,3.63826215 L8.03713914,8.25364853 C8.06759678,8.41727678 8.22031992,8.52789659 8.38397126,8.50486457 C8.54887264,8.48104209 8.66774595,8.33328989 8.65675004,8.16581736 L8.65675004,8.16487294 Z"/>
  41. </customControl:CustomIconToggleBtn>
  42. <customControl:CustomIconToggleBtn x:Name="BtnMagnify" Style="{StaticResource ToggleBtnViewModeStyle}" Foreground="Black" Click="BtnHand_Click">
  43. <Grid>
  44. <Path Fill="#94989C" Data="M8.40662 17.4196V18.6667H6.40466V17.446H6.26632C5.77804 18.3086 4.83402 18.8132 3.66215 18.8132C1.96944 18.8132 0.740601 17.7715 0.740601 16.152V16.1357C0.740601 14.5785 1.90831 13.656 3.99762 13.499C4.24134 13.9553 4.52548 14.3868 4.84525 14.7886L4.40271 14.8174C3.27152 14.8906 2.74255 15.3057 2.74255 16.0381V16.0544C2.74255 16.8112 3.38546 17.2588 4.28064 17.2588C5.18242 17.2588 5.91099 16.8236 6.23013 16.1696C6.88447 16.6873 7.6168 17.1108 8.40662 17.4196ZM3.28308 11.6834C3.13105 11.1098 3.0375 10.5123 3.00919 9.89783C1.91889 10.2983 1.22247 11.0796 1.09054 12.0912L1.0824 12.1644H2.99483L3.00297 12.1318C3.06265 11.96 3.15663 11.8098 3.28308 11.6834Z"/>
  45. <Path Fill="{StaticResource path.fill}" Data="M5.26416 17.2012C7.02197 17.2012 8.41357 16.4443 9.19482 15.1016H9.40234V16.9814H12.0269V7.91162C12.0269 5.12842 10.147 3.46826 6.81445 3.46826C3.79932 3.46826 1.71191 4.9209 1.39453 7.09375L1.38232 7.1792H3.93359L3.9458 7.13037C4.26318 6.19043 5.22754 5.65332 6.69238 5.65332C8.48682 5.65332 9.40234 6.45898 9.40234 7.91162V9.0835L5.81348 9.29102C2.65186 9.48633 0.869629 10.8657 0.869629 13.2339V13.2583C0.869629 15.6631 2.7373 17.2012 5.26416 17.2012ZM3.50635 13.1484V13.124C3.50635 11.9277 4.33643 11.2686 6.16748 11.1587L9.40234 10.9512V12.0864C9.40234 13.7954 7.94971 15.0894 5.97217 15.0894C4.54395 15.0894 3.50635 14.3691 3.50635 13.1484Z"/>
  46. <Ellipse Width="17" Height="17" Stroke="#273C62" StrokeThickness="2"/>
  47. </Grid>
  48. </customControl:CustomIconToggleBtn>
  49. <customControl:CustomIconToggleBtn x:Name="BtnSelecttool" Tag="SnapshotEdit" Style="{StaticResource ToggleBtnViewModeStyle}" Foreground="Black" ContentStringFormat="156"
  50. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnSelecttool}" Click="BtnTool_Click">
  51. <Path Fill="{StaticResource path.fill}" Data="M5.75,1.75 L1.25,1.75 L1.25,6.25 L5.75,6.25 L5.75,1.75 Z M18.75,1.75 L14.25,1.75 L14.25,6.25 L18.75,6.25 L18.75,1.75 Z M5.75,13.75 L1.25,13.75 L1.25,18.25 L5.75,18.25 L5.75,13.75 Z M18.75,13.75 L18.75,18.25 L14.25,18.25 L14.25,13.75 L18.75,13.75 Z M9,15.25 L9,16.75 L7,16.75 L7,15.25 L9,15.25 Z M13,15.25 L13,16.75 L11,16.75 L11,15.25 L13,15.25 Z M4.25,11 L4.25,13 L2.75,13 L2.75,11 L4.25,11 Z M17.25,11 L17.25,13 L15.75,13 L15.75,11 L17.25,11 Z M4.25,7 L4.25,9 L2.75,9 L2.75,7 L4.25,7 Z M17.25,7 L17.25,9 L15.75,9 L15.75,7 L17.25,7 Z M9,3.25 L9,4.75 L7,4.75 L7,3.25 L9,3.25 Z M13,3.25 L13,4.75 L11,4.75 L11,3.25 L13,3.25 Z"/>
  52. </customControl:CustomIconToggleBtn>
  53. <customControl:CustomIconToggleBtn x:Name="Btnzoomarea" Style="{StaticResource ToggleBtnViewModeStyle}" Foreground="Black" Click="BtnHand_Click">
  54. <Grid>
  55. <Path Fill="#94989C" Data="M2.66667 1H4.5V2V3H3V4.5H2H1V2.66667C1 1.74619 1.74619 1 2.66667 1ZM1 17.3333V15.5H2H3V17H4.5V18V19H2.66667C1.74619 19 1 18.2538 1 17.3333ZM2 11.8333H1V8.16667H2H3V11.5V11.8333H2ZM11.5 3H11.8333V2V1H8.16667V2V3H11.5ZM15.5 2V1H17.3333C18.2538 1 19 1.74619 19 2.66667V4.5H18H17V3H15.5V2Z"/>
  56. <Path Fill="#273C62" Data="M16 11.5C16 13.9853 13.9853 16 11.5 16C9.01472 16 7 13.9853 7 11.5C7 9.01472 9.01472 7 11.5 7C13.9853 7 16 9.01472 16 11.5ZM15.3347 16.7489C14.2597 17.5356 12.9341 18 11.5 18C7.91015 18 5 15.0899 5 11.5C5 7.91015 7.91015 5 11.5 5C15.0899 5 18 7.91015 18 11.5C18 12.9341 17.5356 14.2597 16.7489 15.3347L19.7071 18.2929L18.2929 19.7071L15.3347 16.7489Z" />
  57. </Grid>
  58. </customControl:CustomIconToggleBtn>
  59. <Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" Margin="18 0 18 0" Width="1" Height="24" BorderBrush="{StaticResource Separator.fill}" BorderThickness="5"/>
  60. <customControl:CustomIconToggleBtn x:Name="BtnHighlight" Tag="HighLight" Style="{StaticResource ToggleBtnViewModeStyle}"
  61. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnHighlight}" Click="BtnTool_Click">
  62. <Grid VerticalAlignment="Center">
  63. <!--{StaticResource mytool.highlight}-->
  64. <!--<Path Name="HighlightPath" Width="20" Height="16" Fill="{Binding HighLightColor}" Opacity="{Binding HighLightOpacity}" Data="M2 0H20L18 16H0L2 0Z"/>
  65. <Image Source="../../Resources/ToolBarIcon/MyTools/Highlight.png" VerticalAlignment="Center" Stretch="UniformToFill"/>-->
  66. <Border x:Name="HighlightPath" Background="{Binding HighLightColor}" Opacity="{Binding HighLightOpacity}" Width="20" Height="20" BorderThickness="1" CornerRadius="3">
  67. <Path Fill="#273C62" Margin="-5,-5,0,0" Data="M7.5 7H20.5C20.7761 7 21 7.22386 21 7.5V20.5C21 20.7761 20.7761 21 20.5 21H7.5C7.22386 21 7 20.7761 7 20.5V7.5C7 7.22386 7.22386 7 7.5 7ZM5 7.5C5 6.11929 6.11929 5 7.5 5H20.5C21.8807 5 23 6.11929 23 7.5V20.5C23 21.8807 21.8807 23 20.5 23H7.5C6.11929 23 5 21.8807 5 20.5V7.5ZM12.1015 17.75H9.84564L12.6874 9.29492H15.3183L18.1601 17.75H15.9042L15.3828 15.8926H12.623L12.1015 17.75ZM14.0585 11.1582H13.9472L13.0566 14.3457H14.9492L14.0585 11.1582Z"/>
  68. </Border>
  69. </Grid>
  70. </customControl:CustomIconToggleBtn>
  71. <customControl:CustomIconToggleBtn x:Name="BtnUnderLine" Tag="UnderLine" Style="{StaticResource ToggleBtnViewModeStyle}"
  72. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnUnderLine}" Click="BtnTool_Click">
  73. <Grid Width="20" Height="20">
  74. <Grid.RowDefinitions>
  75. <RowDefinition Height="Auto"/>
  76. <RowDefinition/>
  77. </Grid.RowDefinitions>
  78. <Path Name="UnderlinePath" Fill="#273C62" Data="M3.41699 16H5.82666L7.16992 12.001H12.8301L14.1631 16H16.583L11.2407 1.20361H8.75928L3.41699 16ZM9.90771 3.79785H10.082L12.2148 10.1553H7.78516L9.90771 3.79785Z" />
  79. <Rectangle Grid.Row="1" Margin="0,1,0,0" Width="16" Height="2" Fill="{Binding UnderLineColor}" Opacity="{Binding UnderLineOpacity}"/>
  80. <!--<Image Width="20" Height="20" Source="../../Resources/ToolBarIcon/MyTools/Highlight.png" Stretch="UniformToFill"/>
  81. <Line Name="UnderlinePath" Stroke="{Binding UnderLineColor}" Opacity="{Binding UnderLineOpacity}" VerticalAlignment="Bottom" X1="0" X2="20" StrokeThickness="1" />-->
  82. </Grid>
  83. </customControl:CustomIconToggleBtn>
  84. <customControl:CustomIconToggleBtn x:Name="BtnSuiggly" Tag="Squiggly" Visibility="Collapsed" Style="{StaticResource ToggleBtnViewModeStyle}"
  85. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnSuiggly}" Click="BtnTool_Click">
  86. <Grid Width="20" Height="20">
  87. <Image Width="20" Height="20" Source="../../Resources/ToolBarIcon/MyTools/Highlight.png" Stretch="UniformToFill"/>
  88. <Path Name="SquigglyPath" Fill="{Binding SquigglyColor}" Opacity="{Binding SquigglyOpacity}" VerticalAlignment="Bottom"
  89. Data="M0,1.5 L1.12734157,0.82359506 C1.95251203,0.32849278 2.99856537,0.398852295 3.75,1 C4.48079387,1.5846351 5.51920613,1.5846351 6.25,1 C6.98079387,0.415364901 8.01920613,0.415364901 8.75,1 C9.48079387,1.5846351 10.5192061,1.5846351 11.25,1 C11.9807939,0.415364901 13.0192061,0.415364901 13.75,1 C14.4807939,1.5846351 15.5192061,1.5846351 16.25,1 C17.0014346,0.398852295 18.047488,0.32849278 18.8726584,0.82359506 L20,1.5 L20,1.5 L20,3 L18.8726584,2.32359506 C18.047488,1.82849278 17.0014346,1.89885229 16.25,2.5 C15.5192061,3.0846351 14.4807939,3.0846351 13.75,2.5 C13.0192061,1.9153649 11.9807939,1.9153649 11.25,2.5 C10.5192061,3.0846351 9.48079387,3.0846351 8.75,2.5 C8.01920613,1.9153649 6.98079387,1.9153649 6.25,2.5 C5.51920613,3.0846351 4.48079387,3.0846351 3.75,2.5 C2.99856537,1.89885229 1.95251203,1.82849278 1.12734157,2.32359506 L0,3 L0,3 L0,1.5 Z"/>
  90. </Grid>
  91. </customControl:CustomIconToggleBtn>
  92. <customControl:CustomIconToggleBtn x:Name="BtnDeleteLine" Tag="Strikeout" Style="{StaticResource ToggleBtnViewModeStyle}"
  93. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnDeleteLine}" Click="BtnTool_Click">
  94. <Grid Width="20" Height="20">
  95. <Path Name="StrikeoutPath" Fill="#273C62" Data="M5.23047 18H2.47656L4.46236 12.5H15.5376L17.5234 18H14.7578L13.2344 13.4297H6.76562L5.23047 18ZM14.9359 10.8333L11.418 1.08984H8.58203L5.06411 10.8333H7.63134L9.89453 4.05469H10.0938L12.3679 10.8333H14.9359Z" />
  96. <Rectangle Grid.Row="1" Margin="0,4,0,0" Width="16" Height="2" Fill="{Binding StrikeoutColor}" Opacity="{Binding StrikeoutOpacity}"/>
  97. <!--<Image Width="20" Height="20" Source="../../Resources/ToolBarIcon/MyTools/Highlight.png" Stretch="UniformToFill"/>
  98. <Line Name="StrikeoutPath" Stroke="{Binding StrikeoutColor }" Opacity="{Binding StrikeoutOpacity}" VerticalAlignment="Bottom" X1="0" X2="20" Margin="0,0,0,7" StrokeThickness="1" />-->
  99. </Grid>
  100. </customControl:CustomIconToggleBtn>
  101. <customControl:CustomIconToggleBtn x:Name="BtnFreeHand" Tag="Freehand" Style="{StaticResource ToggleBtnViewModeStyle}"
  102. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnFreeHand}" Click="BtnTool_Click">
  103. <Grid>
  104. <Image Width="20" Height="20" Source="../../Resources/ToolBarIcon/MyTools/FreeHande.png" Stretch="UniformToFill"/>
  105. <Path Name="FreehandPath" Fill="{StaticResource mytool.freehand}" VerticalAlignment="Bottom"
  106. Data="M2.57674716,4.1756938 L2,2.77872077 L3.23629157,2.32666213 L4.39858152,1.91423694 L5.48803594,1.54159101 L6.17445055,1.31533198 L6.8293576,1.10686063 L7.4531026,0.916220157 L8.04603105,0.743453759 L8.60848847,0.58860464 L9.14082038,0.451716002 L9.64337227,0.332831046 C9.72466845,0.314519594 9.80473819,0.296960095 9.88358869,0.280153449 L10.3421184,0.188355018 L10.7717319,0.114668273 C12.0867553,-0.0899506488 12.9720275,-0.0214898126 13.4769206,0.326224086 C13.7931843,0.544031104 14.0243062,0.794201523 14.1654835,1.08081708 C14.4150998,1.58758343 14.372095,1.98890858 14.1388295,2.56637317 L14.0118481,2.8607497 L14.1178229,2.85487846 C14.3317937,2.83763034 14.6024395,2.79427307 14.9260381,2.72394503 L15.1265218,2.67850482 L15.3515733,2.6235355 L15.8394138,2.49284637 C15.9249062,2.46876007 16.0124891,2.44352166 16.1021588,2.41713154 L16.665189,2.24497377 L17.2781263,2.04519508 L17.9407955,1.81781534 L18.653021,1.56285442 L19.4146274,1.28033219 L20,2.67408238 L18.9461796,3.06389046 L18.2946269,3.29587476 L17.6827717,3.50537002 L17.1096728,3.69222298 C16.9249947,3.75071655 16.7466192,3.80541085 16.5743893,3.85628035 L16.07598,3.99738887 C15.9158848,4.0405832 15.7617783,4.07992718 15.6135039,4.11539526 L15.1860199,4.21014624 C14.0234985,4.44551743 13.271008,4.39900906 12.8322254,4.05493276 C12.4563321,3.76017178 12.3000774,3.35823485 12.3526752,2.92564423 C12.3673344,2.80507968 12.3854738,2.71608905 12.4219387,2.60716366 L12.4922357,2.42238589 L12.6817642,1.97507903 L12.7254854,1.84483042 C12.7439032,1.77588453 12.7424284,1.73934924 12.7304594,1.71505002 C12.7102358,1.67399262 12.6563117,1.61562419 12.5457193,1.53946054 C12.4359989,1.46389742 12.2053386,1.43735078 11.8597168,1.46056818 L11.6123366,1.4834271 C11.5682899,1.48846839 11.5228403,1.49412611 11.4759961,1.50040128 L11.1782601,1.54546983 L10.8474456,1.60540634 L10.4839463,1.68026003 L10.0881558,1.77008011 C10.0195217,1.78630005 9.9495585,1.80314565 9.87827444,1.82061792 L9.43478535,1.93297989 L8.95998926,2.0604313 L8.4542798,2.20302138 L7.6386142,2.44539918 L6.75560787,2.72211586 L5.8065894,3.03333754 L4.7928874,3.37923034 L4.08180686,3.62916931 L3.34296223,3.89464073 L2.57674716,4.1756938 Z"/>
  107. </Grid>
  108. </customControl:CustomIconToggleBtn>
  109. <customControl:CustomIconToggleBtn x:Name="BtnTextBox" Tag="Freetext" Style="{StaticResource ToggleBtnViewModeStyle}"
  110. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnTextBox}" Click="BtnTool_Click">
  111. <Path Name="FreeTextPath" Fill="{StaticResource path.fill}" Data="M16.75,2.75 L16.75,6 L15.25,6 L15.25,4.25 L10.75,4.25 L10.75,16.25 L12.3333333,16.25 L12.3333333,17.75 L7.66666667,17.75 L7.66666667,16.25 L9.25,16.25 L9.25,4.25 L4.75,4.25 L4.75,6 L3.25,6 L3.25,2.75 L16.75,2.75 Z"/>
  112. </customControl:CustomIconToggleBtn>
  113. <customControl:CustomIconToggleBtn x:Name="BtnNote" Tag="StickyNote" Style="{StaticResource ToggleBtnViewModeStyle}"
  114. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnNote}" Click="BtnTool_Click">
  115. <Path Name="StickyPath" Fill="{StaticResource path.fill}" Data="M18,3 L18,15 L10,15 L5,18 L5,15 L2,15 L2,3 L18,3 Z M15,9.5 L5,9.5 L5,11 L15,11 L15,9.5 Z M11,6 L5,6 L5,7.5 L11,7.5 L11,6 Z"/>
  116. </customControl:CustomIconToggleBtn>
  117. <customControl:CustomIconToggleBtn x:Name="BtnRectangle" Tag="Rect" Style="{StaticResource ToggleBtnViewModeStyle}"
  118. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnRectangle}" Click="BtnTool_Click">
  119. <Path Name="RectPath" Fill="{StaticResource path.fill}" Data="M18.75,3.25 L1.25,3.25 L1.25,16.75 L18.75,16.75 L18.75,3.25 Z M17.25,4.75 L17.25,15.25 L2.75,15.25 L2.75,4.75 L17.25,4.75 Z"/>
  120. </customControl:CustomIconToggleBtn>
  121. <customControl:CustomIconToggleBtn x:Name="BtnCircle" Tag="Circle" Visibility="Collapsed" Style="{StaticResource ToggleBtnViewModeStyle}"
  122. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnCircle}" Click="BtnTool_Click">
  123. <Path Name="CirclePath" Fill="{StaticResource path.fill}" Data="M10,1.75 C5.44365081,1.75 1.75,5.44365081 1.75,10 C1.75,14.5563492 5.44365081,18.25 10,18.25 C14.5563492,18.25 18.25,14.5563492 18.25,10 C18.25,5.44365081 14.5563492,1.75 10,1.75 Z M10,3.25 C13.7279221,3.25 16.75,6.27207794 16.75,10 C16.75,13.7279221 13.7279221,16.75 10,16.75 C6.27207794,16.75 3.25,13.7279221 3.25,10 C3.25,6.27207794 6.27207794,3.25 10,3.25 Z"/>
  124. </customControl:CustomIconToggleBtn>
  125. <customControl:CustomIconToggleBtn x:Name="BtnArrow" Tag="Arrow" Visibility="Collapsed" Style="{StaticResource ToggleBtnViewModeStyle}"
  126. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnArrow}" Click="BtnTool_Click">
  127. <Path Name="ArrowPath" Fill="{StaticResource path.fill}" Data="M16.75,3.25 L16.75,10 L15.25,10 L15.2496699,5.81 L2.53033009,18.5303301 L1.46966991,17.4696699 L14.1886699,4.75 L10,4.75 L10,3.25 L16.75,3.25 Z"/>
  128. </customControl:CustomIconToggleBtn>
  129. <customControl:CustomIconToggleBtn x:Name="BtnLine" Tag="Line" Visibility="Collapsed" Style="{StaticResource ToggleBtnViewModeStyle}"
  130. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnLine}" Click="BtnTool_Click">
  131. <Polygon Name="LinePath" Fill="{StaticResource path.fill}" Points="16.4696699 2.46966991 17.5303301 3.53033009 3.53033009 17.5303301 2.46966991 16.4696699"/>
  132. </customControl:CustomIconToggleBtn>
  133. <Separator x:Name="Separator2" Margin="18 0 18 0" Visibility="Collapsed" Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" Width="1" Height="24" BorderBrush="{StaticResource Separator.fill}" BorderThickness="5"/>
  134. <customControl:CustomIconToggleBtn x:Name="BtnLink" Tag="Link" Style="{StaticResource ToggleBtnViewModeStyle}"
  135. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnLink}" Click="BtnTool_Click">
  136. <Path Fill="{StaticResource path.fill}" Data="M5.66897097,8.32062139 L6.72963114,9.38128157 L3.28248558,12.8284271 L7.17157288,16.7175144 L10.6187184,13.2703689 L11.6793786,14.331029 L7.17157288,18.8388348 L1.16116524,12.8284271 L5.66897097,8.32062139 Z M10.8838835,8.05545635 L11.9445436,9.11611652 L9.11611652,11.9445436 L8.05545635,10.8838835 L10.8838835,8.05545635 Z M12.8284271,1.16116524 L18.8388348,7.17157288 L14.331029,11.6793786 L13.2703689,10.6187184 L16.7175144,7.17157288 L12.8284271,3.28248558 L9.38128157,6.72963114 L8.32062139,5.66897097 L12.8284271,1.16116524 Z"/>
  137. </customControl:CustomIconToggleBtn>
  138. <customControl:CustomIconToggleBtn x:Name="BtnStamp" Tag="Stamp" Style="{StaticResource ToggleBtnViewModeStyle}"
  139. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnStamp}" Click="BtnTool_Click">
  140. <Path Fill="{StaticResource path.fill}" Data="M18,16 L18,17.5 L2,17.5 L2,16 L18,16 Z M18,12.5 L18,14 L2,14 L2,12.5 L18,12.5 Z M10,2.5 C12.209139,2.5 14,4.290861 14,6.5 C14,7.98663789 13.18899,9.28385425 11.9852674,9.97335177 L12,9.95 C11.6666667,10.4 11.5,10.8333333 11.5,11.25 C11.5,11.6666667 11.6666667,12.0833333 12,12.5 L8,12.5 C8.33333333,12.0833333 8.5,11.6666667 8.5,11.25 C8.5,10.8407738 8.33923257,10.4154709 8.0176977,9.9740912 C6.81190093,9.28527892 6,7.98745427 6,6.5 C6,4.290861 7.790861,2.5 10,2.5 Z"/>
  141. </customControl:CustomIconToggleBtn>
  142. <customControl:CustomIconToggleBtn x:Name="BtnImage" Visibility="Collapsed" Tag="Image" Style="{StaticResource ToggleBtnViewModeStyle}"
  143. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnImage}" Click="BtnTool_Click">
  144. <Path Fill="{StaticResource path.fill}" Data="M18.75,3.25 L18.75,16.75 L1.25,16.75 L1.25,3.25 L18.75,3.25 Z M17.25,4.75 L2.75,4.75 L2.75,13.209 L5.79495643,10 L10.0642824,13.5 L12.3718478,11.0677556 L17.144,15.25 L17.25,15.25 L17.25,4.75 Z M14.5,6 C15.3284271,6 16,6.67157288 16,7.5 C16,8.32842712 15.3284271,9 14.5,9 C13.6715729,9 13,8.32842712 13,7.5 C13,6.67157288 13.6715729,6 14.5,6 Z" />
  145. </customControl:CustomIconToggleBtn>
  146. <customControl:CustomIconToggleBtn x:Name="BtnSignature" Tag="Signature" Style="{StaticResource ToggleBtnViewModeStyle}"
  147. Command="{Binding MyToolsCommand}" CommandParameter="{Binding ElementName=BtnSignature}" Click="BtnTool_Click">
  148. <Path Fill="{StaticResource path.fill}" Data="M18.7543058,16.3443993 C18.9656094,16.6954448 18.9813228,16.9966176 18.8978009,17.4572909 L18.826,17.806 L18.8978851,17.806359 C19.3792283,17.7921147 20.3037773,17.5996029 21.7156089,17.1738522 L21.9860484,17.0912772 L22.4288798,18.5244207 L21.8475028,18.699785 C19.986527,19.2460948 18.884493,19.4112477 18.2253103,19.2318114 C17.7167034,19.0933633 17.3865027,18.7345902 17.3106239,18.2492218 C17.274268,18.0166663 17.2866151,17.8553732 17.347866,17.5492906 L17.425,17.176 L17.4152947,17.1747787 C17.3620481,17.1680608 17.2976329,17.1636481 17.2219791,17.162344 L17.1000607,17.1628197 L16.8550555,17.1757447 C15.547583,17.2788381 12.9960682,17.9622356 8.86992463,19.3733086 L8.45204927,19.5168469 L7.96287896,18.098851 L9.22432797,17.6694569 C13.2694613,16.3124901 15.7326773,15.6939707 17.0654598,15.6632189 C17.8797192,15.6444311 18.4494944,15.838006 18.7543058,16.3443993 Z M15.1421356,1.70710678 L20.0918831,6.65685425 L15.495689,9.83883476 L14.4350288,13.7279221 C13.8158097,13.7127416 12.6372984,13.9484439 10.8994949,14.4350288 C9.393451,14.8567211 7.68787642,15.5325515 5.78277121,16.4625198 C5.97111985,16.8367123 5.90866966,17.3045338 5.59619408,17.6170094 C5.20566979,18.0075336 4.57250481,18.0075336 4.18198052,17.6170094 C3.79145622,17.2264851 3.79145622,16.5933201 4.18198052,16.2027958 C4.48711239,15.8976639 4.94037414,15.8309435 5.31028645,16.0026345 C6.37879744,13.6739253 7.06337177,11.973028 7.36396103,10.8994949 C7.70233398,9.69102012 7.93803624,8.51250882 8.07106781,7.36396103 L11.9601551,6.30330086 L15.1421356,1.70710678 Z M11.2530483,9.13172798 L9.13172798,12.6672619 L12.6672619,10.5459415 L11.2530483,9.13172798 Z"/>
  149. </customControl:CustomIconToggleBtn>
  150. <Separator x:Name="Separator3" Margin="18 0 18 0" Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" Width="1" Height="24" BorderBrush="#1A000000" BorderThickness="5"/>
  151. <customControl:CustomIconToggleBtn x:Name="BtnBookMark" Visibility="Collapsed" Style="{StaticResource ToggleBtnViewModeStyle}" Click="BtnBookMark_Click">
  152. <Grid>
  153. <Path Fill="{StaticResource path.fill}" Data="M16.75,1.25 L3.25,1.25 L3.25,19.4013878 L10,14.902 L16.75,19.4013878 L16.75,1.25 Z M15.25,2.75 L15.25,16.598 L10,13.0986122 L4.75,16.597 L4.75,2.75 L15.25,2.75 Z"/>
  154. <Polygon x:Name="BookMakrHighlight" Fill="#FFBB00" Points="16.75 1.25 3.25 1.25 3.25 19.4013878 10 14.902 16.75 19.4013878" Visibility="Collapsed"/>
  155. </Grid>
  156. </customControl:CustomIconToggleBtn>
  157. </WrapPanel>
  158. </Border>
  159. </Grid>
  160. </UserControl>