你好 我想请教一下关于ReactiveCommand.Create() #154
Replies: 2 comments 2 replies
-
应该是一样的 |
Beta Was this translation helpful? Give feedback.
2 replies
-
https://www.reactiveui.net/reactive-extensions/start/observable.start 这才从上面链接了解到Observable.Start()是异步的,从另一个线程执行操作了。直接ReactiveCommand.Create()就是当前线程一般是ui线程。似乎是这样 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
通过 ReactiveCommand.CreateFromObservable 初始化Command与 ReactiveCommand.Create() 有什么不同吗?
我在 SettingViewModel.cs 中看到比如
SelectDirectory()
是一个普通的方法,OpenDirectory()
是使用Observable.Start(() => Unit.Default) 这样的形式创建的Observable。直接把OpenDirectory() 改为普通方法怎么样Beta Was this translation helpful? Give feedback.
All reactions