public AbstractWidgetViewModel(LayoutWidgetType type, IDocumentEventing docEventing, ICommandProcessor cmdProcessor, TModel model) : base(cmdProcessor) { _docEventing = docEventing; _model = model; Id = model.Id; Type = type; MouseDownCommand = new DelegateCommand(Canvas_MouseDown); }
public LayoutingCanvas(IDocumentEventing docEventing, ICommandProcessor cmdProcessor, Layout layout) : base(LayoutWidgetType.Layout, docEventing, cmdProcessor, layout) { _layout = layout; Container = new ContainerViewModel(docEventing, cmdProcessor, layout.Container); }
public LayoutingCanvas(IDocumentEventing docEventing, ICommandProcessor cmdProcessor) : this(docEventing, cmdProcessor, new Layout { DesignHeight = 400, DesignWidth = 600, Container = new ContainerWidget() }) { }
public LabelWidgetViewModel(IDocumentEventing docEventing, ICommandProcessor cmdProcessor, LabelWidget model) : base(LayoutWidgetType.Label, docEventing, cmdProcessor, model) { }
public ContainerViewModel(IDocumentEventing docEventing, ICommandProcessor cmdProcessor, ContainerWidget model) : base(LayoutWidgetType.Container, docEventing, cmdProcessor, model) { UpdateViewModels(); }
public TextWidgetViewModel(IDocumentEventing docEventing, ICommandProcessor cmdProcessor, TextWidget model) : base(LayoutWidgetType.Text, docEventing, cmdProcessor, model) { }