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); }
void ClipToBoundsChanged(object sender, DependencyPropertyEventArgs e) { WindowlessControlHost.WindowlessInvalidate(this); }
void MaxWidthChanged(object sender, DependencyPropertyEventArgs e) { Remeasure(); }
protected virtual void FontChanged(object sender, DependencyPropertyEventArgs e) { WindowlessControlHost.WindowlessInvalidate(this); Remeasure(); WindowlessControlHost.WindowlessInvalidate(this); }
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 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); }
void AutoEllipsisChanged(object sender, DependencyPropertyEventArgs e) { WindowlessControlHost.WindowlessInvalidate(this); }
void VerticalTextAlignmentChanged(object sender, DependencyPropertyEventArgs e) { WindowlessControlHost.WindowlessInvalidate(this); }
void ForeColorChanged(object sender, DependencyPropertyEventArgs e) { myForeBrush.Color = ForeColor; WindowlessControlHost.WindowlessInvalidate(this); }
void PaintChildrenChanged(object sender, DependencyPropertyEventArgs e) { WindowlessControlHost.WindowlessInvalidate(this); }
void VisibleChanged(object sender, DependencyPropertyEventArgs e) { WindowlessControlHost.WindowlessInvalidate(this); Remeasure(); }