Page 1 of 1

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

Posted: Tue Nov 22, 2016 10:37 pm
by oprakash
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