예제 #1
0
 static Viewbox()
 {
     ClipToBoundsProperty.OverrideDefaultValue <Viewbox>(true);
     UseLayoutRoundingProperty.OverrideDefaultValue <Viewbox>(true);
     AffectsMeasure <Viewbox>(StretchProperty, StretchDirectionProperty);
 }
예제 #2
0
 static OutlineText()
 {
     SnapsToDevicePixelsProperty.OverrideMetadata(typeof(OutlineText), new FrameworkPropertyMetadata(ValueBoxes.TrueBox));
     UseLayoutRoundingProperty.OverrideMetadata(typeof(OutlineText), new FrameworkPropertyMetadata(ValueBoxes.TrueBox));
 }
예제 #3
0
        static ImageEx()
        {
#if NET4
            UseLayoutRoundingProperty.OverrideMetadata(typeof(ImageEx), new FrameworkPropertyMetadata(true));
#endif
        }