mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[TUI] Add GoTo Sector dialog for improved sector navigation
This commit is contained in:
38
Aaru.Tui/Views/Dialogs/GoToSectorDialog.axaml
Normal file
38
Aaru.Tui/Views/Dialogs/GoToSectorDialog.axaml
Normal file
@@ -0,0 +1,38 @@
|
||||
<Window xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:vm="using:Aaru.Tui.ViewModels.Dialogs"
|
||||
xmlns:brushes="https://github.com/jinek/consolonia"
|
||||
Width="40"
|
||||
Height="8"
|
||||
x:Class="Aaru.Tui.Views.Dialogs.GoToSectorDialog"
|
||||
x:DataType="vm:GoToSectorDialogViewModel"
|
||||
Title="Go to Sector"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
RequestedThemeVariant="Dark"
|
||||
CanResize="False">
|
||||
<Design.DataContext>
|
||||
<vm:GoToSectorDialogViewModel />
|
||||
</Design.DataContext>
|
||||
<Border BorderThickness="1">
|
||||
<Border.BorderBrush>
|
||||
<brushes:LineBrush LineStyle="DoubleLine"
|
||||
Brush="Blue" />
|
||||
</Border.BorderBrush>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Enter sector number:" />
|
||||
<TextBox Text="{Binding SectorNumber, Mode=OneWay}"
|
||||
Watermark="Sector number" />
|
||||
<TextBlock Text="{Binding ErrorMessage, Mode=OneWay}"
|
||||
Foreground="Red"
|
||||
IsVisible="{Binding HasError, Mode=OneWay}" />
|
||||
<StackPanel Orientation="Horizontal"
|
||||
HorizontalAlignment="Right"
|
||||
Spacing="1">
|
||||
<Button Content="OK"
|
||||
Command="{Binding OkCommand, Mode=OneWay}" />
|
||||
<Button Content="Cancel"
|
||||
Command="{Binding CancelCommand, Mode=OneWay}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user