/// <summary> /// Class constructor /// </summary> public DemoViewModel() { this.mDropDownButtonTest = new DropDownButtonViewModel(); this.mSplitButtonTest = new SplitButtonViewModel(); this.mDropDownItemsButtonTest = new DropDownItemsButtonViewModel(); this.mSplitItemsButtonTest = new SplitItemsButtonViewModel(); }
private GroupViewModel GetImageGroup() { GroupViewModel image = new GroupViewModel(); image.Text = "Image"; SplitButtonViewModel split = new SplitButtonViewModel(); split.Text = "Select"; split.Size = ButtonSize.Large; split.LargeImage = GetPath("MVVM/select.png"); image.Buttons.Add(split); ButtonGroupViewModel buttonsGroup = new ButtonGroupViewModel(); buttonsGroup.Buttons.Add(GetSmallButton("crop", "Crop")); buttonsGroup.Buttons.Add(GetSmallButton("resize", "Resize")); buttonsGroup.Buttons.Add(GetSmallButton("rotate", "Rotate")); image.Buttons.Add(buttonsGroup); return image; }
private GroupViewModel GetBrushesGroup() { GroupViewModel brushes = new GroupViewModel(); brushes.Text = "Brushes"; SplitButtonViewModel split = new SplitButtonViewModel(); split.Size = ButtonSize.Large; split.Text = "Brushes"; split.LargeImage = GetPath("MVVM/brush1.png"); brushes.Buttons.Add(split); return brushes; }
private GroupViewModel GetClipboardGroup() { GroupViewModel clipboard = new GroupViewModel(); clipboard.Text = "Clipboard"; SplitButtonViewModel split = new SplitButtonViewModel(); split.Text = "Paste"; split.Size = ButtonSize.Large; split.LargeImage = GetPath("MVVM/paste.png"); clipboard.Buttons.Add(split); ButtonGroupViewModel buttonsGroup = new ButtonGroupViewModel(); buttonsGroup.Buttons.Add(GetButton("cut", "Cut")); buttonsGroup.Buttons.Add(GetButton("copy", "Copy")); clipboard.Buttons.Add(buttonsGroup); return clipboard; }