質問編集履歴
1
追記
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -115,8 +115,36 @@ | |
| 115 115 | 
             
            }
         | 
| 116 116 | 
             
            ```
         | 
| 117 117 | 
             
            上記で使用しているコントロールはそれぞれ
         | 
| 118 | 
            +
            ```C#
         | 
| 118 | 
            -
             | 
| 119 | 
            +
            <Button
         | 
| 120 | 
            +
                x:Class="TestInContentClickBind.Views.InContentButton"
         | 
| 121 | 
            +
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         | 
| 122 | 
            +
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         | 
| 123 | 
            +
                xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
         | 
| 124 | 
            +
                xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         | 
| 125 | 
            +
                mc:Ignorable="d">
         | 
| 119 126 |  | 
| 127 | 
            +
                <Button.DataContext>
         | 
| 128 | 
            +
                    <local:InContentButtonViewModel/>
         | 
| 129 | 
            +
                </Button.DataContext>
         | 
| 130 | 
            +
             | 
| 131 | 
            +
            </Button>
         | 
| 132 | 
            +
             | 
| 133 | 
            +
            using Windows.UI.Xaml.Controls;
         | 
| 134 | 
            +
             | 
| 135 | 
            +
            namespace TestInContentClickBind.Views
         | 
| 136 | 
            +
            {
         | 
| 137 | 
            +
                public sealed partial class InContentButton : Button
         | 
| 138 | 
            +
                {
         | 
| 139 | 
            +
                    public InContentButton()
         | 
| 140 | 
            +
                    {
         | 
| 141 | 
            +
                        this.InitializeComponent();
         | 
| 142 | 
            +
                    }
         | 
| 143 | 
            +
                }
         | 
| 144 | 
            +
            }
         | 
| 145 | 
            +
            ```
         | 
| 146 | 
            +
            文字数制限のため他割愛
         | 
| 147 | 
            +
             | 
| 120 148 | 
             
            このようになっているとき
         | 
| 121 149 | 
             
            どのボタンを押しても
         | 
| 122 150 | 
             
            ClickCommandは実行されます。
         | 
