|
@@ -19,11 +19,12 @@
|
|
<RowDefinition Height="5"/>
|
|
<RowDefinition Height="5"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
|
|
+
|
|
<Viewbox Margin="30" VerticalAlignment="Top">
|
|
<Viewbox Margin="30" VerticalAlignment="Top">
|
|
<Grid x:Name="imageGrid"
|
|
<Grid x:Name="imageGrid"
|
|
Visibility="{Binding Document, Converter={StaticResource NullToVisibiltyConverter}, ElementName=uc}"
|
|
Visibility="{Binding Document, Converter={StaticResource NullToVisibiltyConverter}, ElementName=uc}"
|
|
Height="{Binding Document.Height, ElementName=uc}" Width="{Binding Document.Width, ElementName=uc}"
|
|
Height="{Binding Document.Height, ElementName=uc}" Width="{Binding Document.Width, ElementName=uc}"
|
|
- Background="Transparent">
|
|
|
|
|
|
+ Background="{Binding SelectedItem.Tag, ElementName=backgroundComboBox}" d:Width="8" d:Height="8">
|
|
<ItemsControl ItemsSource="{Binding Document.Layers, ElementName=uc}">
|
|
<ItemsControl ItemsSource="{Binding Document.Layers, ElementName=uc}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<ItemsPanelTemplate>
|
|
@@ -49,6 +50,7 @@
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</Viewbox>
|
|
</Viewbox>
|
|
|
|
+
|
|
<Grid Grid.Row="1">
|
|
<Grid Grid.Row="1">
|
|
<Grid.Background>
|
|
<Grid.Background>
|
|
<SolidColorBrush Color="{Binding ColorCursorColor, ElementName=uc, FallbackValue=Black}"/>
|
|
<SolidColorBrush Color="{Binding ColorCursorColor, ElementName=uc, FallbackValue=Black}"/>
|
|
@@ -74,5 +76,77 @@
|
|
|
|
|
|
<local:PrependTextBlock Prepend=" (" Text="{Binding ColorCursorColor, ElementName=uc, FallbackValue=#00000000}" Append=")"/>
|
|
<local:PrependTextBlock Prepend=" (" Text="{Binding ColorCursorColor, ElementName=uc, FallbackValue=#00000000}" Append=")"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <StackPanel Visibility="{Binding OptionsOpen, ElementName=uc, Converter={StaticResource BoolToVisibilityConverter}, FallbackValue=Hidden}"
|
|
|
|
+ Background="{StaticResource AccentColor}" Grid.RowSpan="3">
|
|
|
|
+ <Grid Margin="5">
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
+ <ColumnDefinition Width="Auto"/>
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
+ <ColumnDefinition Width="50"/>
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
+ <TextBlock Text="Background: " VerticalAlignment="Center"/>
|
|
|
|
+ <ComboBox SelectedIndex="1" x:Name="backgroundComboBox" Grid.Column="1">
|
|
|
|
+ <ComboBoxItem Content="None">
|
|
|
|
+ <ComboBoxItem.Tag>
|
|
|
|
+ <SolidColorBrush Color="Transparent"/>
|
|
|
|
+ </ComboBoxItem.Tag>
|
|
|
|
+ </ComboBoxItem>
|
|
|
|
+ <ComboBoxItem Content="Checkered">
|
|
|
|
+ <ComboBoxItem.Tag>
|
|
|
|
+ <ImageBrush ImageSource="/Images/transparentbg.png"/>
|
|
|
|
+ </ComboBoxItem.Tag>
|
|
|
|
+ </ComboBoxItem>
|
|
|
|
+ <ComboBoxItem Content="Black">
|
|
|
|
+ <ComboBoxItem.Tag>
|
|
|
|
+ <SolidColorBrush Color="Black"/>
|
|
|
|
+ </ComboBoxItem.Tag>
|
|
|
|
+ </ComboBoxItem>
|
|
|
|
+ <ComboBoxItem Content="White">
|
|
|
|
+ <ComboBoxItem.Tag>
|
|
|
|
+ <SolidColorBrush Color="White"/>
|
|
|
|
+ </ComboBoxItem.Tag>
|
|
|
|
+ </ComboBoxItem>
|
|
|
|
+ </ComboBox>
|
|
|
|
+ </Grid>
|
|
|
|
+ </StackPanel>
|
|
|
|
+
|
|
|
|
+ <ToggleButton Height="28" VerticalAlignment="Top" HorizontalAlignment="Right"
|
|
|
|
+ Margin="5" Background="Transparent" BorderThickness="0" IsChecked="{Binding OptionsOpen, ElementName=uc, Mode=TwoWay, FallbackValue=True}">
|
|
|
|
+ <ToggleButton.Style>
|
|
|
|
+ <Style TargetType="ToggleButton">
|
|
|
|
+ <Setter Property="Template">
|
|
|
|
+ <Setter.Value>
|
|
|
|
+ <ControlTemplate TargetType="ToggleButton">
|
|
|
|
+ <Border BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
+ Background="{TemplateBinding Background}">
|
|
|
|
+ <ContentPresenter HorizontalAlignment="Center"
|
|
|
|
+ VerticalAlignment="Center"/>
|
|
|
|
+ </Border>
|
|
|
|
+ </ControlTemplate>
|
|
|
|
+ </Setter.Value>
|
|
|
|
+ </Setter>
|
|
|
|
+ <Style.Triggers>
|
|
|
|
+ <Trigger Property="IsChecked" Value="False">
|
|
|
|
+ <Setter Property="Foreground" Value="LightGray"/>
|
|
|
|
+ </Trigger>
|
|
|
|
+ <Trigger Property="IsChecked" Value="True">
|
|
|
|
+ <Setter Property="Foreground" Value="White"/>
|
|
|
|
+ </Trigger>
|
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
|
+ <Setter Property="Foreground" Value="Gray"/>
|
|
|
|
+ </Trigger>
|
|
|
|
+ </Style.Triggers>
|
|
|
|
+ </Style>
|
|
|
|
+ </ToggleButton.Style>
|
|
|
|
+ <Viewbox>
|
|
|
|
+ <Grid>
|
|
|
|
+ <Path Stroke="{Binding Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType=ToggleButton}, Mode=OneWay}" Data="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>
|
|
|
|
+ <Ellipse Stroke="{Binding Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType=ToggleButton}, Mode=OneWay}" Height="12" Width="12" HorizontalAlignment="Center" VerticalAlignment="Stretch"/>
|
|
|
|
+ </Grid>
|
|
|
|
+ </Viewbox>
|
|
|
|
+ </ToggleButton>
|
|
|
|
+
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|
|
</UserControl>
|