|
8 | 8 | mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
9 | 9 | Focusable="True" |
10 | 10 | Background="#ff202020" |
11 | | - x:Class="ZXBasicStudio.DocumentEditors.ZXGraphics.SpriteEditor"> |
12 | | - <UserControl.Styles> |
13 | | - <Style Selector="Button.toolbar_r90"> |
14 | | - <Setter Property="Background" Value="#fff0f0f0" /> |
15 | | - <Setter Property="Width" Value="32" /> |
16 | | - <Setter Property="Height" Value="32" /> |
17 | | - <Setter Property="Padding" Value="4" /> |
18 | | - <Setter Property="CornerRadius" Value="4" /> |
19 | | - <Setter Property="RenderTransform"> |
20 | | - <Setter.Value> |
21 | | - <RotateTransform Angle="90"/> |
22 | | - </Setter.Value> |
23 | | - </Setter> |
24 | | - </Style> |
25 | | - <Style Selector="Button.toolbar_r270"> |
26 | | - <Setter Property="Background" Value="#fff0f0f0" /> |
27 | | - <Setter Property="Width" Value="32" /> |
28 | | - <Setter Property="Height" Value="32" /> |
29 | | - <Setter Property="Padding" Value="4" /> |
30 | | - <Setter Property="CornerRadius" Value="4" /> |
31 | | - <Setter Property="RenderTransform"> |
32 | | - <Setter.Value> |
33 | | - <RotateTransform Angle="270"/> |
34 | | - </Setter.Value> |
35 | | - </Setter> |
36 | | - </Style> |
37 | | - <Style Selector="Button.toolbar_hMirror"> |
38 | | - <Setter Property="Background" Value="#fff0f0f0" /> |
39 | | - <Setter Property="Width" Value="32" /> |
40 | | - <Setter Property="Height" Value="32" /> |
41 | | - <Setter Property="Padding" Value="4" /> |
42 | | - <Setter Property="CornerRadius" Value="4" /> |
43 | | - <Setter Property="RenderTransform"> |
44 | | - <Setter.Value> |
45 | | - <ScaleTransform ScaleX="-1"/> |
46 | | - </Setter.Value> |
47 | | - </Setter> |
48 | | - </Style> |
49 | | - </UserControl.Styles> |
| 11 | + x:Class="ZXBasicStudio.DocumentEditors.ZXGraphics.SpriteEditor"> |
50 | 12 |
|
51 | 13 | <Grid Name="grdMain" RowDefinitions="*,Auto"> |
52 | 14 | <Grid Name="grdEditor" Grid.RowSpan="2" ColumnDefinitions="180,4,*,4,200" Margin="0,8,0,0"> |
|
139 | 101 | </WrapPanel> |
140 | 102 |
|
141 | 103 | <local:SpritePatternEditor Name="ctrlEditor" Grid.Row="1" Background="#303030"/> |
142 | | - |
| 104 | + |
143 | 105 | <WrapPanel Orientation="Horizontal" Background="#ff202020" Grid.Row="2" Margin="10,5,10,5" Height="NaN"> |
144 | 106 | <TextBlock Name="txtZoom" Classes="dialog" Width="54">Zoom 24x</TextBlock> |
145 | 107 | <Slider Name="sldZoom" Width="100" Minimum="1" Maximum="9" Value="6" VerticalAlignment="Center"/> |
146 | 108 | <TextBlock Name="txtFrame" Classes="dialog" Width="55" Margin="8,4,0,0">Frame</TextBlock> |
147 | 109 | <Slider Name="sldFrame" Width="100" Minimum="0" Maximum="0" Value="0" VerticalAlignment="Center"/> |
148 | | - <Button Name="btnPaper" Classes="toobar" Margin="8,0,0,0">Paper</Button> |
149 | | - <Button Name="btnInk" Classes="toobar" Margin="8,0,0,0">Ink</Button> |
| 110 | + |
| 111 | + <Grid Name="btnPaper" Margin="8,0,0,0" ColumnDefinitions="*,16,Auto"> |
| 112 | + <TextBlock Margin="10,5,5,5">Paper</TextBlock> |
| 113 | + <Border Grid.Column="1" BorderBrush="Red" BorderThickness="1" Width="20" Height="20"> |
| 114 | + <Grid Name="grdPaper"> |
| 115 | + <TextBlock Name="txtPaper" Grid.Column="2" HorizontalAlignment="Center">0</TextBlock> |
| 116 | + </Grid> |
| 117 | + </Border> |
| 118 | + </Grid> |
| 119 | + |
| 120 | + <Grid Name="btnInk" Margin="8,0,0,0" ColumnDefinitions="*,16,Auto"> |
| 121 | + <TextBlock Margin="10,5,5,5">Ink</TextBlock> |
| 122 | + <Border Grid.Column="1" BorderBrush="Red" BorderThickness="1" Width="20" Height="20"> |
| 123 | + <Grid Name="grdInk"> |
| 124 | + <TextBlock Name="txtInk" Grid.Column="2" HorizontalAlignment="Center">1</TextBlock> |
| 125 | + </Grid> |
| 126 | + </Border> |
| 127 | + </Grid> |
| 128 | + |
| 129 | + <!-- |
150 | 130 | <Button Name="btnBright" Classes="toobar" Margin="8,0,0,0">Bright</Button> |
151 | 131 | <Button Name="btnFlash" Classes="toobar" Margin="8,0,0,0">Flash</Button> |
| 132 | + --> |
152 | 133 | </WrapPanel> |
153 | 134 |
|
154 | 135 | </Grid> |
155 | 136 |
|
156 | 137 | <GridSplitter ResizeDirection="Columns" Grid.Column="3" Classes="vertical"></GridSplitter> |
157 | 138 |
|
158 | | - <zxd:ZXDockingContainer Name="dockRight" DockingGroup="ZXGraphics" Grid.Column="4" RowDefinitions="*"> |
159 | | - <Grid RowDefinitions="120,4,*"> |
160 | | - |
161 | | - <zxd:ZXDockingControl Grid.Row="0" Name="dockPreview" Title="Preview" DockingGroup="ZXGraphics2" DesiredFloatingSize="200,400"> |
| 139 | + <zxd:ZXDockingContainer Name="dockRight" DockingGroup="ZXGraphics" Grid.Column="4" RowDefinitions="*,4,4*" Background="Red"> |
| 140 | + <zxd:ZXDockingControl Grid.Row="0" Name="dockPreview" Title="Preview" DockingGroup="ZXGraphics" DesiredFloatingSize="200,400"> |
162 | 141 | <zxd:ZXDockingControl.DockedControl> |
163 | 142 | <local:SpritePreviewControl Name="ctrlPreview"></local:SpritePreviewControl> |
164 | 143 | </zxd:ZXDockingControl.DockedControl> |
165 | 144 | </zxd:ZXDockingControl> |
166 | 145 |
|
167 | 146 | <GridSplitter ResizeDirection="Rows" Grid.Row="1" Classes="horizontal"></GridSplitter> |
168 | 147 |
|
169 | | - <zxd:ZXDockingControl Grid.Row="2" Name="dockProperties" Title="Properties" DockingGroup="ZXGraphics2" DesiredFloatingSize="200,400"> |
170 | | - <zxd:ZXDockingControl.DockedControl> |
| 148 | + <zxd:ZXDockingControl Grid.Row="2" Name="dockProperties" Title="Properties" DockingGroup="ZXGraphics" DesiredFloatingSize="200,400"> |
| 149 | + <zxd:ZXDockingControl.DockedControl> |
171 | 150 | <local:SpritePropertiesControl Name="ctrlProperties"/> |
172 | | - </zxd:ZXDockingControl.DockedControl> |
173 | | - </zxd:ZXDockingControl> |
174 | | - </Grid> |
175 | | - |
| 151 | + </zxd:ZXDockingControl.DockedControl> |
| 152 | + </zxd:ZXDockingControl> |
176 | 153 | </zxd:ZXDockingContainer> |
177 | 154 |
|
178 | 155 | </Grid> |
|
0 commit comments