コード例 #1
0
 /// <summary>
 /// Class constructor
 /// </summary>
 public DemoViewModel()
 {
     this.mDropDownButtonTest      = new DropDownButtonViewModel();
     this.mSplitButtonTest         = new SplitButtonViewModel();
     this.mDropDownItemsButtonTest = new DropDownItemsButtonViewModel();
     this.mSplitItemsButtonTest    = new SplitItemsButtonViewModel();
 }
コード例 #2
0
		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;
		}
コード例 #3
0
		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;
		}
コード例 #4
0
		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;
		}