mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
46 lines
2.7 KiB
XML
46 lines
2.7 KiB
XML
<windowManager:ManagedWindow 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"
|
|
xmlns:windowManager="clr-namespace:Iciclecreek.Avalonia.WindowManager;assembly=Iciclecreek.Avalonia.WindowManager"
|
|
xmlns:localization="clr-namespace:Aaru.Tui.Localization"
|
|
Width="40"
|
|
Height="8"
|
|
x:Class="Aaru.Tui.Views.Dialogs.GoToSectorDialog"
|
|
x:DataType="vm:GoToSectorDialogViewModel"
|
|
Title="{x:Static localization:Resources.GoToSector_Title}"
|
|
WindowStartupLocation="CenterScreen"
|
|
CanResize="False">
|
|
<Design.DataContext>
|
|
<vm:GoToSectorDialogViewModel />
|
|
</Design.DataContext>
|
|
<Border BorderThickness="1"
|
|
Background="{DynamicResource CyberBackgroundPrimaryBrush}">
|
|
<Border.BorderBrush>
|
|
<brushes:LineBrush LineStyle="DoubleLine"
|
|
Brush="Cyan" />
|
|
</Border.BorderBrush>
|
|
<StackPanel>
|
|
<TextBlock Text="{x:Static localization:Resources.SectorNumber_Text}"
|
|
Foreground="{DynamicResource CyberNeonMagentaBrush}"
|
|
FontWeight="Bold" />
|
|
<TextBox Text="{Binding SectorNumber, Mode=TwoWay}"
|
|
Background="{DynamicResource CyberBackgroundTertiaryBrush}"
|
|
Foreground="{DynamicResource CyberNeonCyanBrush}"
|
|
BorderBrush="{DynamicResource CyberNeonCyanBrush}"
|
|
BorderThickness="1"
|
|
Watermark="{x:Static localization:Resources.SectorNumber_Watermark}" />
|
|
<TextBlock Text="{Binding ErrorMessage, Mode=OneWay}"
|
|
Foreground="{DynamicResource CyberNeonPinkBrush}"
|
|
IsVisible="{Binding HasError, Mode=OneWay}" />
|
|
<StackPanel Orientation="Horizontal"
|
|
HorizontalAlignment="Right"
|
|
Spacing="1">
|
|
<Button Content="{x:Static localization:Resources.OkButton_Content}"
|
|
Command="{Binding OkCommand, Mode=OneWay}" />
|
|
<Button Content="{x:Static localization:Resources.CancelButton_Content}"
|
|
Command="{Binding CancelCommand, Mode=OneWay}" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
</windowManager:ManagedWindow> |