Задайте вопросЗадайте вопрос
 

ОтвеченоIs there to store an encoded PNG in a Canvas?

Ответы

  • 1 июля 2009 г. 20:02Jonathan.Peppers Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    If you are serializing Xaml, I don't think you're going to be able to store images inside there.

    A better option would be to save all of your images in a seperate file (in a format of your choice or even as loose files).

    So you would have YourSerializedXaml.xaml and YourSerializedXaml.IMGS or something of that nature, and you would just have to manually load your images and stick them in as StaticResources.

    This is not an easy task I would say.  I'm not sure if the Xaml serializer will keep StaticResource names for images inside Xaml or not.
    • Помечено в качестве ответаerick.thompson 2 июля 2009 г. 21:53
    •  

Все ответы