locked
Read Resource Dictionary defined from .xaml file

    Question

  • Hi Developer

    I have defined DataTemplate in ResourceDictionary in metro apps.

    In one of the Windows desktop app, I have to read each DataTemplate and show in UI.

    Could you please help me if you have any idea/sample code?

    BR

    Suresh

    Saturday, March 22, 2014 7:57 AM

Answers

  • Hi Suresh,

    You mean you want to read the DataTemplate from a Desktop application? It's kind of out of scope of this forum.

    Basically xaml is a extension of XML format and you can work together with C# XML read/write technology, you could get the XML reading answer from C# forum.

    But note that the app folder is not accessible except some specific users. Before you wish to read data from installation folder, make sure you have a correct permission.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, March 24, 2014 4:08 AM
    Moderator