void BottomRightColorChanged(object sender, DependencyPropertyEventArgs e)
 {
     myVertices[1].Red   = (ushort)(myBottomRightColor.Value.R << 8);
     myVertices[1].Green = (ushort)(myBottomRightColor.Value.G << 8);
     myVertices[1].Blue  = (ushort)(myBottomRightColor.Value.B << 8);
     myVertices[1].Alpha = (ushort)(myBottomRightColor.Value.A << 8);
     WindowlessControlHost.WindowlessInvalidate(this);
 }
 void RectangleWidthChanged(object sender, DependencyPropertyEventArgs e)
 {
     myPen.Width = (float)myRectangleWidth.Value;
     if (!myFilled.Value)
     {
         WindowlessControlHost.WindowlessInvalidate(this);
     }
 }
        void BitmapChanged(object sender, DependencyPropertyEventArgs e)
        {
            PlatformBitmap oldBitmap    = e.OldValue as PlatformBitmap;
            PlatformBitmap newBitmap    = e.NewValue as PlatformBitmap;
            Size           originalSize = Size.Empty;

            if (oldBitmap != null)
            {
                originalSize = new Size(oldBitmap.Width, oldBitmap.Height);
            }
            Size newSize = Size.Empty;

            if (newBitmap != null)
            {
                newSize = new Size(newBitmap.Width, newBitmap.Height);
            }
            if (originalSize != newSize)
            {
                Remeasure();
            }
            WindowlessControlHost.WindowlessInvalidate(this);
        }
Beispiel #4
0
 void ClipToBoundsChanged(object sender, DependencyPropertyEventArgs e)
 {
     WindowlessControlHost.WindowlessInvalidate(this);
 }
 void MaxWidthChanged(object sender, DependencyPropertyEventArgs e)
 {
     Remeasure();
 }
Beispiel #6
0
 protected virtual void FontChanged(object sender, DependencyPropertyEventArgs e)
 {
     WindowlessControlHost.WindowlessInvalidate(this);
     Remeasure();
     WindowlessControlHost.WindowlessInvalidate(this);
 }
Beispiel #7
0
 void MultilineChanged(object sender, DependencyPropertyEventArgs e)
 {
     WindowlessControlHost.WindowlessInvalidate(this);
 }
 void MarginChanged(object sender, DependencyPropertyEventArgs e)
 {
     WindowlessControlHost.WindowlessInvalidate(this);
     Remeasure();
 }
 void EllipseWidthChanged(object sender, DependencyPropertyEventArgs e)
 {
     WindowlessControlHost.WindowlessInvalidate(this);
 }
 void RectangleWidthChanged(object sender, DependencyPropertyEventArgs e)
 {
     myPen.Width = (float)myRectangleWidth.Value;
     if (!myFilled.Value)
         WindowlessControlHost.WindowlessInvalidate(this);
 }
 void ColorChanged(object sender, DependencyPropertyEventArgs e)
 {
     myPen.Color = Color;
     myBrush.Color = Color;
     WindowlessControlHost.WindowlessInvalidate(this);
 }
 void TopLeftColorChanged(object sender, DependencyPropertyEventArgs e)
 {
     myVertices[0].Red = (ushort)(myTopLeftColor.Value.R << 8);
     myVertices[0].Green = (ushort)(myTopLeftColor.Value.G << 8);
     myVertices[0].Blue = (ushort)(myTopLeftColor.Value.B << 8);
     myVertices[0].Alpha = (ushort)(myTopLeftColor.Value.A << 8);
     WindowlessControlHost.WindowlessInvalidate(this);
 }
 void GradientDirectionChanged(object sender, DependencyPropertyEventArgs e)
 {
     WindowlessControlHost.WindowlessInvalidate(this);
 }
 internal void Add(DependencyPropertyEventArgs e)
 {
     myChangeList.Add(e);
 }
 void ClipToBoundsChanged(object sender, DependencyPropertyEventArgs e)
 {
     WindowlessControlHost.WindowlessInvalidate(this);
 }
 void MaxWidthChanged(object sender, DependencyPropertyEventArgs e)
 {
     Remeasure();
 }
 void PaintSelfChanged(object sender, DependencyPropertyEventArgs e)
 {
     WindowlessControlHost.WindowlessInvalidate(this);
 }
 void CapDimensionChanged(object sender, DependencyPropertyEventArgs e)
 {
     Remeasure();
 }
 void BitmapChanged(object sender, DependencyPropertyEventArgs e)
 {
     PlatformBitmap oldBitmap = e.OldValue as PlatformBitmap;
     PlatformBitmap newBitmap = e.NewValue as PlatformBitmap;
     Size originalSize = Size.Empty;
     if (oldBitmap != null)
         originalSize = new Size(oldBitmap.Width, oldBitmap.Height);
     Size newSize = Size.Empty;
     if (newBitmap != null)
         newSize = new Size(newBitmap.Width, newBitmap.Height);
     if (originalSize != newSize)
         Remeasure();
     WindowlessControlHost.WindowlessInvalidate(this);
 }
Beispiel #20
0
 void AutoEllipsisChanged(object sender, DependencyPropertyEventArgs e)
 {
     WindowlessControlHost.WindowlessInvalidate(this);
 }
 internal void Add(DependencyPropertyEventArgs e)
 {
     myChangeList.Add(e);
 }
Beispiel #22
0
 void VerticalTextAlignmentChanged(object sender, DependencyPropertyEventArgs e)
 {
     WindowlessControlHost.WindowlessInvalidate(this);
 }
Beispiel #23
0
 void CapDimensionChanged(object sender, DependencyPropertyEventArgs e)
 {
     Remeasure();
 }
Beispiel #24
0
 void ForeColorChanged(object sender, DependencyPropertyEventArgs e)
 {
     myForeBrush.Color = ForeColor;
     WindowlessControlHost.WindowlessInvalidate(this);
 }
Beispiel #25
0
 void PaintChildrenChanged(object sender, DependencyPropertyEventArgs e)
 {
     WindowlessControlHost.WindowlessInvalidate(this);
 }
 void VisibleChanged(object sender, DependencyPropertyEventArgs e)
 {
     WindowlessControlHost.WindowlessInvalidate(this);
     Remeasure();
 }
 void GradientDirectionChanged(object sender, DependencyPropertyEventArgs e)
 {
     WindowlessControlHost.WindowlessInvalidate(this);
 }