私は Avalonia に慣れようとしており、自分のプロジェクトの 1 つをそれに移植しています。
新しいウィンドウの作成に問題があります - Tutorialのマニュアルを使用し、ソリューション エクスプローラーで .xaml.cs ファイルだけを取得します。
ファイル AboutView.xaml がプロジェクト フォルダーに作成され、次のものが含まれます。
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="MyProjectName.Views.AboutView"
Title="AboutView">
Welcome to Avalonia!
しかし表示されません。AboutView.xaml.cs には次のコードが含まれており、エラーが表示されます。
私は何を間違っていますか?