回答編集履歴

1

見直しキャンペーン中

2023/07/26 16:20

投稿

TN8001
TN8001

スコア9326

test CHANGED
@@ -1,41 +1,21 @@
1
1
  > うまくいきませんでした。
2
-
3
-
4
2
 
5
3
  では情報0です。どこまでできて何がうまくいっていないかを、他人にも伝わるように書いてください。
6
4
 
7
-
8
-
9
5
  なにかエラーは出ていませんか?
10
6
 
11
-
12
-
13
7
  ```
14
-
15
8
  重大度レベル データ コンテキスト バインド パス ターゲット ターゲット型 説明 ファイル 行 プロジェクト
16
-
17
9
  エラー ActiveFileList ShowStatusCheck Button.Command ICommand 型 ActiveFileList のオブジェクトに ShowStatusCheck プロパティが見つかりません。
18
-
19
10
  ```
20
-
21
11
  まあこういうことなんでしょうけど。
22
12
 
23
-
24
-
25
- ```xaml
13
+ ```xml
26
-
27
14
  <Button Command="{Binding DataContext.ShowStatusCheck, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Content="確認" />
28
-
29
15
  ```
30
-
31
-
32
16
 
33
17
  ---
34
18
 
35
-
36
-
37
19
  `StatusCheckExecute`はなぜメインでやる必要があるのかわかりませんが、そういう場合は`ApplicationCommands`がよさそうです。
38
20
 
39
-
40
-
41
21
  [Composite Commands | Prism](https://prismlibrary.com/docs/composite-commands.html)