public LayoutPartDescriptionViewModel(ILayoutPartDescription layoutPartDescription) { LayoutPartDescription = layoutPartDescription; VisualizationState = VisualizationState.Prohibit; AddCommand = new RelayCommand(OnAddCommand, CanAddCommand); DragCommand = new RelayCommand(OnDragCommand, CanAddCommand); }
public LayoutPartViewModel(LayoutPart layoutPart, ILayoutPartDescription description) { LayoutPart = layoutPart; Description = description; }