DISQUS

DISQUS Hello! Huddled Masses is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Huddled Masses

Joel Bennett's development blog...
Jump to original thread »
Author

XamlReader and Resource Library fonts in WPF

Started by Jaykul · 9 months ago

Microsoft has provided some very good documentation on how to package fonts with WPF applications, and I’ve been following it in several different ways in different apps I’ve written. Recently I provided a feature in Posh Console which allows you to load the startup ba ... Continue reading »

4 comments

  • Have you posted a question about the font problem to the wpf forum (http://robrelyea.com/wpf/forum)?
    XamlReader runs under partial trust when running in an XBAP, but not when running in a normal application.

    Thanks, Rob

    Rob Relyea | Program Manager, WPF & Xaml Language Team
    robrelyea.com | /blog | /wpf | /xaml
  • Well, good. That means it's a resource path problem then, which is what I was starting to lean toward anyway, after playing with it more this morning ... I guess I'd have to call that a bug then.
  • I have externalized xaml similar to your StartupBanner.xaml but need it to contain binding to data somehow - I have not been able to get this to work - wondered if you might have in your travels
  • bq. I have externalized xaml similar to your StartupBanner.xaml but need it to contain binding to data somehow – I have not been able to get this to work – wondered if you might have in your travels.

    I think that the same method I described should basically work – I mean, I’m basically binding the style to a resource, it’s actually in the xaml as a DynamicResource. As long as you can make your data binding work with a DynamicResource, you should be able to use a simple modification of this? Do you want to give me a more concrete example?

Add New Comment

Returning? Login