static KnownTypeHelper() { KnownTypeHelper helper = new KnownTypeHelper(); System.Windows.Markup.XamlReader.BamlSharedSchemaContext.ThemeKnownTypeHelpers.Add(helper); }