|
15 | 15 | <RowDefinition Height="auto"></RowDefinition> |
16 | 16 | <RowDefinition Height="auto" x:Name="Fotter" MinHeight="18"></RowDefinition> |
17 | 17 | </Grid.RowDefinitions> |
| 18 | + |
| 19 | + <!--#region Header--> |
18 | 20 | <DockPanel x:Name="Header" Grid.Row="0" Background="{StaticResource ColorWindowHeader}" LastChildFill="False"> |
| 21 | + <!--#region Menu--> |
19 | 22 | <!--OpacityMask - it's color on MouseOver--> |
20 | 23 | <Menu Background="{StaticResource ColorMenuBackground}" Foreground="{StaticResource ColorMenuForeground}" BorderBrush="{StaticResource ColorMenuBorder}" OpacityMask="{StaticResource ColorMenuBackgroundMouseOver}" Template="{StaticResource MenuTemplate}" BorderThickness="1" HorizontalAlignment="Left" VerticalAlignment="Center"> |
21 | 24 | <MenuItem Header="File" x:Name="Item" Style="{StaticResource StyleMenuItem}" Margin="3,0,3,0"> |
|
73 | 76 | </MenuItem> |
74 | 77 | </MenuItem> |
75 | 78 | </Menu> |
76 | | - |
| 79 | + |
| 80 | + <!--#endregion Menu--> |
| 81 | + <!--#region Main Panel--> |
77 | 82 | <!--BorderBrush - it's Background color on IsMouseOver, OpacityMask - it's color on IsPressed--> |
78 | 83 | <Button DockPanel.Dock="Right" x:Name="ButtonClose" ToolTip="Close" Style="{StaticResource StyleHeaderButton}" Background="{StaticResource ColorWindowHeader}" BorderBrush="{StaticResource ColorWindowHeaderButtonCloseBackgroundMouseOver}" OpacityMask="{StaticResource ColorWindowHeaderButtonCloseBackgroundPressed}" Padding="7" Grid.IsSharedSizeScope="True" Margin="0,0,-7,0"> |
79 | 84 | <Rectangle Fill="{StaticResource IconClose}" Height="11" Width="11"/> |
|
85 | 90 | <Button DockPanel.Dock="Right" x:Name="ButtonMin" ToolTip="Minimize" Style="{StaticResource StyleHeaderButton}" Background="{StaticResource ColorWindowHeader}" BorderBrush="{StaticResource ColorWindowHeaderButtonBackgroundMouseOver}" OpacityMask="{StaticResource ColorWindowHeaderButtonBackgroundPressed}" > |
86 | 91 | <Rectangle Fill="{StaticResource IconMinimize}" Height="1" Width="11" /> |
87 | 92 | </Button> |
| 93 | + |
| 94 | + <!--For Name of scheme--> |
88 | 95 | <Label x:Name="LabelSchemeName" Style="{StaticResource StyleLabel}" BorderBrush="{StaticResource ColorNodesCanvasBackground}" Background="{StaticResource ColorNodesCanvasBackground}" BorderThickness="10,5,10,5" Margin="10, 0, 0 ,0" HorizontalAlignment="Right" VerticalAlignment="Center" Foreground="{StaticResource ColorMenuForeground}"> |
89 | 96 | <Label.ContextMenu> |
90 | 97 | <ContextMenu Template="{StaticResource TemplateContextMenu}" Background="{StaticResource ColorMenuBackground}" BorderBrush="{StaticResource ColorMenuBorder}" OpacityMask="{StaticResource ColorWindowHeaderButtonBackgroundMouseOver}" Foreground="{StaticResource ColorMenuForeground}" BorderThickness="1" HorizontalAlignment="Left" VerticalAlignment="Center" > |
91 | | - <MenuItem Header="Copy" x:Name="ItemSchemeName" InputGestureText="Ctrl+C" Style="{StaticResource StyleContextMenuItem}"> |
| 98 | + <MenuItem Header="Copy" x:Name="ItemCopySchemeName" InputGestureText="Ctrl+C" Style="{StaticResource StyleContextMenuItem}"> |
92 | 99 | <MenuItem.Icon> |
93 | 100 | <Rectangle Fill="{StaticResource IconCopy}" Height="15" Width="13"/> |
94 | 101 | </MenuItem.Icon> |
|
99 | 106 | <KeyBinding x:Name="BindingCopySchemeName" Key="C" Modifiers="Control" /> |
100 | 107 | </Label.InputBindings> |
101 | 108 | </Label> |
102 | | - |
103 | 109 | <Button DockPanel.Dock="Right" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}" /> |
| 110 | + <!--#endregion Main Panel--> |
104 | 111 | </DockPanel> |
| 112 | + <!--#endregion Header--> |
| 113 | + |
| 114 | + <!--#region ToolBar--> |
105 | 115 | <ToolBarTray Grid.Row="1" IsLocked="True" Background="{x:Null}"> |
106 | 116 | <ToolBar Style="{StaticResource ToolBarTemplate}" Background="{x:Null}" Foreground="{x:Null}" > |
107 | 117 | <Button x:Name="ButtonNew" ToolTip="New (Ctrl+N)" Style="{StaticResource StyleHeaderButton}" Background="{StaticResource ColorWindowHeader}" BorderBrush="{StaticResource ColorWindowHeaderButtonBackgroundMouseOver}"> |
|
145 | 155 | </Button> |
146 | 156 | </ToolBar> |
147 | 157 | </ToolBarTray> |
| 158 | + <!--#endregion ToolBar--> |
| 159 | + |
| 160 | + <!--#region Tabs--> |
148 | 161 | <!--BorderBrush - it's color on IsMouseOver, OpacityMask - it's color on IsPressed--> |
149 | 162 | <TabControl Grid.Row="2" Background="{x:Null}" BorderBrush="{x:Null}" TabStripPlacement="Top" Padding="2,2,2,0" > |
150 | 163 | <TabItem Header="Node editor" Style="{StaticResource StyleTabItem}" Background="{StaticResource ColorWindowHeader}" Foreground="{StaticResource ColorWindowHeaderTabItemForeground}" BorderBrush="{StaticResource ColorElementMouseOver}" OpacityMask="{StaticResource ColorElementMouseOver}"> |
151 | 164 | <view:ViewNodesCanvas x:Name="NodesCanvas" /> |
152 | 165 | </TabItem> |
153 | 166 | <!--<TabItem Header="Transitions table" ToolTip="" Style="{StaticResource StyleTabItem}" Foreground="{StaticResource ColorForeground}"/>--> |
154 | 167 | </TabControl> |
| 168 | + <!--#endregion Tabs--> |
| 169 | + |
| 170 | + <!--#region Error List--> |
155 | 171 | <GridSplitter Grid.Row="3" x:Name="ErrorListSplitter" HorizontalAlignment="Stretch" Background="{StaticResource ColorWindowHeader}" Height="3" ShowsPreview="False" IsEnabled="False"/> |
156 | 172 | <Expander Style="{StaticResource StyleExpander}" x:Name="ErrorListExpander" Grid.Row="4" HorizontalContentAlignment="Stretch" ExpandDirection="Up" Margin="3,0,0,0" > |
157 | 173 | <Expander.Header> |
|
207 | 223 | </ListBox> |
208 | 224 | </Expander.Content> |
209 | 225 | </Expander> |
| 226 | + <!--#endregion Error List--> |
210 | 227 | </Grid> |
211 | 228 |
|
212 | 229 | <Window.InputBindings> |
213 | | - <!--<KeyBinding x:Name="BindingUndo" Key="Z" Modifiers="Control" /> |
214 | | - <KeyBinding x:Name="BindingRedo" Key="Y" Modifiers="Control" />--> |
215 | 230 | <KeyBinding x:Name="BindingSave" Gesture="Ctrl+S"/> |
216 | 231 | <KeyBinding x:Name="BindingSaveAs" Gesture="Ctrl+Shift+S"/> |
217 | 232 | <KeyBinding x:Name="BindingOpen" Gesture="Ctrl+Shift+O" /> |
|
0 commit comments