public WindowlessRoundRectangle()
 {
     myPen           = new DependencyPropertyStorage <NativePen>(this, myDefaultPen, new DependencyPropertyChangedEvent(PenChanged));
     myBrush         = new DependencyPropertyStorage <NativeBrush>(this, myDefaultBrush, new DependencyPropertyChangedEvent(BrushChanged));
     myEllipseWidth  = new DependencyPropertyStorage <int>(this, 0, new DependencyPropertyChangedEvent(EllipseWidthChanged));
     myEllipseHeight = new DependencyPropertyStorage <int>(this, 0, new DependencyPropertyChangedEvent(EllipseHeightChanged));
 }
 public WindowlessControl()
 {
     myVisible   = new DependencyPropertyStorage <bool>(this, true, new DependencyPropertyChangedEvent(VisibleChanged));
     myMaxHeight = new DependencyPropertyStorage <int>(this, Int32.MaxValue, new DependencyPropertyChangedEvent(MaxHeightChanged));
     myMaxWidth  = new DependencyPropertyStorage <int>(this, Int32.MaxValue, new DependencyPropertyChangedEvent(MaxWidthChanged));
     myMargin    = new DependencyPropertyStorage <Thickness>(this, Thickness.Empty, new DependencyPropertyChangedEvent(MarginChanged));
 }
 public WindowlessControlHost()
 {
     myPaintSelf     = new DependencyPropertyStorage <bool>(this, true, new DependencyPropertyChangedEvent(PaintSelfChanged));
     myPaintChildren = new DependencyPropertyStorage <bool>(this, true, new DependencyPropertyChangedEvent(PaintChildrenChanged));
     myClipToBounds  = new DependencyPropertyStorage <bool>(this, true, new DependencyPropertyChangedEvent(ClipToBoundsChanged));
     myOldSize       = Size;
     myControls      = new SerializableControlCollection(this);
     TabStop         = false;
 }
Esempio n. 4
0
 public WindowlessLabel()
 {
     myBackColor           = new DependencyPropertyStorage <Color>(this, Color.Transparent, new DependencyPropertyChangedEvent(BackColorChanged));
     myForeColor           = new DependencyPropertyStorage <Color>(this, Color.Black, new DependencyPropertyChangedEvent(ForeColorChanged));
     myFont                = new DependencyPropertyStorage <Font>(this, myDefaultFont, new DependencyPropertyChangedEvent(FontChanged));
     myContent             = new DependencyPropertyStorage <object>(this, string.Empty, new DependencyPropertyChangedEvent(TextChanged));
     myHorizontalTextAlign = new DependencyPropertyStorage <HorizontalAlignment>(this, HorizontalAlignment.Left, new DependencyPropertyChangedEvent(HorizontalTextAlignmentChanged));
     myVerticalTextAlign   = new DependencyPropertyStorage <VerticalAlignment>(this, VerticalAlignment.Top, new DependencyPropertyChangedEvent(VerticalTextAlignmentChanged));
     myAutoEllipsis        = new DependencyPropertyStorage <bool>(this, true, new DependencyPropertyChangedEvent(AutoEllipsisChanged));
     myMultiline           = new DependencyPropertyStorage <bool>(this, true, new DependencyPropertyChangedEvent(MultilineChanged));
 }
 public WindowlessImage()
 {
     myBitmap = new DependencyPropertyStorage <PlatformBitmap>(this, null, new DependencyPropertyChangedEvent(BitmapChanged));
 }
Esempio n. 6
0
 public DockPanel()
 {
     myCapDimension = new DependencyPropertyStorage <bool>(this, false, new DependencyPropertyChangedEvent(CapDimensionChanged));
 }
 public DependencyPropertyEventArgs(DependencyPropertyStorage storage, object oldValue, object newValue)
 {
     myStorage = storage;
     myOldValue = oldValue;
     myNewValue = newValue;
 }
Esempio n. 8
0
 public DockPanel()
 {
     myCapDimension = new DependencyPropertyStorage<bool>(this, false, new DependencyPropertyChangedEvent(CapDimensionChanged));
 }
 public WindowlessRectangle()
 {
     myColor          = new DependencyPropertyStorage <Color>(this, Color.Transparent, new DependencyPropertyChangedEvent(ColorChanged));
     myFilled         = new DependencyPropertyStorage <bool>(this, true, new DependencyPropertyChangedEvent(FilledChanged));
     myRectangleWidth = new DependencyPropertyStorage <double>(this, 1.0, new DependencyPropertyChangedEvent(RectangleWidthChanged));
 }
