-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEditorPart.axaml
More file actions
89 lines (89 loc) · 4.9 KB
/
EditorPart.axaml
File metadata and controls
89 lines (89 loc) · 4.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<UserControl xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:explorer="clr-namespace:PaintPower.FileExplorer" xmlns:editors="clr-namespace:PaintPower.Editors" xmlns:vm="clr-namespace:PaintPower.VMPanel" xmlns:sprite="clr-namespace:PaintPower.SpriteEditor" x:Class="PaintPower.EditorPart">
<Grid RowDefinitions="50,*">
<!-- HEADER Background="#e0e0e0" -->
<Border Grid.Row="0" Background="#a3a3a3">
<Grid ColumnDefinitions="200,*,300" VerticalAlignment="Center">
<!-- LEFT: App title -->
<TextBlock Text="PaintPower" VerticalAlignment="Center" Margin="12,0" FontSize="20" Foreground="#333" />
<TextBlock Text="" Margin="17,-10" FontSize="10" Foreground="black" x:Name="VersionInfoTextBlock" />
<!-- CENTER: Menu buttons -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Spacing="16" Grid.Column="1" Margin="12,0">
<Menu Grid.Column="1" Margin="12,0">
<MenuItem x:Name="FileMenu" Header="File">
<MenuItem x:Name="FileNew" Header="New" Click="OnFileNew" />
<Separator />
<MenuItem x:Name="FileOpen" Header="Open..." Click="OnFileOpen" />
<Separator />
<MenuItem x:Name="FileSave" Header="Save" Click="OnFileSave" />
<MenuItem x:Name="FileSaveAs" Header="Save As..." Click="OnFileSaveAs" />
<Separator />
<MenuItem x:Name="FileClose" Header="Close Project" Click="OnCloseProject" />
<Separator />
<MenuItem x:Name="FileExit" Header="Exit" Click="OnFileExit" />
</MenuItem>
<MenuItem x:Name="EditMenu" Header="Edit">
<MenuItem x:Name="EditUndo" Header="Undo" Click="OnEditUndo" />
<MenuItem x:Name="EditRedo" Header="Redo" Click="OnEditRedo" />
<MenuItem x:Name="EditCut" Header="Cut" Click="OnEditCut" />
<MenuItem x:Name="EditCopy" Header="Copy" Click="OnEditCopy" />
<MenuItem x:Name="EditPaste" Header="Paste" Click="OnEditPaste" />
</MenuItem>
<MenuItem x:Name="ServerMenu" Header="Server">
<MenuItem x:Name="MakeConnection" Header="Make Connection" Click="OnMakeConnection" />
<MenuItem x:Name="UploadProject" Header="Upload Project to server!" Click="OnUploadProject" />
<MenuItem x:Name="DownloadProject" Header="Download project from server" Click="OnDownloadProjectFromServer" />
<MenuItem x:Name="OpenCollaborators" Header="Open collaborators" />
<MenuItem Header="Login" Click="OnLogin" />
<MenuItem Header="Logout" Click="OnLogout" />
</MenuItem>
<MenuItem x:Name="LanguageDropdown" Header="Language" />
</Menu>
</StackPanel>
<!-- RIGHT: Status area -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Spacing="16" Grid.Column="2" Margin="0,0,12,0">
<TextBlock Text="" VerticalAlignment="Center" x:Name="ProjectStatus" PointerPressed="StatusClicked" />
<Menu Grid.Column="1" Margin="12,0">
<MenuItem x:Name="HelpMenu" Header="Help">
<MenuItem x:Name="HelpDocumentation" Header="Documentation" Click="OnHelpDocumentation" />
<MenuItem x:Name="HelpReportBug" Header="Report a Bug" Click="OnHelpReportBug" />
<MenuItem x:Name="HelpAbout" Header="About" Click="OnHelpAbout" />
</MenuItem>
</Menu>
<!--User
dropdown menu.-->
<Menu></Menu>
</StackPanel>
</Grid>
</Border>
<!-- MAIN CONTENT -->
<Grid Grid.Row="1" ColumnDefinitions="260,5,*,">
<!-- BACKGROUND -->
<Grid.Background>
<ImageBrush Source="avares://PaintPower/Assets/Background.png" Stretch="None" TileMode="Tile" AlignmentX="Left" AlignmentY="Top" DestinationRect="0,0,10,10" />
</Grid.Background>
<!-- OUTER LEFT: Sprite Manager + Sprite Properties -->
<Grid Grid.Column="0" RowDefinitions="*,5,*">
<!-- SPRITE MANAGER -->
<sprite:SpriteManagerView Grid.Row="0" x:Name="SpriteManager" Margin="0,0,0,5" />
<GridSplitter Grid.Row="1" Height="5" Background="#505050" ResizeDirection="Rows" ResizeBehavior="PreviousAndNext" />
<!-- SPRITE PROPERTIES -->
<Border Grid.Row="2" Background="#252525">
<TextBlock Text="Sprite Properties" Foreground="White" Margin="8" />
<!-- TODO: Replace with your SpriteProperties control -->
</Border>
</Grid>
<!-- SPLITTER between LEFT and CENTER -->
<GridSplitter Grid.Column="1" Width="5" Background="#505050" ResizeDirection="Columns" ResizeBehavior="PreviousAndNext" />
<Grid Grid.Row="2" RowDefinitions="30,*" Grid.Column="2">
<!-- Status Bar -->
<Border Grid.Row="0" Background="#c4c4c4" Margin="3">
<StackPanel Orientation="Horizontal" Margin="2" Background="#e0e0e0">
<TextBlock x:Name="StatusBarText" Text="Ready" Grid.Column="0" Margin="3" />
</StackPanel>
</Border>
<!-- OUTER CENTER: Sprite Editor Host -->
<ContentControl x:Name="CenterHost" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
</Grid>
</Grid>
</Grid>
</UserControl>