public GestureMVVMControl() { InitializeComponent(); DataContext = this; Postits = new PostitCollection(); }
public Brainstorming() { InitializeComponent(); Postits = new PostitCollection(); DataContext = this; }
public PhysicDemo() { InitializeComponent(); DataContext = this; Postits = new PostitCollection(); Loaded += PhysicDemo_Loaded; }
public ContextMenuMultiInstance() { InitializeComponent(); DataContext = this; Postits = new PostitCollection(); MenuItems = new MenuItemCollection(); MenuItems.Add(new UbiMenuItem() { Caption = "Add Yellow Postit", Command = Postits.CreatePostitCommand, Converter = new HoldConverter() { VisualReference = this, Color = Brushes.LemonChiffon } }); MenuItems.Add(new UbiMenuItem() { Caption = "Add Pink Postit", Command = Postits.CreatePostitCommand, Converter = new HoldConverter() { VisualReference = this, Color = Brushes.LightPink } }); MenuItems.Add(new UbiMenuItem() { Caption = "Add Green Postit", Command = Postits.CreatePostitCommand, Converter = new HoldConverter() { VisualReference = this, Color = Brushes.GreenYellow } }); }
public DragDropTargetDemo() { InitializeComponent(); DataContext = this; Loaded += DragDropTargetDemo_Loaded; Postits1 = new PostitCollection(); Postits2 = new PostitCollection(); Postits3 = new PostitCollection(); }
public DragDropPhysic() { InitializeComponent(); DataContext = this; Postits = new PostitCollection(); for (int i = 0; i < 20; i++) { Postits.Add(new PostitViewModel { Text = RandomHelper.GetRandomSmallerThan(50), Position = new Point(RandomHelper.GetRandomDouble(0, 1000), RandomHelper.GetRandomDouble(0, 1000)), Color = new SolidColorBrush(ColorHelper.ColorFromHSL(RandomHelper.GetRandomDouble(0, 360), RandomHelper.GetRandomDouble(0.3, 0.9), RandomHelper.GetRandomDouble(0.6, 0.9))) }); } }