Dispenser/DispenserUI/Views/Controls/Table.axaml

35 lines
1.6 KiB
Plaintext
Raw Normal View History

2024-08-16 07:20:09 +00:00
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="DispenserUI.Views.Controls.Table">
<Grid RowDefinitions="*,90">
<DataGrid Grid.Row="0" x:Name="TableContent" GridLinesVisibility="All" BorderThickness="1" IsReadOnly="True"
BorderBrush="Gray" />
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<Button
x:Name="PrePageBtn"
Margin="0,0,10,0"
Width="50" Height="50"
VerticalAlignment="Center"
HorizontalAlignment="Center"
BorderThickness="0"
Background="Transparent">
<Image Source="/Assets/UI/left.png" Width="20" Height="20"
HorizontalAlignment="Center" VerticalAlignment="Center" />
</Button>
<StackPanel x:Name="PageRepeater" Orientation="Horizontal" HorizontalAlignment="Center"
VerticalAlignment="Center" />
<Button
x:Name="NextPageBtn"
Margin="10,0,0,0"
Width="50" Height="50"
VerticalAlignment="Center"
HorizontalAlignment="Center"
BorderThickness="0"
Background="Transparent">
<Image Source="/Assets/UI/right.png" Width="20" Height="20"
HorizontalAlignment="Center" VerticalAlignment="Center" />
</Button>
</StackPanel>
</Grid>
</UserControl>