How to Use "Resource File(.resx)" file in cshtml5.

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
oprakash
Posts: 4
Joined: Tue Nov 22, 2016 10:06 pm

How to Use "Resource File(.resx)" file in cshtml5.

Postby oprakash » Tue Nov 22, 2016 10:37 pm

I have a .resx file Namely "Labels.resx" Which is in a separate folder called "Resources". I register this file on app.xaml file as below.
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Resources/Labels.resx"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>


Then try to use on a .XMAL file like
<TextBlock x:Name="lblSelectRole" Text="{Binding ManageStaff_lblSelectRole, Source={StaticResource ResourceString}}"
Grid.Row="0" Grid.Column="8" />

'ManageStaff_lblSelectRole " I have defined Lable.resx file which is not coming when we run the page.

Please Help
Thanks

Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 33 guests

 

 

cron