mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
21 lines
613 B
C#
21 lines
613 B
C#
using Avalonia.Controls.Mixins;
|
|
using Avalonia.ReactiveUI;
|
|
using ReactiveUI;
|
|
|
|
namespace Wabbajack.App.Controls;
|
|
|
|
public partial class RemovableListItem : ReactiveUserControl<RemovableItemViewModel>, IActivatableView
|
|
{
|
|
public RemovableListItem()
|
|
{
|
|
InitializeComponent();
|
|
this.WhenActivated(disposables =>
|
|
{
|
|
this.OneWayBind(ViewModel, vm => vm.Text, view => view.Text.Text)
|
|
.DisposeWith(disposables);
|
|
|
|
this.BindCommand(ViewModel, vm => vm.DeleteCommand, view => view.DeleteButton)
|
|
.DisposeWith(disposables);
|
|
});
|
|
}
|
|
} |