Beispiel #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);
        }
Beispiel #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);
 }
Beispiel #3
0
 public static void MapVerticalTextAlignment(ILabelHandler handler, ILabel label)
 {
     handler.PlatformView?.UpdateVerticalTextAlignment(label);
 }
Beispiel #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);
Beispiel #5
0
 public static void MapLineHeight(ILabelHandler handler, ILabel label)
 {
 }
Beispiel #6
0
 public static void MapMaxLines(ILabelHandler handler, ILabel label)
 {
 }
Beispiel #7
0
 public static void MapVerticalTextAlignment(ILabelHandler handler, ILabel label)
 {
 }
Beispiel #8
0
 public static void MapCharacterSpacing(ILabelHandler handler, ILabel label)
 {
 }
Beispiel #9
0
 public static void MapLineBreakMode(ILabelHandler handler, ILabel label)
 {
     handler.PlatformView?.UpdateLineBreakMode(label);
 }
Beispiel #10
0
 public static void MapCharacterSpacing(ILabelHandler handler, ILabel label)
 {
     handler.PlatformView?.UpdateCharacterSpacing(label);
 }
Beispiel #11
0
 public static void MapText(ILabelHandler handler, ILabel label) =>
 handler.PlatformView?.UpdateText(label);
Beispiel #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;
 }
Beispiel #14
0
        public static void MapVerticalTextAlignment(ILabelHandler handler, ILabel label)
        {
            handler.UpdateValue(nameof(IViewHandler.ContainerView));

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

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