dock panel

This commit is contained in:
Tyrel Souza 2022-11-02 00:31:47 -04:00
parent 548445241c
commit 3d300f363a

View File

@ -9,41 +9,54 @@
xmlns:sys="clr-namespace:System;assembly=System.Runtime" xmlns:sys="clr-namespace:System;assembly=System.Runtime"
Icon="/Assets/avalonia-logo.ico" Icon="/Assets/avalonia-logo.ico"
Title="btd_pdf_avalonia" Title="btd_pdf_avalonia"
Width="1200" Height="800" Background="AliceBlue"
Width="800" Height="600"
MinWidth="800" MinWidth="800"
MinHeight="600" MinHeight="600"
ExtendClientAreaToDecorationsHint="True"
> >
<Design.DataContext> <Design.DataContext>
<vm:MainWindowViewModel/> <vm:MainWindowViewModel/>
</Design.DataContext> </Design.DataContext>
<DockPanel>
<Grid ColumnDefinitions="100,150,4*" RowDefinitions="Auto,Auto,Auto,Auto,Auto" Margin="8" Name="ggGrid"> <Grid DockPanel.Dock="Top" ColumnDefinitions="100,150,4*" RowDefinitions="Auto,Auto,Auto" Name="ggGrid">
<Button Name="btnOpenFile" Content="Open File" Click="OpenFile_Click" Grid.Row="0" Grid.Column="0"/> <Button Name="btnOpenFile"
<TextBlock Text="{Binding SourcePath}" FontSize="18" Grid.Row="0" Grid.Column="1" /> Content="Open File"
Click="OpenFile_Click"
<Label Grid.Row="0" Grid.Column="0"
Grid.Row="1" Margin="10 10 0 0"
Grid.ColumnSpan="2" />
FontSize="18" <TextBlock Name="tbSourcePath"
> Text="{Binding SourcePath}"
File Type: FontSize="18"
</Label> Grid.Row="0" Grid.Column="1"
<ListBox Grid.ColumnSpan="2"
Name="lbParsers" Margin="10 10 0 0"
FontSize="8" />
Margin="10 0 0 0" <Label Name="lbFileType"
Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Grid.Column="0"
Items="{Binding Parsers}" Grid.ColumnSpan="2"
SelectedItem="{Binding SelectedParser}" FontSize="18"
SelectedIndex="0" Margin="10 0 0 0"
Content="File Type:"
/>
<ListBox Name="lbParsers"
Margin="10 0 0 0"
Grid.Row="2" Grid.Column="0"
Grid.ColumnSpan="2"
Items="{Binding Parsers}"
SelectedItem="{Binding SelectedParser}"
SelectedIndex="0"
/>
<TextBox Name="tbContents"
Grid.Row="1" Grid.Column="2"
Grid.RowSpan="2"
Margin="10 0 10 0"
/> />
<TextBox Grid.Row="1" Grid.Column="2" Grid.RowSpan="4" Margin="10 0 0 0">
</TextBox>
<TextBox Grid.Row="3" Grid.Column="0" Margin="10 0 0 0">
</TextBox>
</Grid> </Grid>
<TextBox Margin="10">
temp for webview
</TextBox>
</DockPanel>
</Window> </Window>