mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
23 lines
581 B
C#
23 lines
581 B
C#
using System.Reactive.Disposables;
|
|
using System.Windows.Controls;
|
|
using ReactiveUI;
|
|
|
|
namespace Wabbajack.View_Models.Controls;
|
|
|
|
public partial class RemovableItemView : ReactiveUserControl<RemovableItemViewModel>
|
|
{
|
|
public RemovableItemView()
|
|
{
|
|
InitializeComponent();
|
|
|
|
this.WhenActivated(disposables =>
|
|
{
|
|
this.BindStrict(ViewModel, vm => vm.Text, view => view.DisplayText.Text)
|
|
.DisposeWith(disposables);
|
|
|
|
|
|
});
|
|
|
|
DeleteButton.Command = ReactiveCommand.Create(() => ViewModel.RemoveFn());
|
|
}
|
|
} |