port from perforce
This commit is contained in:
37
intromat/NodeNetwork/Views/NodeEndpointEditorView.cs
Normal file
37
intromat/NodeNetwork/Views/NodeEndpointEditorView.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using NodeNetwork.ViewModels;
|
||||
using ReactiveUI;
|
||||
|
||||
namespace NodeNetwork.Views
|
||||
{
|
||||
public class NodeEndpointEditorView : Control, IViewFor<NodeEndpointEditorViewModel>
|
||||
{
|
||||
#region ViewModel
|
||||
public static readonly DependencyProperty ViewModelProperty = DependencyProperty.Register(nameof(ViewModel),
|
||||
typeof(NodeEndpointEditorViewModel), typeof(NodeEndpointEditorView), new PropertyMetadata(null));
|
||||
|
||||
public NodeEndpointEditorViewModel ViewModel
|
||||
{
|
||||
get => (NodeEndpointEditorViewModel)GetValue(ViewModelProperty);
|
||||
set => SetValue(ViewModelProperty, value);
|
||||
}
|
||||
|
||||
object IViewFor.ViewModel
|
||||
{
|
||||
get => ViewModel;
|
||||
set => ViewModel = (NodeEndpointEditorViewModel)value;
|
||||
}
|
||||
#endregion
|
||||
|
||||
public NodeEndpointEditorView()
|
||||
{
|
||||
DefaultStyleKey = typeof(NodeEndpointEditorView);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user