Ejemplo n.º 1
0
        private void BrushselectorFor_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush)
        {
            cont.Foreground = Sbrush;

            if (Sbrush is ImageBrush)
            {
                cont.ForegroundKey = brushSelector.LastSelectedImageKey;
            }
        }
Ejemplo n.º 2
0
        private void Brushselector_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush)
        {
            cont.Foreground = Sbrush;

            if (ChangedBrush != null)
            {
                ChangedBrush(brushselector.LastSelectedImageKey);
            }
        }
Ejemplo n.º 3
0
        private void BrushSelector_Hover_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush)
        {
            cont.Hover = Sbrush;

            if (Sbrush is ImageBrush)
            {
                cont.keyH     = brushSelector.LastSelectedImageKey;
                cont.stretchH = ((ImageBrush)Sbrush).Stretch;
            }
        }
Ejemplo n.º 4
0
        private void BrushSelector_Click_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush)
        {
            cont.ClickBrush = Sbrush;

            if (Sbrush is ImageBrush)
            {
                cont.keyC     = brushSelector.LastSelectedImageKey;
                cont.stretchC = ((ImageBrush)Sbrush).Stretch;
            }
        }
Ejemplo n.º 5
0
        private void BrushSelector_Normal_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush)
        {
            cont.DefaultBrush = Sbrush;
            cont.Background   = Sbrush;

            if (Sbrush is ImageBrush)
            {
                cont.keyN     = brushSelector.LastSelectedImageKey;
                cont.stretchN = ((ImageBrush)Sbrush).Stretch;
            }
        }
Ejemplo n.º 6
0
        private void BrushSelector_Unchecked_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush)
        {
            cont.UncheckedBrush = Sbrush;

            if (Sbrush is ImageBrush)
            {
                cont.keyN     = brushSelector.LastSelectedImageKey;
                cont.stretchN = ((ImageBrush)Sbrush).Stretch;
            }

            cont.SetChecked(cont.IsChecked);
        }
Ejemplo n.º 7
0
        private void Brushselector_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush)
        {
            cont.Background = Sbrush;

            if (Sbrush is ImageBrush)
            {
                if (cont.Tag == null)
                {
                    List <object> list = new List <object>(2);
                    list.Add(null);
                    list.Add(null);
                    cont.Tag = list;
                    ((List <object>)cont.Tag)[1] = new DesignSave(new ImageRepresentation(brushselector.LastSelectedImageKey, ((ImageBrush)cont.Background).Stretch)).Serialize();
                }
                else
                {
                    ((List <object>)cont.Tag)[1] = new DesignSave(new ImageRepresentation(brushselector.LastSelectedImageKey, ((ImageBrush)cont.Background).Stretch)).Serialize();
                }
            }
        }
Ejemplo n.º 8
0
 private void Brushselector_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush)
 {
     cont.Fill = Sbrush;
 }
Ejemplo n.º 9
0
 private void Brushselector_ChangedBrush(Controls.Special.BrushSelector brushSelector, Brush Sbrush)
 {
     cont.Background = Sbrush;
 }