예제 #1
0
        public static void MapText(ILabelHandler handler, ILabel label)
        {
            handler.PlatformView?.UpdateText(label);

            // Any text update requires that we update any attributed string formatting
            MapFormatting(handler, label);
        }
예제 #2
0
 public static void MapFormatting(ILabelHandler handler, ILabel label)
 {
     // Update all of the attributed text formatting properties
     // Setting any of those may have removed text alignment settings,
     // so we need to make sure those are applied, too
     handler.PlatformView?.UpdateHorizontalTextAlignment(label);
     handler.PlatformView?.UpdateTextDecorations(label);
 }
예제 #3
0
 public static void MapVerticalTextAlignment(ILabelHandler handler, ILabel label)
 {
     handler.PlatformView?.UpdateVerticalTextAlignment(label);
 }
예제 #4
0
 public static void MapHeight(ILabelHandler handler, ILabel view) =>
 // VerticalAlignment only works when the container's Height is set and the child's Height is Auto. The child's Height
 // is set to Auto when the container is introduced
 handler.ToPlatform().UpdateHeight(view);
예제 #5
0
 public static void MapLineHeight(ILabelHandler handler, ILabel label)
 {
 }
예제 #6
0
 public static void MapMaxLines(ILabelHandler handler, ILabel label)
 {
 }
예제 #7
0
 public static void MapVerticalTextAlignment(ILabelHandler handler, ILabel label)
 {
 }
예제 #8
0
 public static void MapCharacterSpacing(ILabelHandler handler, ILabel label)
 {
 }
예제 #9
0
 public static void MapLineBreakMode(ILabelHandler handler, ILabel label)
 {
     handler.PlatformView?.UpdateLineBreakMode(label);
 }
예제 #10
0
 public static void MapCharacterSpacing(ILabelHandler handler, ILabel label)
 {
     handler.PlatformView?.UpdateCharacterSpacing(label);
 }
예제 #11
0
 public static void MapText(ILabelHandler handler, ILabel label) =>
 handler.PlatformView?.UpdateText(label);
예제 #12
0
 public static void MapOpacity(ILabelHandler handler, ILabel label)
 {
     handler.UpdateValue(nameof(IViewHandler.ContainerView));
     handler.PlatformView.UpdateOpacity(label);
     handler.ToPlatform().UpdateOpacity(label);
 }
 //getting the object of LabelService
 public LabelService(ILabelHandler handler)
 {
     labelHandler = handler;
 }
예제 #14
0
        public static void MapVerticalTextAlignment(ILabelHandler handler, ILabel label)
        {
            handler.UpdateValue(nameof(IViewHandler.ContainerView));

            handler.PlatformView?.UpdateVerticalTextAlignment(label);
        }
예제 #15
0
 public static void MapTextDecorations(ILabelHandler handler, ILabel label)
 {
     handler.PlatformView?.UpdateTextDecorations(label);
 }
예제 #16
0
        public static void MapFont(ILabelHandler handler, ILabel label)
        {
            var fontManager = handler.GetRequiredService <IFontManager>();

            handler.PlatformView?.UpdateFont(label, fontManager);
        }
예제 #17
0
 public static void MapPadding(ILabelHandler handler, ILabel label)
 {
     handler.PlatformView?.UpdatePadding(label);
 }
예제 #18
0
 public static void MapMaxLines(ILabelHandler handler, Label label)
 {
     handler.PlatformView?.UpdateMaxLines(label);
 }
예제 #19
0
 public static void MapLineHeight(ILabelHandler handler, ILabel label)
 {
     handler.PlatformView?.UpdateLineHeight(label);
 }
예제 #20
0
 public static void MapHorizontalTextAlignment(ILabelHandler handler, ILabel label)
 {
 }
예제 #21
0
 public static void MapBackground(ILabelHandler handler, ILabel label)
 {
     handler.UpdateValue(nameof(handler.ContainerView));
     handler.ToPlatform()?.UpdateBackground(label);
 }
예제 #22
0
 public static void MapTextDecorations(ILabelHandler handler, ILabel label)
 {
 }
예제 #23
0
 public static void MapTextColor(ILabelHandler handler, ILabel label)
 {
     handler.PlatformView?.UpdateTextColor(label);
 }
예제 #24
0
 public static void MapPadding(ILabelHandler handler, ILabel label)
 {
 }
예제 #25
0
 public static void MapHorizontalTextAlignment(ILabelHandler handler, ILabel label)
 {
     handler.PlatformView?.UpdateHorizontalTextAlignment(label);
 }
예제 #26
0
 public static void MapText(ILabelHandler handler, ILabel label)
 {
 }
예제 #27
0
 public static void MapLineBreakMode(ILabelHandler handler, ILabel label)
 {
 }