25 lines
546 B
C#
25 lines
546 B
C#
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Interactivity;
|
|
using Avalonia.Markup.Xaml;
|
|
using Ursa.Demo.ViewModels;
|
|
|
|
namespace Ursa.Demo.Pages;
|
|
|
|
public partial class AboutUsDemo : UserControl
|
|
{
|
|
public AboutUsDemo()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
protected override void OnLoaded(RoutedEventArgs e)
|
|
{
|
|
base.OnLoaded(e);
|
|
if (DataContext is AboutUsDemoViewModel vm)
|
|
{
|
|
var launcher = TopLevel.GetTopLevel(this)?.Launcher;
|
|
vm.Launcher = launcher;
|
|
}
|
|
}
|
|
} |