|
@@ -156,33 +156,38 @@
|
|
|
|
|
|
<DockPanel Grid.Column="2" Grid.Row="1" Background="#404040">
|
|
<DockPanel Grid.Column="2" Grid.Row="1" Background="#404040">
|
|
<Grid DockPanel.Dock="Top" HorizontalAlignment="Center" Width="100" Margin="0,20,0,0" Height="100">
|
|
<Grid DockPanel.Dock="Top" HorizontalAlignment="Center" Width="100" Margin="0,20,0,0" Height="100">
|
|
- <Rectangle Height="70" Width="70" HorizontalAlignment="Left" VerticalAlignment="Top" Stroke="Black" StrokeThickness="1" Panel.ZIndex="1">
|
|
|
|
- <Rectangle.Fill>
|
|
|
|
- <SolidColorBrush Color="{Binding PrimaryColor, Mode=OneWay}"/>
|
|
|
|
- </Rectangle.Fill>
|
|
|
|
- </Rectangle>
|
|
|
|
- <xctk:ColorPicker Width="70" Panel.ZIndex="2" Height="70" VerticalAlignment="Top" HorizontalAlignment="Left" UsingAlphaChannel="True" AvailableColorsSortingMode="Alphabetical" ShowDropDownButton="False" Background="Transparent" BorderThickness="0" ShowRecentColors="True" SelectedColor="{Binding PrimaryColor, Mode=TwoWay}"></xctk:ColorPicker>
|
|
|
|
- <Rectangle Height="70" Width="70" HorizontalAlignment="Right" VerticalAlignment="Bottom" Stroke="Black" StrokeThickness="1" Margin="0,0,4,5">
|
|
|
|
- <Rectangle.Fill>
|
|
|
|
- <SolidColorBrush Color="{Binding SecondaryColor, Mode=OneWay}"/>
|
|
|
|
- </Rectangle.Fill>
|
|
|
|
- </Rectangle>
|
|
|
|
- <xctk:ColorPicker Width="70" Height="70" HorizontalAlignment="Right" VerticalAlignment="Bottom" UsingAlphaChannel="True" AvailableColorsSortingMode="Alphabetical" ShowDropDownButton="False" Background="Transparent" BorderThickness="0" ShowRecentColors="True" Margin="0,0,4,5" SelectedColor="{Binding SecondaryColor, Mode=TwoWay}"/>
|
|
|
|
- </Grid>
|
|
|
|
|
|
+ <Rectangle Height="70" Width="70" HorizontalAlignment="Left" VerticalAlignment="Top" Stroke="Black" StrokeThickness="1" Panel.ZIndex="1">
|
|
|
|
+ <Rectangle.Fill>
|
|
|
|
+ <SolidColorBrush Color="{Binding PrimaryColor, Mode=OneWay}"/>
|
|
|
|
+ </Rectangle.Fill>
|
|
|
|
+ </Rectangle>
|
|
|
|
+ <xctk:ColorPicker Width="70" Panel.ZIndex="2" Height="70" VerticalAlignment="Top" HorizontalAlignment="Left" UsingAlphaChannel="True" AvailableColorsSortingMode="Alphabetical" ShowDropDownButton="False" Background="Transparent" BorderThickness="0" ShowRecentColors="True" SelectedColor="{Binding PrimaryColor, Mode=TwoWay}"></xctk:ColorPicker>
|
|
|
|
+ <Button ToolTip="Swap colors (X)" Command="{Binding SwapColorsCommand}" Width="25" Height="25" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="0 0 0 3" Style="{StaticResource ImageButtonStyle}">
|
|
|
|
+ <Button.Background>
|
|
|
|
+ <ImageBrush ImageSource="/Images/SwapArrows.png" Stretch="Fill"/>
|
|
|
|
+ </Button.Background>
|
|
|
|
+ </Button>
|
|
|
|
+ <Rectangle Height="70" Width="70" HorizontalAlignment="Right" VerticalAlignment="Bottom" Stroke="Black" StrokeThickness="1" Margin="0,0,4,5">
|
|
|
|
+ <Rectangle.Fill>
|
|
|
|
+ <SolidColorBrush Color="{Binding SecondaryColor, Mode=OneWay}"/>
|
|
|
|
+ </Rectangle.Fill>
|
|
|
|
+ </Rectangle>
|
|
|
|
+ <xctk:ColorPicker Width="70" Height="70" HorizontalAlignment="Right" VerticalAlignment="Bottom" UsingAlphaChannel="True" AvailableColorsSortingMode="Alphabetical" ShowDropDownButton="False" Background="Transparent" BorderThickness="0" ShowRecentColors="True" Margin="0,0,4,5" SelectedColor="{Binding SecondaryColor, Mode=TwoWay}"/>
|
|
|
|
+ </Grid>
|
|
|
|
|
|
<xcad:DockingManager Grid.Column="2" Grid.Row="1" DockPanel.Dock="Top">
|
|
<xcad:DockingManager Grid.Column="2" Grid.Row="1" DockPanel.Dock="Top">
|
|
- <xcad:DockingManager.Style>
|
|
|
|
- <Style TargetType="xcad:DockingManager">
|
|
|
|
- <Setter Property="Foreground" Value="Snow"/>
|
|
|
|
- </Style>
|
|
|
|
- </xcad:DockingManager.Style>
|
|
|
|
- <xcad:LayoutRoot x:Name="LayoutRoot">
|
|
|
|
- <xcad:LayoutPanel Orientation="Vertical">
|
|
|
|
- <xcad:LayoutAnchorablePane>
|
|
|
|
- <xcad:LayoutAnchorable ContentId="layers" Title="Layers" CanHide="False" CanClose="False" CanAutoHide="False" CanDockAsTabbedDocument="False" CanFloat="True">
|
|
|
|
- <StackPanel Orientation="Vertical">
|
|
|
|
- <Button Command="{Binding NewLayerCommand}" Height="30" Content="New Layer" HorizontalAlignment="Stretch" Margin="5" Style="{StaticResource DarkRoundButton}"/>
|
|
|
|
- <ItemsControl AllowDrop="True" ItemsSource="{Binding BitmapUtility.Layers}" x:Name="layersItemsControl" AlternationCount="9999">
|
|
|
|
|
|
+ <xcad:DockingManager.Style>
|
|
|
|
+ <Style TargetType="xcad:DockingManager">
|
|
|
|
+ <Setter Property="Foreground" Value="Snow"/>
|
|
|
|
+ </Style>
|
|
|
|
+ </xcad:DockingManager.Style>
|
|
|
|
+ <xcad:LayoutRoot x:Name="LayoutRoot">
|
|
|
|
+ <xcad:LayoutPanel Orientation="Vertical">
|
|
|
|
+ <xcad:LayoutAnchorablePane>
|
|
|
|
+ <xcad:LayoutAnchorable ContentId="layers" Title="Layers" CanHide="False" CanClose="False" CanAutoHide="False" CanDockAsTabbedDocument="False" CanFloat="True">
|
|
|
|
+ <StackPanel Orientation="Vertical">
|
|
|
|
+ <Button Command="{Binding NewLayerCommand}" Height="30" Content="New Layer" HorizontalAlignment="Stretch" Margin="5" Style="{StaticResource DarkRoundButton}"/>
|
|
|
|
+ <ItemsControl ItemsSource="{Binding BitmapUtility.Layers}" x:Name="layersItemsControl" AlternationCount="9999">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<ItemsPanelTemplate>
|
|
<ui:ReversedOrderStackPanel Orientation="Vertical"/>
|
|
<ui:ReversedOrderStackPanel Orientation="Vertical"/>
|
|
@@ -208,20 +213,20 @@
|
|
Path=(ItemsControl.AlternationIndex)}"/>
|
|
Path=(ItemsControl.AlternationIndex)}"/>
|
|
</ContextMenu>
|
|
</ContextMenu>
|
|
</Button.ContextMenu>
|
|
</Button.ContextMenu>
|
|
- <vws:EditableTextBlock IsEditing="{Binding IsRenaming, Mode=TwoWay}" Text="{Binding Name, Mode=TwoWay}">
|
|
|
|
|
|
+ <vws:EditableTextBlock PlaceholderIndex="{Binding Path=(ItemsControl.AlternationIndex), RelativeSource={RelativeSource Mode=TemplatedParent}}" IsEditing="{Binding IsRenaming, Mode=TwoWay}" Text="{Binding Name, Mode=TwoWay}">
|
|
</vws:EditableTextBlock>
|
|
</vws:EditableTextBlock>
|
|
</Button>
|
|
</Button>
|
|
</DockPanel>
|
|
</DockPanel>
|
|
</Border>
|
|
</Border>
|
|
</DataTemplate>
|
|
</DataTemplate>
|
|
- </ItemsControl.ItemTemplate>
|
|
|
|
- </ItemsControl>
|
|
|
|
- </StackPanel>
|
|
|
|
- </xcad:LayoutAnchorable>
|
|
|
|
- </xcad:LayoutAnchorablePane>
|
|
|
|
- </xcad:LayoutPanel>
|
|
|
|
- </xcad:LayoutRoot>
|
|
|
|
- </xcad:DockingManager>
|
|
|
|
|
|
+ </ItemsControl.ItemTemplate>
|
|
|
|
+ </ItemsControl>
|
|
|
|
+ </StackPanel>
|
|
|
|
+ </xcad:LayoutAnchorable>
|
|
|
|
+ </xcad:LayoutAnchorablePane>
|
|
|
|
+ </xcad:LayoutPanel>
|
|
|
|
+ </xcad:LayoutRoot>
|
|
|
|
+ </xcad:DockingManager>
|
|
</DockPanel>
|
|
</DockPanel>
|
|
|
|
|
|
</Grid>
|
|
</Grid>
|