InputDialog.axaml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <UserControl
  2. x:Class="Ryujinx.Ava.Ui.Controls.InputDialog"
  3. xmlns="https://github.com/avaloniaui"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. mc:Ignorable="d">
  8. <Grid
  9. Margin="5,10,5,5"
  10. HorizontalAlignment="Stretch"
  11. VerticalAlignment="Center">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="Auto" />
  14. <RowDefinition Height="Auto" />
  15. <RowDefinition Height="Auto" />
  16. </Grid.RowDefinitions>
  17. <TextBlock HorizontalAlignment="Center" Text="{Binding Message}" />
  18. <TextBox
  19. Grid.Row="1"
  20. Width="300"
  21. Margin="10"
  22. HorizontalAlignment="Center"
  23. MaxLength="{Binding MaxLength}"
  24. Text="{Binding Input, Mode=TwoWay}" />
  25. <TextBlock
  26. Grid.Row="2"
  27. Margin="5,5,5,10"
  28. HorizontalAlignment="Center"
  29. Text="{Binding SubMessage}" />
  30. </Grid>
  31. </UserControl>