internal WrappedTextBlock(NativeWrappedTextBlock native)
     : base(native)
 {
     AutoHeight  = native.AutoHeight;
     Color       = native.Color.FromNative();
     ColorSource = native.ColorSource.FromNative();
     Font        = native.Font.FromNative();
 }
 internal WrappedTextBlock(NativeWrappedTextBlock native)
     : base(native)
 {
     AutoHeight = native.AutoHeight;
     Color = native.Color.FromNative();
     ColorSource = native.ColorSource.FromNative();
     Font = native.Font.FromNative();
 }
Ejemplo n.º 3
0
 internal static NativeWrappedTextBlockFont ToNative(this WrappedTextBlockFont font)
 {
     // can't use switch on Android as this is not an enum
     if (font == WrappedTextBlockFont.Small)
     {
         return(NativeWrappedTextBlockFont.Small);
     }
     if (font == WrappedTextBlockFont.Medium)
     {
         return(NativeWrappedTextBlockFont.Medium);
     }
     throw new ArgumentOutOfRangeException("font", "Invalid WrappedTextBlockFont specified.");
 }