public colorChooser(Window1 w) { w_Cur = w; InitializeComponent(); fc = null; bg = false; setUpColors(); }
public updateText(Window1 w) { w_Cur = w; InitializeComponent(); textBox1.FontFamily = w_Cur.ff; textBox1.FontSize = w_Cur.fontSize; textBox1.Foreground = w_Cur.fontColor; }
public Inertia(Window1 w) { InitializeComponent(); w_Cur = w; this.textBox1.Text = w_Cur.initTranslateDeceleration.ToString(); this.textBox2.Text = w_Cur.initRotateDeceleration.ToString(); this.textBox3.Text = w_Cur.initExpandDeceleration.ToString(); }
public AddShapes(Window1 w) { w_Cur = w; height = 100; width = 150; InitializeComponent(); textBox1.Text = height.ToString(); textBox2.Text = width.ToString(); shapeColor = Brushes.Black; }
public updateShapexaml(Window1 w) { w_Cur = w; InitializeComponent(); if (w_Cur.selectedElement.GetType() == typeof(Ellipse)) { shapeColor = (SolidColorBrush)w_Cur.DraggableEllipse.Fill; } if (w_Cur.selectedElement.GetType() == typeof(Rectangle)) { shapeColor = (SolidColorBrush)w_Cur.DraggableRectangle.Fill; } }
public Adorners(UIElement adornedElement, Window1 w) : base(adornedElement) { w_Cur = w; visualChildren = new VisualCollection(this); MakeAdorner(ref tl, Cursors.SizeNWSE); MakeAdorner(ref tr, Cursors.SizeNESW); MakeAdorner(ref bl, Cursors.SizeNESW); MakeAdorner(ref br, Cursors.SizeNWSE); bl.DragDelta += new DragDeltaEventHandler(HandleBL); br.DragDelta += new DragDeltaEventHandler(HandleBR); tl.DragDelta += new DragDeltaEventHandler(HandleTL); tr.DragDelta += new DragDeltaEventHandler(HandleTR); }
public addSound(Window1 w) { w_Cur = w; InitializeComponent(); }
public addText(Window1 w) { w_Cur = w; InitializeComponent(); }
public updateImage(Window1 w) { w_Cur = w; InitializeComponent(); }
public addImage(Window1 w) { w_Cur = w; InitializeComponent(); }