Setting font family in rad entry crash app in iOS

13 posts, 0 answers
  1. Shalin
    Shalin avatar
    61 posts
    Member since:
    May 2015

    Posted 15 Mar 2018 Link to this post

    hi,

    I have rad list with items, one item have two RadEntrys to enter Numeric values. All elements bound to vm or item model, basic MVVM.

    Font family define in App.xaml based on OS.

    <OnPlatform x:TypeArguments="x:String" x:Key="PlatformBaseFontFamily">
                   <On Platform="iOS" Value="San Francisco"/>
                   <On Platform="Android" Value="Roboto"/>
               </OnPlatform>

    if i use FontFamily="{StaticResource PlatformBaseFontFamily}" in RadEntry app crashes even if i remove Keyboard="Numeric".

    my styling,

    TextColor="{StaticResource BaseTextColor}" FontSize="Small" FontFamily="{StaticResource PlatformBaseFontFamily}"
                                                                           BorderStyle="{StaticResource StatRadEntryBorderStyle}

    Questions:

    1) How to fix this Error

    2) RadEntrys in first item of list have no border around them, but other items have.(RadList Default item style in use)

    Error Message

    "Value cannot be null.
    Parameter name: descriptor"

    StackTrace

      at UIKit.UIFont._FromDescriptor (UIKit.UIFontDescriptor descriptor, System.nfloat pointSize) [0x00011] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.8.0.20/src/Xamarin.iOS/UIKit/UIFont.g.cs:106 
      at UIKit.UIFont.FromDescriptor (UIKit.UIFontDescriptor descriptor, System.nfloat pointSize) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.8.0.20/src/Xamarin.iOS/UIKit/UIFont.cs:179 
      at Telerik.XamarinForms.InputRenderer.iOS.EntryAdapter.UpdateFont (Telerik.XamarinForms.Input.RadEntry sourceOwner, Telerik.XamarinForms.InputRenderer.iOS.BorderUITextField targetOwner) [0x0007a] in <0ae6931e45b44b43b9cb8fc35622cf29>:0 
      at Telerik.XamarinForms.InputRenderer.iOS.EntryAdapter.UpdateCore (Telerik.XamarinForms.Input.RadEntry sourceOwner, Telerik.XamarinForms.InputRenderer.iOS.BorderUITextField targetOwner, System.String propertyName) [0x0003a] in <0ae6931e45b44b43b9cb8fc35622cf29>:0 
      at Telerik.XamarinForms.Common.FacadeAdapterBase`2[S,T].Update (System.Object sourceOwner, System.Object targetOwner, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00000] in <be10754fe83d4f30b3bf0368f5628901>:0 
      at Telerik.XamarinForms.Common.XamarinToNativeControlExtensions.Update[T,K] (T nativeElement, K xfЕlement, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00031] in <be10754fe83d4f30b3bf0368f5628901>:0 
      at Telerik.XamarinForms.InputRenderer.iOS.EntryRenderer.OnElementAttached (Telerik.XamarinForms.Input.RadEntry newElement) [0x00046] in <0ae6931e45b44b43b9cb8fc35622cf29>:0 
      at Telerik.XamarinForms.Common.iOS.IosRendererBase`2[S,T].OnElementChanged (Xamarin.Forms.Platform.iOS.ElementChangedEventArgs`1[TElement] e) [0x00037] in <be10754fe83d4f30b3bf0368f5628901>:0 
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x00118] in <bc5a3d4303744676b3b36f4254bb697d>:0 
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <bc5a3d4303744676b3b36f4254bb697d>:0 
      at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in <bc5a3d4303744676b3b36f4254bb697d>:0 
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0002a] in <bc5a3d4303744676b3b36f4254bb697d>:0 
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001e] in <bc5a3d4303744676b3b36f4254bb697d>:0 
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000cc] in <bc5a3d4303744676b3b36f4254bb697d>:0 
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <bc5a3d4303744676b3b36f4254bb697d>:0 
      at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in <bc5a3d4303744676b3b36f4254bb697d>:0 
      at Telerik.XamarinForms.Common.RadPlatform.GetOrCreateRenderer (Xamarin.Forms.VisualElement visualElement) [0x00012] in <be10754fe83d4f30b3bf0368f5628901>:0 
      at Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.UIListViewTemplateCell.PrepareCell () [0x00008] in <c9290182597745d6888354b6899be4aa>:0 
      at Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.ListViewCellRenderer.UpdateCell (Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.UIListViewCell cell, System.String propertyName) [0x00008] in <c9290182597745d6888354b6899be4aa>:0 
      at Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.ListViewCellRenderer.UpdateCell (TelerikUI.TKListViewReusableCell reusableCell, System.String propertyName) [0x00000] in <c9290182597745d6888354b6899be4aa>:0 
      at Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.UIListViewCell.UpdateCell (Telerik.XamarinForms.DataControls.RadListView owner, System.Object dataItem) [0x00021] in <c9290182597745d6888354b6899be4aa>:0 
      at Telerik.XamarinForms.DataControlsRenderer.iOS.ListViewDataSource.InitCell (TelerikUI.TKListView listView, Foundation.NSIndexPath indexPath, TelerikUI.TKListViewCell tkCell, Foundation.NSObject obj) [0x000b1] in <c9290182597745d6888354b6899be4aa>:0 
      at Telerik.XamarinForms.DataControlsRenderer.iOS.ListViewDataSource.InitCellCallback (TelerikUI.TKListView listView, Foundation.NSIndexPath indexPath, TelerikUI.TKListViewCell tkCell, Foundation.NSObject obj) [0x00006] in <c9290182597745d6888354b6899be4aa>:0 
      at ObjCRuntime.Trampolines+SDActionArity4V1.Invoke (System.IntPtr block, System.IntPtr arg1, System.IntPtr arg2, System.IntPtr arg3, System.IntPtr arg4) [0x00030] in <5bae2bad360b4d5da328902516ddda38>:0 
      at (wrapper native-to-managed) ObjCRuntime.Trampolines+SDActionArity4V1.Invoke(intptr,intptr,intptr,intptr,intptr)
    --- End of stack trace from previous location where exception was thrown ---
      at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
      at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.8.0.20/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
      at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.8.0.20/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
      at Medarbeideren.iOS.Application.Main (System.String[] args) [0x00001] in /Users/xamarindev/Documents/Medarbeideren/Medar_UI/Medarbeideren/Medarbeideren/Medarbeideren.iOS/Main.cs:17 

  2. Lance | Technical Support Engineer, Principal
    Admin
    Lance | Technical Support Engineer, Principal avatar
    1039 posts

    Posted 15 Mar 2018 Link to this post

    Hi Shalin,

    You'll get this error if the FontFamily value you've entered doesn't exist (which could be due to misspelling, the wrong name, or is not properly listed in your info.plist). You can find more info here in Xamarin Documentation and this blog post.


    Testing Font Names

    Here's an example to demonstrate that setting FontFamily works as expected when using a font name that matches available resources (you can also try this with "Courier New"):




    If you're not sure about the font, you can use a plain Entry or Label control and see the result there. Once you're sure the name is correct, you can use it with RadEntry.

    San Francisco

    The San Francisco font is the default system font since iOS 9, you do not have to set a value if you want to use it.

    However, if you do want to use it you must use the correct name:

    <telerikInput:RadEntry x:Name="entry"
                    FontFamily=".SFUIText"
                    WatermarkText="Enter first name"/>


    or you could define resources like this:

    <OnPlatform x:TypeArguments="x:String" x:Key="BoldFontFamily" Android="sans-serif" iOS=".SFUIText-Bold"/>
    <OnPlatform x:TypeArguments="x:String" x:Key="ThinFontFamily" Android="sans-serif-thin" iOS=".SFUIText-Light"/>
    <OnPlatform x:TypeArguments="x:String" x:Key="DefaultFontFamily" Android="sans-serif" iOS=".SFUIText"/>


    Wrapping Up

    I think that we should try to catch this exception internally and fall back on the default font, therefore I have submitted this item on our backlog (you can upvote and follow the item).

    Lastly, I have updated your Telerik points for bringing this to our attention.

    Regards,
    Lance | Tech Support Engineer, Sr.
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Shalin
    Shalin avatar
    61 posts
    Member since:
    May 2015

    Posted 15 Mar 2018 in reply to Lance | Technical Support Engineer, Principal Link to this post

    hi,

    This is how i define platform based font size in App.xaml,

    <OnPlatform x:TypeArguments="x:String" x:Key="PlatformBaseFontFamily">
                   <On Platform="iOS" Value="San Francisco"/>
                   <On Platform="Android" Value="Roboto"/>
               </OnPlatform>

    But this is working fine in all other Xamarin controls, problem only arise in RadEntry.

    Any way, there is a border issue i already mentioned.

    1. RadEntry border is not visible in first list item in iOS (see attached image)
  4. Lance | Technical Support Engineer, Principal
    Admin
    Lance | Technical Support Engineer, Principal avatar
    1039 posts

    Posted 16 Mar 2018 Link to this post

    Hi Shalin,

    Unfortunately, I'm not able to determine what is happening with the amount of information you've provided and I'm not able to reproduce it.

    If you'd like us to investigate this further, please prepare a demo app that reproduces the issues and share that with us so we can debug it directly,

    Regards,
    Lance | Tech Support Engineer, Sr.
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Carl
    Carl avatar
    17 posts
    Member since:
    Sep 2018

    Posted 02 Oct 2018 Link to this post

    I was facing the same error mentioned by @Shalin but was not exactly related to the RadEntry control, it was happening in every control. In my case the solution was to place the fonts in the base folder for resources for each platform, that means iOS: /Resources | Android: /Assets.

    The problem I'm facing with the RadEntry is I can't see the custom font applied, even the same resource I'm using is correctly applied to a Label, no errors or something saying what is happening.

    My XAML

    <OnPlatform x:Key="OpenSansRegularFontFamily" x:TypeArguments="x:String">
        <On Platform="Android">OpenSans-Regular.ttf#Open Sans</On>
        <On Platform="iOS">OpenSans-Regular</On>
    </OnPlatform>
     
    <Style x:Key="HeaderTextStyle" TargetType="{x:Type Label}">
        <Setter Property="FontSize" Value="16" />
        <Setter Property="FontFamily" Value="{StaticResource OpenSansRegularFontFamily}" />
    </Style>
     
    <Label VerticalOptions="Center" Style="{StaticResource HeaderTextStyle}" Text="{Binding HeaderTitle}" />
     
    <Style x:Key="EmailEntryStyle" TargetType="telerikInput:RadEntry">
        <Setter Property="FontSize" Value="14" />
        <Setter Property="FontFamily" Value="{StaticResource OpenSansRegularFontFamily}" />
        <Setter Property="HeightRequest" Value="48" />
        <Setter Property="Margin" Value="0,0,0,16" />
        <Setter Property="BorderStyle">
            <Setter.Value>
                <telerikInput:BorderStyle BorderColor="{StaticResource BlueBorder}" BorderThickness="1" />
            </Setter.Value>
        </Setter>
    </Style>
     
    <telerikInput:RadEntry Text="{Binding Path=LoginRequest.Email, Mode=TwoWay}" WatermarkText="" Style="{StaticResource EmailEntryStyle}"/>

     

    Attached you can see and Image of a View that includes a Label and a RadEntry, the label has the right font and the RadEntry the system default ¿?

    I'll appreacite your help

  6. Carl
    Carl avatar
    17 posts
    Member since:
    Sep 2018

    Posted 02 Oct 2018 in reply to Lance | Technical Support Engineer, Principal Link to this post

    Any ideas?
  7. Carl
    Carl avatar
    17 posts
    Member since:
    Sep 2018

    Posted 02 Oct 2018 in reply to Lance | Technical Support Engineer, Principal Link to this post

    After testing more in depth I found the style resource is not working neither in iOS or Android, the thing is in Android it renders the RadEntry but using the default system font (so it confuses), in iOS it completely crashes the app, if I remove the FontFamily Setter it renders fine but of course without the custom font.

    Using the same style in a Xamarin.Forms Entry control the font is applied as expected, seems the quick solution is to remove all RadEntry controls from the app.

    Full stacktrace for the record:

    2018-10-02 21:12:19.884576-0500 Au.Mobile.iOS[18169:1583709]
    Unhandled Exception:
    System.ArgumentNullException: Value cannot be null.
    Parameter name: descriptor
      at UIKit.UIFont._FromDescriptor (UIKit.UIFontDescriptor descriptor, System.nfloat pointSize) [0x00003] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/UIKit/UIFont.g.cs:105
      at UIKit.UIFont.FromDescriptor (UIKit.UIFontDescriptor descriptor, System.nfloat pointSize) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/UIKit/UIFont.cs:179
      at Telerik.XamarinForms.InputRenderer.iOS.EntryAdapter.UpdateFont (Telerik.XamarinForms.Input.RadEntry sourceOwner, Telerik.XamarinForms.InputRenderer.iOS.BorderUITextField targetOwner) [0x0007a] in <d0a876660776495e813c999dbd32c53a>:0
      at Telerik.XamarinForms.InputRenderer.iOS.EntryAdapter.UpdateCore (Telerik.XamarinForms.Input.RadEntry sourceOwner, Telerik.XamarinForms.InputRenderer.iOS.BorderUITextField targetOwner, Syst
    em.String propertyName) [0x0003a] in <d0a876660776495e813c999dbd32c53a>:0
      at Telerik.XamarinForms.Common.FacadeAdapterBase`2[S,T].Update (System.Object sourceOwner, System.Object targetOwner, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00000] in <854ee8369bca461384d3ac3224bfd96a>:0
      at Telerik.XamarinForms.Common.XamarinToNativeControlExtensions.Update[T,K] (T nativeElement, K xf–ïlement, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00031] in <854ee8369bca461384d3ac3224bfd96a>:0
      at Telerik.XamarinForms.InputRenderer.iOS.EntryRenderer.OnElementAttached (Telerik.XamarinForms.Input.RadEntry newElement) [0x00046] in <d0a876660776495e813c999dbd32c53a>:0
      at Telerik.XamarinForms.Common.iOS.IosRendererBase`2[S,T].OnElementChanged (Xamarin.Forms.Platform.iOS.ElementChangedEventArgs`1[TElement] e) [0x00037] in <854ee8369bca461384d3ac3224bfd96a>:0
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].
    SetElement (TElement element) [0x00122] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:192
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:141
      at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:198
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0003d] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:97
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001e] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:46
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000de] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:179
      at Xamarin.For
    ms.Platform.iOS.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:141
      at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:198
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0003d] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:97
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001e] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:46
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000de] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:179
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms
    .VisualElement element) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:141
      at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:198
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0003d] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:97
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (System.Object sender, Xamarin.Forms.ElementEventArgs e) [0x0000f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:152
      at Xamarin.Forms.Element.OnChildAdded (Xamarin.Forms.Element child) [0x00023] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:344
      at Xamarin.Forms.VisualElement.OnChildAdded (Xamarin.Forms.Element child) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:633
      at Xamarin.Forms.Layout.OnInternalAdded (Xamarin.Forms.View view) [0x0001d] in D:\a\1\s\Xamarin.Forms.Core\Lay
    out.cs:450
      at Xamarin.Forms.Layout.InternalChildrenOnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00089] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:440
      at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0000f] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:288
      at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:351
      at System.Collections.ObjectModel.ObservableCollection`1[T].InsertItem (System
    .Int32 index, T item) [0x00024] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:219
      at System.Collections.ObjectModel.Collection`1[T].Add (T item) [0x00020] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/collections/objectmodel/collection.cs:67
      at Xamarin.Forms.ContentPresenter+<OnContentChanged>d__10.MoveNext () [0x0004e] in D:\a\1\s\Xamarin.Forms.Core\ContentPresenter.cs:86
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1018
      at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x
    00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/Foundation/NSAction.cs:178
      at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
      at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/UIKit/UIApplication.cs:79
      at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/UIKit/UIApplication.cs:63
      at AuditoriasCiudadanas.Mobile.iOS.Application.Main (System.String[] args) [0x00001] in C:\other\AuditoriasCiudadanas.Mobile\src\AuditoriasCiudadanas.Mobile.iOS\Main.cs:12
    2018-10-02 21:12:19.888635-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] Unhandled managed exception:
    Value cannot be null.
    Parameter name: descriptor (System.ArgumentNullExc
    eption)
      at UIKit.UIFont._FromDescriptor (UIKit.UIFontDescriptor descriptor, System.nfloat pointSize) [0x00003] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/UIKit/UIFont.g.cs:105
      at UIKit.UIFont.FromDescriptor (UIKit.UIFontDescriptor descriptor, System.nfloat pointSize) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/UIKit/UIFont.cs:179
      at Telerik.XamarinForms.InputRenderer.iOS.EntryAdapter.UpdateFont (Telerik.XamarinForms.Input.RadEntry sourceOwner, Telerik.XamarinForms.InputRenderer.iOS.BorderUITextField targetOwner) [0x0007a] in <d0a876660776495e813c999dbd32c53a>:0
      at Telerik.XamarinForms.InputRenderer.iOS.EntryAdapter.UpdateCore (Telerik.XamarinForms.Input.RadEntry sourceOwner, Telerik.XamarinForms.InputRenderer.iOS.BorderUITextField targetOwner, System.String propertyName) [0x0003a] in <d0a876660776495e813c999dbd32c53a>:0
      at Telerik.XamarinForms.Common.FacadeAdapterBase`2[S,T].Update (System.Object sourceOwner, Syst
    em.Object targetOwner, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00000] in <854ee8369bca461384d3ac3224bfd96a>:0
      at Telerik.XamarinForms.Common.XamarinToNativeControlExtensions.Update[T,K] (T nativeElement, K xf–ïlement, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) [0x00031] in <854ee8369bca461384d3ac3224bfd96a>:0
      at Telerik.XamarinForms.InputRenderer.iOS.EntryRenderer.OnElementAttached (Telerik.XamarinForms.Input.RadEntry newElement) [0x00046] in <d0a876660776495e813c999dbd32c53a>:0
      at Telerik.XamarinForms.Common.iOS.IosRendererBase`2[S,T].OnElementChanged (Xamarin.Forms.Platform.iOS.ElementChangedEventArgs`1[TElement] e) [0x00037] in <854ee8369bca461384d3ac3224bfd96a>:0
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x00122] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:192
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElemen
    t].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:141
      at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:198
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0003d] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:97
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001e] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:46
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000de] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:179
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in D:\a\1\s\X
    amarin.Forms.Platform.iOS\VisualElementRenderer.cs:141
      at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:198
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0003d] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:97
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001e] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:46
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000de] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:179
      at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:141
      at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Form
    s.VisualElement element) [0x00014] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:198
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0003d] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:97
      at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (System.Object sender, Xamarin.Forms.ElementEventArgs e) [0x0000f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:152
      at Xamarin.Forms.Element.OnChildAdded (Xamarin.Forms.Element child) [0x00023] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:344
      at Xamarin.Forms.VisualElement.OnChildAdded (Xamarin.Forms.Element child) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:633
      at Xamarin.Forms.Layout.OnInternalAdded (Xamarin.Forms.View view) [0x0001d] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:450
      at Xamarin.Forms.Layout.InternalChildrenOnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00089
    ] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:440
      at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0000f] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:288
      at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:351
      at System.Collections.ObjectModel.ObservableCollection`1[T].InsertItem (System.Int32 index, T item) [0x00024] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/System/compmod/system/collections/
    objectmodel/observablecollection.cs:219
      at System.Collections.ObjectModel.Collection`1[T].Add (T item) [0x00020] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/collections/objectmodel/collection.cs:67
      at Xamarin.Forms.ContentPresenter+<OnContentChanged>d__10.MoveNext () [0x0004e] in D:\a\1\s\Xamarin.Forms.Core\ContentPresenter.cs:86
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1018
      at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/Foundation/NSAction.cs:178
      at (wrapper managed-to-native) UIKit.UIApplication.UIAp
    plicationMain(int,string[],intptr,intptr)
      at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/UIKit/UIApplication.cs:79
      at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/UIKit/UIApplication.cs:63
      at AuditoriasCiudadanas.Mobile.iOS.Application.Main (System.String[] args) [0x00001] in C:\other\AuditoriasCiudadanas.Mobile\src\AuditoriasCiudadanas.Mobile.iOS\Main.cs:12
    2018-10-02 21:12:19.889425-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical: Stacktrace:
    2018-10-02 21:12:19.889663-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:
    Native stacktrace:
    2018-10-02 21:12:19.906332-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    0   AuditoriasCiudadanas.Mobile.iOS     0x0000000102
    3ee564 mono_handle_native_crash + 244
    2018-10-02 21:12:19.906567-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    1   libsystem_platform.dylib            0x0000000108a4cf5a _sigtramp + 26
    2018-10-02 21:12:19.906715-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    2   libsystem_pthread.dylib             0x0000000108a5b570 libsystem_pthread.dylib + 1392
    2018-10-02 21:12:19.906876-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    3   libsystem_c.dylib                   0x00000001087d4c45 abort + 127
    2018-10-02 21:12:19.907059-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    4   AuditoriasCiudadanas.Mobile.iOS     0x000000010260b0df xamarin_unhandled_exception_handler + 47
    2018-10-02 21:12:19.907198-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    5   AuditoriasCiudadanas.Mobile.iOS     0x000000010248bf2e mono_invoke_unhandled_exception_hook + 158
    2018-10-02 21:12:19.907336-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    6   Audit
    oriasCiudadanas.Mobile.iOS     0x00000001023edf18 mono_handle_exception_internal + 5976
    2018-10-02 21:12:19.907453-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    7   AuditoriasCiudadanas.Mobile.iOS     0x00000001023ec7b9 mono_handle_exception + 25
    2018-10-02 21:12:19.907593-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    8   AuditoriasCiudadanas.Mobile.iOS     0x000000010236c4d3 mono_amd64_throw_exception + 131
    2018-10-02 21:12:19.907704-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    9   ???                                 0x00000001297d75a7 0x0 + 4991055271
    2018-10-02 21:12:19.907835-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    10  ???                                 0x000000012acfe616 0x0 + 5013235222
    2018-10-02 21:12:19.907949-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    11  AuditoriasCiudadanas.Mobile.iOS     0x0000000102401431 mono_jit_runtime_invoke + 1441
    2018-10-02 21:12:19.908053-0500 AuditoriasCiudadanas.Mobile.iOS[18
    169:1583709] critical:  12  AuditoriasCiudadanas.Mobile.iOS     0x00000001024f174f mono_runtime_invoke_checked + 127
    2018-10-02 21:12:19.908185-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    13  AuditoriasCiudadanas.Mobile.iOS     0x00000001024f5113 mono_runtime_invoke + 83
    2018-10-02 21:12:19.908301-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    14  AuditoriasCiudadanas.Mobile.iOS     0x00000001026144ca xamarin_invoke_trampoline + 6042
    2018-10-02 21:12:19.908406-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    15  AuditoriasCiudadanas.Mobile.iOS     0x000000010261c47d xamarin_arch_trampoline + 189
    2018-10-02 21:12:19.908545-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    16  AuditoriasCiudadanas.Mobile.iOS     0x000000010261d8b1 xamarin_x86_64_common_trampoline + 110
    2018-10-02 21:12:19.908665-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    17  Foundation                          0x0000000105726e7b __NSThreadPerformPerform + 330
    2018
    -10-02 21:12:19.908830-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    18  CoreFoundation                      0x0000000106203b31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    2018-10-02 21:12:19.908981-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    19  CoreFoundation                      0x00000001062033a3 __CFRunLoopDoSources0 + 243
    2018-10-02 21:12:19.909170-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    20  CoreFoundation                      0x00000001061fda4f __CFRunLoopRun + 1263
    2018-10-02 21:12:19.909342-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    21  CoreFoundation                      0x00000001061fd221 CFRunLoopRunSpecific + 625
    2018-10-02 21:12:19.909465-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    22  GraphicsServices                    0x0000000111f011dd GSEventRunModal + 62
    2018-10-02 21:12:19.909631-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    23  UIKitCore                 
             0x000000010dafa115 UIApplicationMain + 140
    2018-10-02 21:12:19.909833-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    24  ???                                 0x000000012c8159be 0x0 + 5041641918
    2018-10-02 21:12:19.910003-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:    25  ???                                 0x000000012c815753 0x0 + 5041641299
    2018-10-02 21:12:19.910210-0500 AuditoriasCiudadanas.Mobile.iOS[18169:1583709] critical:
    =================================================================
    Got a SIGABRT while executing native code. This usually indicates
    a fatal error in the mono runtime or one of the native libraries
    used by your application.
    =================================================================
  8. Lance | Technical Support Engineer, Principal
    Admin
    Lance | Technical Support Engineer, Principal avatar
    1039 posts

    Posted 04 Oct 2018 Link to this post

    Hello Carl,

    Do you see the same problem if you directly set the FontFamily on the control (and not in shared Style resource)?

    Regards,
    Lance | Tech Support Engineer, Sr.
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  9. Carl
    Carl avatar
    17 posts
    Member since:
    Sep 2018

    Posted 04 Oct 2018 in reply to Lance | Technical Support Engineer, Principal Link to this post

    Hello Lance,

    I did the test you asked me setting the FontName directly in the XAML definition of the RadEntry and the result is: The control gets rendered in both platforms (without crashing) but the custom font is only shown in iOS, in Android te control used the default system font.

    <OnPlatform x:Key="OpenSansRegularFontFamily" x:TypeArguments="x:String">
        <On Platform="Android">OpenSans-Regular.ttf#Open Sans</On>
        <On Platform="iOS">OpenSans-Regular</On>
    </OnPlatform>
     
    <Style x:Key="EmailEntryStylee" TargetType="Entry">
        <Setter Property="TextColor" Value="{StaticResource BlueTextColor}" />
        <Setter Property="PlaceholderColor" Value="{StaticResource BlueTextColor}" />
        <Setter Property="FontSize" Value="14" />
        <!--<Setter Property="FontFamily" Value="{StaticResource OpenSansRegularFontFamily}" />-->
        <Setter Property="HeightRequest" Value="48" />
        <Setter Property="Margin" Value="0,0,0,16" />
    </Style>
     
    <telerikInput:RadEntry Text="{Binding Path=LoginRequest.Email, Mode=TwoWay}"
                            WatermarkText="{ex:Translate Key=AppLogin_EntryEmail}"
                            FontFamily="Open Sans"
                            Style="{StaticResource EmailEntryStyle}"/>

     

    Another important thing to mention is the name of the Font for iOS in my shared style resource, you can see it's set to "OpenSans-Regular" with that name it's rendered perfectly in a normal Entry control, but if I use that name in the RadEntry it throws the same exception, It needs to be set to "Open Sans", why? No idea how the RadEntry is getting the font names from the system/platform it's weird the Entry control uses a font name and the RadEntry uses another.

    Look forward to hearing how to handle this problem

     

     

  10. Lance | Technical Support Engineer, Principal
    Admin
    Lance | Technical Support Engineer, Principal avatar
    1039 posts

    Posted 08 Oct 2018 Link to this post

    Hello Carl,

    Thank you for the additional details, I have been able to reproduce the following results in my tests. You can follow along these in the attached reproducible inf you're interested.

    Android
    When assigning FontFamily in XAML, or dynamically, the custom font isn't used and falls back to default font. I could not determine a workaround.

    iOS
    When setting the font in XAML, you get an unhandled exception: System.ArgumentNullException: Value cannot be null. Parameter name: descriptor

    Workaround:
    Set the font after the page loads, for example:

    protected override void OnAppearing()
    {
        base.OnAppearing();
     
        var font = "";
     
        switch (Device.RuntimePlatform)
        {
            case "Android":
                font = "IndieFlower.ttf#Indie Flower";
                break;
            case "iOS":
                font = "Indie Flower";
                break;
            case "UWP":
                font = "Assets/Fonts/IndieFlower.ttf#Indie Flower";
                break;
        }
     
        MyRadEntry.FontFamily = font;
        MyRadEntry.Text = font;
     
        MyEntry.FontFamily = font;
        MyEntry.Text = font;
    }




    UWP
    Works as expected when defined in XAML or dynamically.


    I've logged the bug report for the development team to investigate further, please take a moment to up-vote and follow the item so that you'll be notified of status changes: RadEntry: Custom Font not applied.

    Regards,
    Lance | Tech Support Engineer, Sr.
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  11. Carl
    Carl avatar
    17 posts
    Member since:
    Sep 2018

    Posted 11 Oct 2018 in reply to Lance | Technical Support Engineer, Principal Link to this post

    Hello Lance,

    With your suggestions I'm able to get the custom font showing on iOS

    But as you mentioned, unfortunately there is no easy way to get this working on Android.

    Screenshot attached.

  12. Bhavin
    Bhavin avatar
    1 posts
    Member since:
    Mar 2019

    Posted 21 May Link to this post

    Hello. I am having same error.  I had DataGrid working perfectly and now this error came along.

    I am not even using custom Fonts. 

    Here's my grid xaml. 

          <telerikGrid:RadDataGrid x:Name="grid" 
                 ItemsSource="{Binding .}" 
                 AutoGenerateColumns="False"
                 UserEditMode="None">
            <telerikGrid:RadDataGrid.RowBackgroundStyle>
                <telerikGrid:DataGridBorderStyle BackgroundColor="#EFEFEF" BorderColor="#84898F" BorderThickness="1"/>
            </telerikGrid:RadDataGrid.RowBackgroundStyle>
            <telerikGrid:RadDataGrid.AlternateRowBackgroundStyle >
                <telerikGrid:DataGridBorderStyle BackgroundColor="White" BorderColor="#84898F" BorderThickness="1"/>
            </telerikGrid:RadDataGrid.AlternateRowBackgroundStyle>
            <telerikGrid:RadDataGrid.Columns>
                <telerikGrid:DataGridTextColumn PropertyName="Name" CanUserEdit="false" HeaderText="Name" Width="100" SizeMode="Auto">
                    <telerikGrid:DataGridTextColumn.CellContentStyle>
                        <telerikGrid:DataGridTextCellStyle TextColor="#84898F" FontSize="15" HorizontalTextAlignment="Start" VerticalTextAlignment="Start" SelectedTextColor="Orange"  />
                    </telerikGrid:DataGridTextColumn.CellContentStyle>
                </telerikGrid:DataGridTextColumn>
                <telerikGrid:DataGridDateColumn PropertyName="DisplayDate" CanUserEdit="false" HeaderText="Date">
                    <telerikGrid:DataGridTextColumn.CellContentStyle>
                        <telerikGrid:DataGridTextCellStyle TextColor="#84898F" FontSize="15" HorizontalTextAlignment="Start" VerticalTextAlignment="Start" SelectedTextColor="Orange"  />
                    </telerikGrid:DataGridTextColumn.CellContentStyle>
                </telerikGrid:DataGridDateColumn>  
                <telerikGrid:DataGridTextColumn PropertyName="Location" CanUserEdit="false" HeaderText="Location">
                    <telerikGrid:DataGridTextColumn.CellContentStyle>
                        <telerikGrid:DataGridTextCellStyle TextColor="#84898F" FontSize="15" HorizontalTextAlignment="Start" VerticalTextAlignment="Start" SelectedTextColor="Orange"  />
                    </telerikGrid:DataGridTextColumn.CellContentStyle>
                </telerikGrid:DataGridTextColumn>
                <telerikGrid:DataGridNumericalColumn PropertyName="PayRate" CanUserEdit="false" HeaderText="Pay Rate">
                        <telerikGrid:DataGridTextColumn.CellContentStyle>
                        <telerikGrid:DataGridTextCellStyle TextColor="#84898F" FontSize="15" HorizontalTextAlignment="Center" VerticalTextAlignment="Start" SelectedTextColor="Orange"  />
                    </telerikGrid:DataGridTextColumn.CellContentStyle>
                </telerikGrid:DataGridNumericalColumn>
                <telerikGrid:DataGridTextColumn PropertyName="PayType" CanUserEdit="false" HeaderText="Pay Type">
                    <telerikGrid:DataGridTextColumn.CellContentStyle>
                        <telerikGrid:DataGridTextCellStyle TextColor="#84898F" FontSize="15" HorizontalTextAlignment="Start" VerticalTextAlignment="Start" SelectedTextColor="Orange"  />
                    </telerikGrid:DataGridTextColumn.CellContentStyle>
                </telerikGrid:DataGridTextColumn>
                <telerikGrid:DataGridTemplateColumn HeaderText="" CanUserFilter="false" CanUserSort="false" CanUserGroup="false">
                    <telerikGrid:DataGridTemplateColumn.CellContentTemplate>
                        <DataTemplate>
                            <StackLayout InputTransparent="True" Orientation="Horizontal">
                                <Button Text="View" ClassId="{Binding WorkOrderId}"></Button>
                                <Button Text="Check In" ClassId="{Binding WorkOrderId}"></Button>
                            </StackLayout>
                        </DataTemplate>
                    </telerikGrid:DataGridTemplateColumn.CellContentTemplate>
                </telerikGrid:DataGridTemplateColumn>
            </telerikGrid:RadDataGrid.Columns>
        </telerikGrid:RadDataGrid>

     

     

    Here's the error:

     

      at UIKit.UILabel.set_Font (UIKit.UIFont value) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.8.0.2/src/Xamarin.iOS/UIKit/UILabel.g.cs:374 
      at Telerik.XamarinForms.Common.iOSTextPaintable.EnsureFont () [0x00047] in <82f282ae47ad41adb5d69625c03d537b>:0 
      at Telerik.XamarinForms.Common.iOSTextPainter.Measure (Telerik.XamarinForms.Common.Paintables.MeasureablePaintable paintable, Telerik.XamarinForms.Common.Painters.PurePainterContext context) [0x00022] in <82f282ae47ad41adb5d69625c03d537b>:0 
      at Telerik.XamarinForms.Common.Painters.PurePainter.Measure (Telerik.XamarinForms.Common.Paintables.MeasureablePaintable paintable) [0x00026] in <82f282ae47ad41adb5d69625c03d537b>:0 
      at Telerik.XamarinForms.DataGrid.MasterArranger.MeasureNodeContainer (System.Object container, System.Double widthConstraint) [0x00014] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.MasterArranger.MeasureVisualizable (Telerik.XamarinForms.DataGrid.Visualizable visualizable, Telerik.XamarinForms.Common.Primitives.RadSize availableSize) [0x00075] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at (wrapper delegate-invoke) System.Func`3[Telerik.XamarinForms.DataGrid.Visualizable,Telerik.XamarinForms.Common.Primitives.RadSize,Telerik.XamarinForms.Common.Primitives.RadSize].invoke_TResult_T1_T2(Telerik.XamarinForms.DataGrid.Visualizable,Telerik.XamarinForms.Common.Primitives.RadSize)
      at Telerik.XamarinForms.DataGrid.CompositeVisualizable.MeasureVisualizable (Telerik.XamarinForms.DataGrid.Visualizable visualizable, Telerik.XamarinForms.Common.Primitives.RadSize availableSize) [0x00000] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at (wrapper delegate-invoke) System.Func`3[Telerik.XamarinForms.DataGrid.Visualizable,Telerik.XamarinForms.Common.Primitives.RadSize,Telerik.XamarinForms.Common.Primitives.RadSize].invoke_TResult_T1_T2(Telerik.XamarinForms.DataGrid.Visualizable,Telerik.XamarinForms.Common.Primitives.RadSize)
      at Telerik.XamarinForms.DataGrid.Visualizable.MeasureWithInfinity () [0x00000] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.Common.LayoutControl.HorizontalLayoutControlPanelStrategy.Measure (System.Collections.Generic.IEnumerable`1[T] children, Telerik.XamarinForms.Common.Primitives.RadSize availableSize) [0x00085] in <82f282ae47ad41adb5d69625c03d537b>:0 
      at Telerik.XamarinForms.DataGrid.HorizontalLayoutControlVisualizableStrategy.Measure (Telerik.XamarinForms.Common.ObservableItemCollection`1[T] children, Telerik.XamarinForms.Common.Primitives.RadSize availableSize) [0x00000] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.CompositeVisualizable.Measure (System.Double widthConstraint, System.Func`3[T1,T2,TResult] measureVisualizableFunc) [0x00022] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.MasterArranger.MeasureVisualizable (Telerik.XamarinForms.DataGrid.Visualizable visualizable, Telerik.XamarinForms.Common.Primitives.RadSize availableSize) [0x00018] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at (wrapper delegate-invoke) System.Func`3[Telerik.XamarinForms.DataGrid.Visualizable,Telerik.XamarinForms.Common.Primitives.RadSize,Telerik.XamarinForms.Common.Primitives.RadSize].invoke_TResult_T1_T2(Telerik.XamarinForms.DataGrid.Visualizable,Telerik.XamarinForms.Common.Primitives.RadSize)
      at Telerik.XamarinForms.DataGrid.CompositeVisualizable.MeasureVisualizable (Telerik.XamarinForms.DataGrid.Visualizable visualizable, Telerik.XamarinForms.Common.Primitives.RadSize availableSize) [0x00000] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at (wrapper delegate-invoke) System.Func`3[Telerik.XamarinForms.DataGrid.Visualizable,Telerik.XamarinForms.Common.Primitives.RadSize,Telerik.XamarinForms.Common.Primitives.RadSize].invoke_TResult_T1_T2(Telerik.XamarinForms.DataGrid.Visualizable,Telerik.XamarinForms.Common.Primitives.RadSize)
      at Telerik.XamarinForms.DataGrid.Visualizable.MeasureWithInfinity () [0x00000] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.GridVisualizableStrategy.Measure (Telerik.XamarinForms.Common.ObservableItemCollection`1[T] children, Telerik.XamarinForms.Common.Primitives.RadSize availableSize) [0x00029] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.CompositeVisualizable.Measure (System.Double widthConstraint, System.Func`3[T1,T2,TResult] measureVisualizableFunc) [0x00022] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.MasterArranger.MeasureVisualizable (Telerik.XamarinForms.DataGrid.Visualizable visualizable, Telerik.XamarinForms.Common.Primitives.RadSize availableSize) [0x00018] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.MasterArranger.MeasureNodeContainer (System.Object container, System.Double widthConstraint) [0x0007c] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.MasterArranger.MeasureGridCellModel (Telerik.XamarinForms.DataGrid.GridCellModel model) [0x00026] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.MasterArranger.MeasureNode (Telerik.XamarinForms.Common.Node model) [0x0000a] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.DataGridColumn.Telerik.XamarinForms.DataGrid.IDataGridColumnDefinition.GetColumnHeaderSize (Telerik.XamarinForms.DataGrid.GridHeaderCellModel model) [0x00000] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.ColumnModelGenerator.GetSize (Telerik.XamarinForms.DataGrid.GridHeaderCellModel decorator) [0x00000] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.NodePool`2[T,K].GetSize (T decorator) [0x0001e] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.NodePool`2[T,K].GetGenerateAndDesiredThickness (System.Collections.Generic.List`1[T] models) [0x00025] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.NodePool`2[T,K].GenerateModelsForInfos (System.Collections.Generic.IList`1[T] itemInfos, Telerik.XamarinForms.DataGrid.NodePool`2+ModelGenerationContext[T,K] modelGenerationContext) [0x00086] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.NodePool`2[T,K].MeasureForward (Telerik.XamarinForms.DataGrid.NodePool`2+MeasureContext[T,K]& context) [0x00047] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.NodePool`2[T,K].MeasureHorizontally (Telerik.XamarinForms.Common.Primitives.RadSize availableSize, System.Double offset) [0x00027] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.NodePool`2[T,K].OnMeasure (Telerik.XamarinForms.Common.Primitives.RadSize availableSize, System.Double offset, System.Double verticalBuffer) [0x00036] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.GridModel.MeasureHeaderRow (Telerik.XamarinForms.Common.Primitives.RadSize newAvailableSize) [0x0000d] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.GridModel.MeasureGridInternal (Telerik.XamarinForms.Common.Primitives.RadSize availableSize) [0x00049] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.GridModel.MeasureGrid (Telerik.XamarinForms.Common.Primitives.RadSize availableSize) [0x00007] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.GridModel.ArrangeGridInternal (Telerik.XamarinForms.Common.Primitives.RadSize availableSize) [0x00000] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.GridModel.ArrangeGrid (Telerik.XamarinForms.Common.Primitives.RadSize availableSize) [0x00000] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.RadDataGrid.UpdateUI (System.Double x, System.Double y, System.Double width, System.Double height) [0x00019] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.DataGrid.RadDataGrid.OnLayoutChildrenOverride (System.Double x, System.Double y, System.Double width, System.Double height) [0x00000] in <6a37ae25f9114cee80a6c643ad913c24>:0 
      at Telerik.XamarinForms.Common.RadLayout`1[T].LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x00007] in <82f282ae47ad41adb5d69625c03d537b>:0 
      at Xamarin.Forms.Layout.UpdateChildrenLayout () [0x0014b] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:264 
      at Xamarin.Forms.Layout.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:224 
      at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:804 
      at Xamarin.Forms.VisualElement.SetSize (System.Double width, System.Double height) [0x00021] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:1043 
      at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x0005d] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:307 
      at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:706 
      at Xamarin.Forms.Layout.LayoutChildIntoBoundingRegion (Xamarin.Forms.VisualElement child, Xamarin.Forms.Rectangle region) [0x001da] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:178 
      at Xamarin.Forms.Page.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x0010d] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:189 
      at Xamarin.Forms.Page.UpdateChildrenLayout () [0x000c9] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:265 
      at Xamarin.Forms.Page.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:245 
      at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:804 
      at Xamarin.Forms.VisualElement.SetSize (System.Double width, System.Double height) [0x00021] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:1043 
      at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x0005d] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:307 
      at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:706 
      at Xamarin.Forms.Layout.LayoutChildIntoBoundingRegion (Xamarin.Forms.VisualElement child, Xamarin.Forms.Rectangle region) [0x0005f] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:147 
      at Xamarin.Forms.Page.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x0010d] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:189 
      at Xamarin.Forms.Page.UpdateChildrenLayout () [0x000c9] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:265 
      at Xamarin.Forms.Page.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:245 
      at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:804 
      at Xamarin.Forms.VisualElement.SetSize (System.Double width, System.Double height) [0x00021] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:1043 
      at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x0005d] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:307 
      at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:706 
      at Xamarin.Forms.Layout.LayoutChildIntoBoundingRegion (Xamarin.Forms.VisualElement child, Xamarin.Forms.Rectangle region) [0x0005f] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:147 
      at Xamarin.Forms.Page.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x0010d] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:189 
      at Xamarin.Forms.Page.UpdateChildrenLayout () [0x000c9] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:265 
      at Xamarin.Forms.Page.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:245 
      at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:804 
      at Xamarin.Forms.VisualElement.SetSize (System.Double width, System.Double height) [0x00021] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:1043 
      at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x0005d] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:307 
      at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:706 
      at Xamarin.Forms.Layout.LayoutChildIntoBoundingRegion (Xamarin.Forms.VisualElement child, Xamarin.Forms.Rectangle region) [0x0005f] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:147 
      at Xamarin.Forms.Page.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x0010d] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:189 
      at Xamarin.Forms.Page.UpdateChildrenLayout () [0x000c9] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:265 
      at Xamarin.Forms.Page.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:245 
      at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:804 
      at Xamarin.Forms.VisualElement.SetSize (System.Double width, System.Double height) [0x00021] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:1043 
      at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x0005d] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:307 
      at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:706 
      at Xamarin.Forms.MasterDetailPage.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x0002c] in D:\a\1\s\Xamarin.Forms.Core\MasterDetailPage.cs:161 
      at Xamarin.Forms.Page.UpdateChildrenLayout () [0x000c9] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:265 
      at Xamarin.Forms.Page.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:245 
      at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:804 
      at Xamarin.Forms.Page.OnChildMeasureInvalidated (Xamarin.Forms.VisualElement child, Xamarin.Forms.Internals.InvalidationTrigger trigger) [0x000a9] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:304 
      at Xamarin.Forms.Page.OnChildMeasureInvalidated (System.Object sender, System.EventArgs e) [0x00013] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:227 
      at Xamarin.Forms.VisualElement.InvalidateMeasureInternal (Xamarin.Forms.Internals.InvalidationTrigger trigger) [0x0000b] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:836 
      at Xamarin.Forms.VisualElement.set_IsPlatformEnabled (System.Boolean value) [0x0001c] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:559 
      at Xamarin.Forms.Platform.iOS.Platform+<>c.<.cctor>b__51_0 (Xamarin.Forms.BindableObject bindable, System.Object oldvalue, System.Object newvalue) [0x0000a] in <7402bf39df944a9ebf61606e5f9c45a4>:0 
      at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00120] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:624 
      at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00179] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:422 
      at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0003d] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:572 
      at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:122 
      at Xamarin.Forms.Platform.iOS.Platform.SetRenderer (Xamarin.Forms.VisualElement bindable, Xamarin.Forms.Platform.iOS.IVisualElementRenderer value) [0x00000] in <7402bf39df944a9ebf61606e5f9c45a4>:0 
      at Xamarin.Forms.Platform.iOS.PhoneMasterDetailRenderer.UpdateMasterDetailContainers () [0x000a4] in <7402bf39df944a9ebf61606e5f9c45a4>:0 
      at Xamarin.Forms.Platform.iOS.PhoneMasterDetailRenderer.HandlePropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00024] in <7402bf39df944a9ebf61606e5f9c45a4>:0 
      at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
      at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:173 
      at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:339 
      at Xamarin.Forms.MasterDetailPage.set_Detail (Xamarin.Forms.Page value) [0x00075] in D:\a\1\s\Xamarin.Forms.Core\MasterDetailPage.cs:47 
      at SmartTime.Views.MainPage.NavigateFromMenu (System.Int32 id) [0x0017b] in /Users/bhavinshah/_appDev/ProjectLocker/SmartSource/svn/Branch/P_353-230-756_SSRC_BS/SmartSource.Mobile/SmartTime/SmartTime/Views/MainPage.xaml.cs:63 
      at SmartTime.Views.Menu.<.ctor>b__3_0 (System.Object sender, Xamarin.Forms.SelectedItemChangedEventArgs e) [0x0005d] in /Users/bhavinshah/_appDev/ProjectLocker/SmartSource/svn/Branch/P_353-230-756_SSRC_BS/SmartSource.Mobile/SmartTime/SmartTime/Views/Menu.xaml.cs:38 
      at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.8.0.2/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1023 
      at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.8.0.2/src/Xamarin.iOS/Foundation/NSAction.cs:178 
    --- End of stack trace from previous location where exception was thrown ---

      at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
      at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.8.0.2/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
      at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.8.0.2/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
      at SmartTime.iOS.Application.Main (System.String[] args) [0x00002] in /Users/bhavinshah/_appDev/ProjectLocker/SmartSource/svn/Branch/P_353-230-756_SSRC_BS/SmartSource.Mobile/SmartTime/SmartTime.iOS/Main.cs:17 

     

     

     

  13. Didi
    Admin
    Didi avatar
    230 posts

    Posted 22 May Link to this post

    Hi Bhavin,

    We are aware of this issue and we have it logged in our Feedback portal. You can follow the item at the link below:

    https://feedback.telerik.com/xamarin/1410116-datagrid-ios-a-nullreferenceexception-is-thrown-when-trying-to-load-the-telerik-font

    Workaround:

    You could use the following workaround: Access anything from the TelerikFont class before the InitializeComponent of the page, for example:

    public MainPage()
    {
      TelerikFont.GetUseEmbeddedFont(this);
      
      InitializeComponent();

    I hope I was helpful.

    Regards,
    Didi
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top