質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -232,7 +232,63 @@
|
|
232
232
|
|
233
233
|
上記で使用しているコントロールはそれぞれ
|
234
234
|
|
235
|
+
```C#
|
236
|
+
|
237
|
+
<Button
|
238
|
+
|
239
|
+
x:Class="TestInContentClickBind.Views.InContentButton"
|
240
|
+
|
241
|
+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
242
|
+
|
243
|
+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
244
|
+
|
245
|
+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
246
|
+
|
247
|
+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
248
|
+
|
249
|
+
mc:Ignorable="d">
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
<Button.DataContext>
|
254
|
+
|
255
|
+
<local:InContentButtonViewModel/>
|
256
|
+
|
257
|
+
</Button.DataContext>
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
</Button>
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
using Windows.UI.Xaml.Controls;
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
namespace TestInContentClickBind.Views
|
270
|
+
|
271
|
+
{
|
272
|
+
|
273
|
+
public sealed partial class InContentButton : Button
|
274
|
+
|
275
|
+
{
|
276
|
+
|
277
|
+
public InContentButton()
|
278
|
+
|
279
|
+
{
|
280
|
+
|
281
|
+
this.InitializeComponent();
|
282
|
+
|
283
|
+
}
|
284
|
+
|
285
|
+
}
|
286
|
+
|
287
|
+
}
|
288
|
+
|
289
|
+
```
|
290
|
+
|
235
|
-
|
291
|
+
文字数制限のため他割愛
|
236
292
|
|
237
293
|
|
238
294
|
|