mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-08-19 11:23:24 +08:00
25 lines
647 B
C#
25 lines
647 B
C#
using Avalonia.Controls;
|
|
using Avalonia.Layout;
|
|
using Avalonia.Media;
|
|
using LanMountainDesktop.AirAppSdk;
|
|
|
|
namespace LanMountainDesktop.AirAppTemplate;
|
|
|
|
/// <summary>
|
|
/// 窗口轻应用。内容由 AirAppHost 独立进程承载,复用宿主 FAAppWindow 外壳。
|
|
/// </summary>
|
|
public sealed class MyWindow : AirAppWindowBase
|
|
{
|
|
public MyWindow()
|
|
{
|
|
Content = new TextBlock
|
|
{
|
|
Text = "My AirApp Window",
|
|
FontSize = 24,
|
|
FontWeight = FontWeight.Bold,
|
|
HorizontalAlignment = HorizontalAlignment.Center,
|
|
VerticalAlignment = VerticalAlignment.Center
|
|
};
|
|
}
|
|
}
|