'Unknown' is not a valid value for property 'FontFamily'

Heiko 1,211 Reputation points
2022-01-12T13:06:05.11+00:00

In some installations of my UWP app an unhandled exception is thrown with the text

'Unknown' is not a valid value for property 'FontFamily'.
HResult: 0x800F1001

There is a font selection available for the user in various places in the app.
Does anyone have any idea how the error can occur and how I could fix it?

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Heiko 1,211 Reputation points
    2022-01-13T12:54:22.227+00:00

    I can now reproduce the exception: If I pass null to a FontFamily property via x:Bind instead of a FontFamily object, I get this message. When using x:Bind you should not pass null.

    1 person found this answer helpful.