feat: single view trial.
This commit is contained in:
23
demo/Ursa.Demo/Views/TitleBarRightContent.axaml.cs
Normal file
23
demo/Ursa.Demo/Views/TitleBarRightContent.axaml.cs
Normal 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"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user