EmbeddingPage.axaml.cs 447 B

1234567891011121314151617181920212223
  1. using Avalonia.Controls;
  2. using Avalonia.Interactivity;
  3. namespace IntegrationTestApp;
  4. public partial class EmbeddingPage : UserControl
  5. {
  6. public EmbeddingPage()
  7. {
  8. InitializeComponent();
  9. ResetText();
  10. }
  11. private void ResetText()
  12. {
  13. NativeTextBox.Text = NativeTextBoxInPopup.Text = "Native text box";
  14. }
  15. private void Reset_Click(object? sender, RoutedEventArgs e)
  16. {
  17. ResetText();
  18. }
  19. }