teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

見直しキャンペーン中

2023/07/17 05:39

投稿

TN8001
TN8001

スコア10114

answer CHANGED
@@ -1,14 +1,14 @@
1
- ReactivePropertyまともに使ったことないのであまり自信はないですが、手元では動いている気がします^^;
1
+ ReactivePropertyまともに使ったことないのであまり自信はないですが、手元では動いている気がします^^;
2
-
2
+
3
- ```C#
3
+ ```cs
4
- ACommand = new[]
4
+ ACommand = new[]
5
- {
5
+ {
6
- A.ObserveHasErrors,
6
+ A.ObserveHasErrors,
7
- B.ObserveHasErrors,
7
+ B.ObserveHasErrors,
8
- C.ObserveHasErrors,
8
+ C.ObserveHasErrors,
9
- D.Select(x => x != 10), // ↓で否定されちゃうので逆
9
+ D.Select(x => x != 10), // ↓で否定されちゃうので逆
10
- }.CombineLatest(x => x.All(y => !y)).ToReactiveCommand();
10
+ }.CombineLatest(x => x.All(y => !y)).ToReactiveCommand();
11
- ```
11
+ ```
12
-
12
+
13
- [xamarin.forms - How to implement CanExecute in ReactiveCommand - Stack Overflow](https://stackoverflow.com/questions/49853965/how-to-implement-canexecute-in-reactivecommand)
13
+ [xamarin.forms - How to implement CanExecute in ReactiveCommand - Stack Overflow](https://stackoverflow.com/questions/49853965/how-to-implement-canexecute-in-reactivecommand)
14
- でokazukiさんは .Inverse()していますね。
14
+ でokazukiさんは `.Inverse()`していますね。