12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <UserControl
- x:Class="PDF_Office.Views.Tools.TextEditToolContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:customControl="clr-namespace:PDF_Office.CustomControl"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PDF_Office.Views.Tools"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- Height="40"
- d:DesignHeight="450"
- d:DesignWidth="800"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d">
- <Grid>
- <Border BorderBrush="{StaticResource color.sys.layout.divider}" BorderThickness="0,1,0,1">
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <customControl:CustomIconToggleBtn IsChecked="{Binding IsTextEdit}"
- x:Name="BtnAddText"
- Height="28"
- Padding="4,0"
- Command="{Binding AddContentCommand}"
- CommandParameter="{Binding ElementName=BtnAddText}"
- ContentStringFormat="156"
- Foreground="Black"
- Style="{StaticResource SubToolbarTgb}"
- Tag="Text">
- <StackPanel Orientation="Horizontal">
- <Path
- Width="20"
- Height="20"
- Data="M2 3C2 2.44772 2.44772 2 3 2H9H11H17C17.5523 2 18 2.44772 18 3V7H16V4H11L11 16H13V18H11H9H7V16H9L9 4H4V7H2V3Z"
- Fill="{StaticResource color.icon.base.brand}" />
- <TextBlock
- Margin="4,0,0,0"
- VerticalAlignment="Center"
- FontFamily="Segoe UI"
- FontSize="12"
- Foreground="{StaticResource color.icon.base.brand}"
- Text="Add Text" />
- </StackPanel>
- </customControl:CustomIconToggleBtn>
- <customControl:CustomIconToggleBtn IsChecked="{Binding IsImgEdit}"
- x:Name="BtnAddImage"
- Height="28"
- Margin="8,0"
- Padding="4,0"
- Command="{Binding AddContentCommand}"
- CommandParameter="{Binding ElementName=BtnAddImage}"
- ContentStringFormat="156"
- Foreground="{StaticResource color.icon.base.brand}"
- Style="{StaticResource SubToolbarTgb}"
- Tag="Image">
- <StackPanel Orientation="Horizontal">
- <Grid Width="20" Height="20">
- <Path Data="M17.5 4H2.5C2.22386 4 2 4.22386 2 4.5V15.5C2 15.7761 2.22386 16 2.5 16H17.5C17.7761 16 18 15.7761 18 15.5V4.5C18 4.22386 17.7761 4 17.5 4ZM2.5 2C1.11929 2 0 3.11929 0 4.5V15.5C0 16.8807 1.11929 18 2.5 18H17.5C18.8807 18 20 16.8807 20 15.5V4.5C20 3.11929 18.8807 2 17.5 2H2.5Z" Fill="{StaticResource color.icon.base.brand}" />
- <Path Data="M14.5 9C15.3284 9 16 8.32843 16 7.5C16 6.67157 15.3284 6 14.5 6C13.6716 6 13 6.67157 13 7.5C13 8.32843 13.6716 9 14.5 9ZM7.33654 8.21171L4.09402 13.1639C3.86307 13.5131 4.08478 14.0104 4.46354 13.9998H15.5399C15.9186 13.9998 16.1403 13.4919 15.9001 13.1427L13.5999 9.75662C13.4151 9.49208 13.0641 9.4815 12.8793 9.74604L10.9393 11.4232L8.07558 8.20113C7.88158 7.92601 7.5213 7.93659 7.33654 8.21171Z" Fill="{StaticResource color.icon.base.neutral.norm.lv2}" />
- </Grid>
- <TextBlock
- Margin="4,0,0,0"
- FontFamily="Segoe UI"
- FontSize="12"
- VerticalAlignment="Center"
- Text="Add Image" />
- </StackPanel>
- </customControl:CustomIconToggleBtn>
- </StackPanel>
- </Border>
- </Grid>
- </UserControl>
|