csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.2 KiB
48 lines
1.2 KiB
using Avalonia;
|
|
using Avalonia.Automation;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Controls.Primitives;
|
|
using Avalonia.Controls.Primitives.PopupPositioning;
|
|
using Avalonia.Interactivity;
|
|
using Avalonia.Layout;
|
|
using Avalonia.Markup.Xaml;
|
|
using Avalonia.Media;
|
|
|
|
namespace IntegrationTestApp.Pages;
|
|
|
|
public partial class PopupsPage : UserControl
|
|
{
|
|
public PopupsPage()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void ButtonLightDismiss_OnClick(object sender, RoutedEventArgs e)
|
|
{
|
|
LightDismissPopup.Open();
|
|
}
|
|
|
|
private void ButtonPopupStaysOpen_OnClick(object sender, RoutedEventArgs e)
|
|
{
|
|
StaysOpenPopup.Open();
|
|
}
|
|
private void StaysOpenPopupCloseButton_OnClick(object? sender, RoutedEventArgs e)
|
|
{
|
|
StaysOpenPopup.Close();
|
|
}
|
|
|
|
private void ButtonTopMostPopupStaysOpen(object sender, RoutedEventArgs e)
|
|
{
|
|
TopMostPopup.Open();
|
|
}
|
|
private void TopMostPopupCloseButton_OnClick(object? sender, RoutedEventArgs e)
|
|
{
|
|
TopMostPopup.Close();
|
|
}
|
|
|
|
private void OpenRegularNewWindow_Click(object? sender, RoutedEventArgs e)
|
|
{
|
|
var newWindow = new ShowWindowTest();
|
|
newWindow.Show((Window)TopLevel.GetTopLevel(this)!);
|
|
}
|
|
}
|
|
|