Esempio n. 10
0
 public WindowlessImage()
 {
     myBitmap = new DependencyPropertyStorage<PlatformBitmap>(this, null, new DependencyPropertyChangedEvent(BitmapChanged));
 }
Esempio n. 11
0
 public WindowlessPaintControl()
 {
     myPaintSelf     = new DependencyPropertyStorage <bool>(this, true, new DependencyPropertyChangedEvent(PaintSelfChanged));
     myPaintChildren = new DependencyPropertyStorage <bool>(this, true, new DependencyPropertyChangedEvent(PaintChildrenChanged));
     myClipToBounds  = new DependencyPropertyStorage <bool>(this, true, new DependencyPropertyChangedEvent(ClipToBoundsChanged));
 }
 public WindowlessPaintControl()
 {
     myPaintSelf = new DependencyPropertyStorage<bool>(this, true, new DependencyPropertyChangedEvent(PaintSelfChanged));
     myPaintChildren = new DependencyPropertyStorage<bool>(this, true, new DependencyPropertyChangedEvent(PaintChildrenChanged));
     myClipToBounds = new DependencyPropertyStorage<bool>(this, true, new DependencyPropertyChangedEvent(ClipToBoundsChanged));
 }
 public WindowlessRoundRectangle()
 {
     myPen = new DependencyPropertyStorage<NativePen>(this, myDefaultPen, new DependencyPropertyChangedEvent(PenChanged));
     myBrush = new DependencyPropertyStorage<NativeBrush>(this, myDefaultBrush, new DependencyPropertyChangedEvent(BrushChanged));
     myEllipseWidth = new DependencyPropertyStorage<int>(this, 0, new DependencyPropertyChangedEvent(EllipseWidthChanged));
     myEllipseHeight = new DependencyPropertyStorage<int>(this, 0, new DependencyPropertyChangedEvent(EllipseHeightChanged));
 }
 public WindowlessRectangle()
 {
     myColor = new DependencyPropertyStorage<Color>(this, Color.Transparent, new DependencyPropertyChangedEvent(ColorChanged));
     myFilled = new DependencyPropertyStorage<bool>(this, true, new DependencyPropertyChangedEvent(FilledChanged));
     myRectangleWidth = new DependencyPropertyStorage<double>(this, 1.0, new DependencyPropertyChangedEvent(RectangleWidthChanged));
 }
 public WindowlessGradientRectangle()
 {
     myTopLeftColor = new DependencyPropertyStorage<Color>(this, Color.Transparent, new DependencyPropertyChangedEvent(TopLeftColorChanged));
     myBottomRightColor = new DependencyPropertyStorage<Color>(this, Color.Transparent, new DependencyPropertyChangedEvent(BottomRightColorChanged));
     myGradientDirection = new DependencyPropertyStorage<GradientDirection>(this, GradientDirection.Vertical, new DependencyPropertyChangedEvent(GradientDirectionChanged));
 }
 public WindowlessGradientRectangle()
 {
     myTopLeftColor      = new DependencyPropertyStorage <Color>(this, Color.Transparent, new DependencyPropertyChangedEvent(TopLeftColorChanged));
     myBottomRightColor  = new DependencyPropertyStorage <Color>(this, Color.Transparent, new DependencyPropertyChangedEvent(BottomRightColorChanged));
     myGradientDirection = new DependencyPropertyStorage <GradientDirection>(this, GradientDirection.Vertical, new DependencyPropertyChangedEvent(GradientDirectionChanged));
 }
 public WindowlessControl()
 {
     myVisible = new DependencyPropertyStorage<bool>(this, true, new DependencyPropertyChangedEvent(VisibleChanged));
     myMaxHeight = new DependencyPropertyStorage<int>(this, Int32.MaxValue, new DependencyPropertyChangedEvent(MaxHeightChanged));
     myMaxWidth = new DependencyPropertyStorage<int>(this, Int32.MaxValue, new DependencyPropertyChangedEvent(MaxWidthChanged));
     myMargin = new DependencyPropertyStorage<Thickness>(this, Thickness.Empty, new DependencyPropertyChangedEvent(MarginChanged));
 }
 public DependencyPropertyEventArgs(DependencyPropertyStorage storage, object oldValue, object newValue)
 {
     myStorage  = storage;
     myOldValue = oldValue;
     myNewValue = newValue;
 }