InputDialog.axaml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. Focusable="True">
  9. <Grid
  10. Margin="5,10,5,5"
  11. HorizontalAlignment="Stretch"
  12. VerticalAlignment="Center">
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="Auto" />
  15. <RowDefinition Height="Auto" />
  16. <RowDefinition Height="Auto" />
  17. </Grid.RowDefinitions>
  18. <TextBlock HorizontalAlignment="Center" Text="{Binding Message}" />
  19. <TextBox
  20. Grid.Row="1"
  21. Width="300"
  22. Margin="10"
  23. HorizontalAlignment="Center"
  24. MaxLength="{Binding MaxLength}"
  25. Text="{Binding Input, Mode=TwoWay}" />
  26. <TextBlock
  27. Grid.Row="2"
  28. Margin="5,5,5,10"
  29. HorizontalAlignment="Center"
  30. Text="{Binding SubMessage}" />
  31. </Grid>
  32. </UserControl>