locked
DynamicResource does not work on Header property Menu control? RRS feed

  • Question

  • Hi all of you,

    i am writing different resource for face multilingual issue. Well, this is my Styles_Spanish.xaml file:

    <ResourceDictionary

      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

        xmlns:system="clr-namespace:System;assembly=mscorlib"

      xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"

      xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"

      xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit"

      xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input">

       

       

        <system:String x:Key="Estadistica_menu">Estadísticas</system:String>

        <system:String x:Key="Procesos">Procesos</system:String>

    And this is my XAML page...

    <MenuItem Header="{DynamicResource Estadistica_menu}" FontFamily="Trebuchet MS"......

    I get this warning: Estadistica_menu resource could not be resolved

    Then the header is empty.. Where am I failing?

    Thanks a lot,


    Primary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF and SilverLight stuff

    Friday, May 17, 2013 4:48 PM

Answers

All replies