回答編集履歴
2
ファイル名
    
        answer	
    CHANGED
    
    | @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            > ```xml
         | 
| 1 | 
            +
            > ```xml:XXX.xaml
         | 
| 2 2 | 
             
            > <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
         | 
| 3 3 | 
             
            >              xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         | 
| 4 4 | 
             
            >              x:Class="MyApp.XXX" >
         | 
| @@ -7,7 +7,7 @@ | |
| 7 7 | 
             
            WPFやUWPでも同じだと思いますが、XAMLから生成されたコードと継承元クラスが食い違っています(`class XXX`の上で右クリックして、定義ジャンプで飛べます XXX.xaml.sg.cs )
         | 
| 8 8 |  | 
| 9 9 | 
             
            ↓となっていなければなりません(2か所の`local`は別に`l`でもなんでもいいですが、同じでなければなりません)
         | 
| 10 | 
            -
            ```xml
         | 
| 10 | 
            +
            ```xml:XXX.xaml
         | 
| 11 11 | 
             
            <local:ToolbarBasePage
         | 
| 12 12 | 
             
              x:Class="MyApp.XXX"
         | 
| 13 13 | 
             
              xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
         | 
| @@ -18,7 +18,7 @@ | |
| 18 18 | 
             
            [XAML namespaces - .NET MAUI | Microsoft Learn](https://learn.microsoft.com/ja-jp/dotnet/maui/xaml/namespaces/?view=net-maui-8.0#declare-namespaces-for-types)
         | 
| 19 19 |  | 
| 20 20 | 
             
            逆にここは指定しなくても動きます。
         | 
| 21 | 
            -
            ```cs
         | 
| 21 | 
            +
            ```cs:XXX.xaml.cs
         | 
| 22 22 | 
             
            public partial class XXX //: ToolbarBasePage
         | 
| 23 23 | 
             
            {
         | 
| 24 24 | 
             
            	public XXX()
         | 
1
自動翻訳前
    
        answer	
    CHANGED
    
    | @@ -15,7 +15,7 @@ | |
| 15 15 | 
             
              xmlns:local="clr-namespace:MyApp">
         | 
| 16 16 | 
             
            ```
         | 
| 17 17 | 
             
            `  xmlns:local="using:MyApp"`でもいいようです。
         | 
| 18 | 
            -
            [XAML  | 
| 18 | 
            +
            [XAML namespaces - .NET MAUI | Microsoft Learn](https://learn.microsoft.com/ja-jp/dotnet/maui/xaml/namespaces/?view=net-maui-8.0#declare-namespaces-for-types)
         | 
| 19 19 |  | 
| 20 20 | 
             
            逆にここは指定しなくても動きます。
         | 
| 21 21 | 
             
            ```cs
         | 
