Skip to content

Commit

Permalink
convert to menu vs column with buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzzerd committed Sep 11, 2023
1 parent 040f7db commit f971606
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions SharpFM.App/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,30 @@
x:DataType="vm:MainWindowViewModel"
x:Class="SharpFM.App.MainWindow"
Title="SharpFM">
<Grid>
<DockPanel>
<Menu DockPanel.Dock="Top">
<MenuItem Header="_File">
<MenuItem Header="_New"
Command="{Binding NewEmptyItemCommand}"/>
<Separator/>
<MenuItem Header="_Exit"/>
</MenuItem>
<MenuItem Header="_Edit">
<MenuItem Header="Copy"
Command="{Binding CopySelectedToClipCommand}"/>
<MenuItem Header="Paste"
Command="{Binding PasteTextCommand}"/>
</MenuItem>
</Menu>
<TextBlock/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="200" />
<ColumnDefinition Width="225" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>

<StackPanel Grid.Column="0" >
<Button Command="{Binding NewEmptyItemCommand}">
New
</Button>

<Button Command="{Binding PasteTextCommand}">
Paste
</Button>

<Button Command="{Binding CopySelectedToClipCommand}">
Copy
</Button>
</StackPanel>
<ListBox
Grid.Column="1"
Grid.Column="0"
ItemsSource="{Binding Keys}"
SelectedItem="{Binding SelectedClip}">
<ListBox.ItemTemplate>
Expand All @@ -52,7 +54,7 @@
</ListBox>

<AvaloniaEdit:TextEditor
Grid.Column="2"
Grid.Column="1"
x:Name="avaloniaEditor"
SyntaxHighlighting="Xml"
WordWrap="False"
Expand All @@ -64,4 +66,6 @@
</AvaloniaEdit:TextEditor>

</Grid>
</DockPanel>

</Window>

0 comments on commit f971606

Please sign in to comment.