Exemple #1
0
 protected override void OnElementChanged(ElementChangedEventArgs <Label> e)
 {
     _control = e.NewElement as LabelCustomFont;
     string[] _fontPath = _control.FontFamily.Split(new char[] { '#' });
     _control.FontFamily = _fontPath[1];
     base.OnElementChanged(e);
 }
 protected override void OnElementChanged(ElementChangedEventArgs <Label> e)
 {
     _control            = e.NewElement as LabelCustomFont;
     _fontPath           = "Fonts/" + _control.FontFamily;
     _control.FontFamily = _fontPath;
     base.OnElementChanged(e);
 }
Exemple #3
0
 protected async override void OnElementChanged(ElementChangedEventArgs <Label> e)
 {
     base.OnElementChanged(e);
     _control = e.NewElement as LabelCustomFont;
     if (_control.FontFamily != null)
     {
         _control.FontFamily = $"/Assets/Fonts/{_control.FontFamily}";
     }
 }