feat: single view trial.

This commit is contained in:
rabbitism
2024-08-13 18:07:12 +08:00
parent b07383e499
commit 12122f8cac
8 changed files with 143 additions and 10 deletions

View File

@@ -0,0 +1,23 @@
using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
namespace Ursa.Demo.Views;
public partial class TitleBarRightContent : UserControl
{
public TitleBarRightContent()
{
InitializeComponent();
}
private async void OpenRepository(object? sender, RoutedEventArgs e)
{
var top = TopLevel.GetTopLevel(this);
if (top is null) return;
var launcher = top.Launcher;
await launcher.LaunchUriAsync(new Uri("https://github.com/irihitech/Semi.Avalonia"));
}
}