|
7 | 7 | xmlns:System="clr-namespace:System;assembly=mscorlib" x:Class="PixelArtTool.MainWindow"
|
8 | 8 | mc:Ignorable="d"
|
9 | 9 | Title="PixelArtTool" Height="412.222" Width="739.444" Background="#FF252526" KeyDown="OnKeyDown" KeyUp="OnKeyUp">
|
| 10 | + <Window.CommandBindings> |
| 11 | + <CommandBinding Command="ApplicationCommands.Undo" Executed="Executed_Undo" CanExecute="CanExecute_Undo"/> |
| 12 | + </Window.CommandBindings> |
| 13 | + <Window.InputBindings> |
| 14 | + <KeyBinding Command="ApplicationCommands.Undo" Gesture="Ctrl+Z"/> |
| 15 | + </Window.InputBindings> |
| 16 | + |
10 | 17 | <Grid>
|
11 | 18 | <ToolBarTray Background="White" Height="36" VerticalAlignment="Top">
|
12 | 19 | <ToolBar Band="1" BandIndex="1" VerticalAlignment="Top">
|
|
19 | 26 | </ToolBar>
|
20 | 27 |
|
21 | 28 | <ToolBar Band="1" BandIndex="1" VerticalAlignment="Top">
|
22 |
| - <RadioButton GroupName="Toolbar" Style="{StaticResource {x:Type ToggleButton}}"> |
| 29 | + <RadioButton GroupName="Toolbar" ToolTip="Test" Style="{StaticResource {x:Type ToggleButton}}"> |
23 | 30 | <Image Source="/Resources/Buttons/drawmode.png" />
|
24 | 31 | </RadioButton>
|
25 |
| - <RadioButton GroupName="Toolbar" Style="{StaticResource {x:Type ToggleButton}}"> |
| 32 | + <RadioButton GroupName="Toolbar" ToolTip="Test" Style="{StaticResource {x:Type ToggleButton}}"> |
26 | 33 | <Image Source="/Resources/Buttons/drawmode.png" />
|
27 | 34 | </RadioButton>
|
28 | 35 | </ToolBar>
|
29 | 36 |
|
30 | 37 | <ToolBar Band="1" BandIndex="1" VerticalAlignment="Top">
|
31 |
| - <RadioButton GroupName="Toolbar2" Style="{StaticResource {x:Type ToggleButton}}"> |
| 38 | + <RadioButton GroupName="Toolbar2" ToolTip="Test" Style="{StaticResource {x:Type ToggleButton}}"> |
32 | 39 | <Image Source="/Resources/Buttons/emptybutton.png" />
|
33 | 40 | </RadioButton>
|
34 |
| - <RadioButton GroupName="Toolbar2" Style="{StaticResource {x:Type ToggleButton}}"> |
| 41 | + <RadioButton GroupName="Toolbar2" ToolTip="Test" Style="{StaticResource {x:Type ToggleButton}}"> |
35 | 42 | <Image Source="/Resources/Buttons/emptybutton.png" />
|
36 | 43 | </RadioButton>
|
37 | 44 | </ToolBar>
|
|
60 | 67 |
|
61 | 68 | <StatusBar Height="30" Margin="0,281,0,0" VerticalAlignment="Bottom">
|
62 | 69 | <StatusBarItem Height="30" VerticalAlignment="Center">
|
63 |
| - <Label x:Name="lblMousePos" Content="Label"/> |
| 70 | + <Label x:Name="lblMousePos" Content="Mouse Coord"/> |
64 | 71 | </StatusBarItem>
|
65 | 72 | <StatusBarItem Height="30" VerticalAlignment="Center">
|
66 |
| - <Label x:Name="lblPixelColor" Content="Label"/> |
| 73 | + <Label x:Name="lblPixelColor" Content="Pixel Color"/> |
| 74 | + </StatusBarItem> |
| 75 | + <StatusBarItem Height="30" VerticalAlignment="Center"> |
| 76 | + <Label x:Name="lblToolInfo" Content="-"/> |
67 | 77 | </StatusBarItem>
|
68 | 78 | </StatusBar>
|
69 | 79 | <Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="128" Margin="10,50,0,0" VerticalAlignment="Top" Width="64">
|
|
0 commit comments