reactiveui

    -1熱度

    1回答

    我在學習ReactiveUI,所以我正在製作示例應用程序,但我遇到了問題InvokeCommand。基本上每次SearchPhrase屬性都改變了我的ShowSearchPhraseCommand應該被調用。 這是我的觀點: <StackPanel Grid.Column="1" Grid.Row="1" Orientation="Horizontal" VerticalAlignmen

    3熱度

    1回答

    我想知道什麼是將控件屬性綁定到ReactiveUI中的CommandParameter的最佳方法? 下面的BindCommand未提供傳遞參數的方法。過載要麼參數爲property in view model,要麼參數IObservable<T>。 查看 this.WhenActivated(subscription => { subscription(this.BindCommand

    2熱度

    2回答

    我努力防止使用Xamarin Forms使用ReactiveUI雙擊按鈕。假設我們有這樣的命令: NextCommand = ReactiveCommand.CreateFromTask(async() => await HostScreen.Router.NavigateAndReset.Execute(new NewViewModel())); 它以正常的Xamarin Forms方式綁定

    0熱度

    1回答

    我是新來ReaciveUI和我進行了一些模擬測試來試試,看看它的功能,並建立它周圍的框架來自動執行某些事情。現在我已經到了想要觀察房產的地步,但我只知道它的名字。例如。 public abstract class ViewModelBase : ReactiveObject { public ViewModelBase() { ObserveProperti

    0熱度

    1回答

    我建立與ReactiveUI一個應用程序,我裝上使用WhenActivated訂閱我的ViewModel一些值,但我面對這種情況下它不會被解僱: public class MyWindow : Window, IViewFor<MyViewModel> { public MyViewModelViewModel { get => DataContext as Ma

    0熱度

    1回答

    我使用無UI 7 我有以下功指令: public ReactiveCommand SignupCommand { get; protected set; } SignupCommand = ReactiveCommand.CreateFromObservable<ParentEntity>(RegisterTask); SignupCommand.IsExecuting.Subscribe

    1熱度

    1回答

    如何觀察樹的任何子層的屬性更改? 考慮例如具有屬性Name和ChildNodes的屬性TreeNode。如何觀察Name任何子級的變化TreeNode? 的使用可能是這個樣子: rootNode.FlattenTreeToObservable(x => x.ChildNodes) .WhenAnyValue(x => x.Name) .Subscribe(...) 樹節

    1熱度

    1回答

    是否有綁定一個decimal到WPF文本框和指定StringFormat(在這種情況下貨幣)的方法嗎?我試着在視圖模型的屬性這樣做,但因爲它試圖後應用的格式編輯在TextBox變得有點古怪每一次擊鍵: public string Moneys { get { return string.Format("{0:C}", Model.Moneys); }

    2熱度

    1回答

    我有一個包含關鍵字的反應性列表。用戶可以添加或刪除該列表中的關鍵字。該應用需要驗證用戶是否鍵入了其中一個關鍵字。 已經有類似的帖子,但它並沒有在考慮採取靈活的清單: Using Reactive Extension for certain KeyPress sequences? var keyElements = new ReactiveList<KeyElement>(); IObservab

    4熱度

    1回答

    我正在使用RxUI 8的最新版本,但我認爲這會發生在以前的版本中。 我在我的WPF應用程序中定義該ReactiveCommand: GetWebsiteCommand = ReactiveCommand.CreateFromTask(DownloadString); private async Task<string> DownloadString() { using (var c