locked
Mulitple resource file accessing from XAML file with x:Uid

    Question

  • Hi ,

    I want to use the multiple resources file in my app to manage the string resources and control properties and access those resources file  from XAML file using the ID like x:Uid="abc" , can we do this in Windows 8.1 and do you have any example.

    Thanks,

    Rajeev

    Tuesday, April 8, 2014 8:26 PM

Answers

  • Hi,

    You can also load string resources with mutiple resources file:

    For example:

    Filename:

    Strings/en-US/Errors.resw

    <TextBlock x:Uid="/Errors/AlreadyRegistered"></TextBlock

    The resource identifier is of the form /ResourceFileName/StringName.

    Please refer to the link below:

    http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh965323.aspx

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; 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.

    Thursday, April 10, 2014 8:18 AM
  • Thanks,

    That was the one I was looking for, it worked.

    Rajeev

    • Marked as answer by Rajeev BR Thursday, April 10, 2014 1:31 PM
    Thursday, April 10, 2014 1:31 PM

All replies

  • Hi,

    You can do this in windows 8.1. Please see the link below:

    http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh965329.aspx

    http://msdn.microsoft.com/en-us/library/windows/apps/Hh758297.aspx

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; 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.

    Wednesday, April 9, 2014 3:28 AM
  • Hi, 

    I am looking for multiple resource files, not just Resources.resw file . If Create another resource file like "TestREsources.resw " , I want to access the another resource file from XAML file using "x:Uid=abc"  not from the  Resources.resw .

    Thanks,

    Rajeev

    Wednesday, April 9, 2014 1:37 PM
  • Hi,

    You can also load string resources with mutiple resources file:

    For example:

    Filename:

    Strings/en-US/Errors.resw

    <TextBlock x:Uid="/Errors/AlreadyRegistered"></TextBlock

    The resource identifier is of the form /ResourceFileName/StringName.

    Please refer to the link below:

    http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh965323.aspx

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; 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.

    Thursday, April 10, 2014 8:18 AM
  • Thanks,

    That was the one I was looking for, it worked.

    Rajeev

    • Marked as answer by Rajeev BR Thursday, April 10, 2014 1:31 PM
    Thursday, April 10, 2014 1:31 PM