Beispiel #1
0
 public colorChooser(Window1 w)
 {
     w_Cur = w;
     InitializeComponent();
     fc = null;
     bg = false;
     setUpColors();
 }
Beispiel #2
0
 public updateText(Window1 w)
 {
     w_Cur = w;
     InitializeComponent();
     textBox1.FontFamily = w_Cur.ff;
     textBox1.FontSize = w_Cur.fontSize;
     textBox1.Foreground = w_Cur.fontColor;
 }
Beispiel #3
0
        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();
        }
Beispiel #4
0
 public AddShapes(Window1 w)
 {
     w_Cur = w;
     height = 100;
     width = 150;
     InitializeComponent();
     textBox1.Text = height.ToString();
     textBox2.Text = width.ToString();
     shapeColor = Brushes.Black;
 }
Beispiel #5
0
 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;
     }
 }
Beispiel #6
0
        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);
        }
Beispiel #7
0
 public addSound(Window1 w)
 {
     w_Cur = w;
     InitializeComponent();
 }
Beispiel #8
0
 public addText(Window1 w)
 {
     w_Cur = w;
     InitializeComponent();
 }
Beispiel #9
0
 public updateImage(Window1 w)
 {
     w_Cur = w;
     InitializeComponent();
 }
Beispiel #10
0
 public addImage(Window1 w)
 {
     w_Cur = w;
     InitializeComponent();
 }