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