Bug with localization inside ControlTemplate / DataTemplate RRS feed

  • Question

  • I have a problem with localization of my application. I have the following code:

    <Style x:Key="SomeButtonStyle" TargetType="Button"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button">


    <TextBlock x:Uid="TextBlock_In_SomeButtonStyle"/>

    </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style>

    And inside my *.resw file I have localization string for TextBlock_In_SomeButtonStyle.Text. But in runtime text in TextBlock not localized.

    According to this topic this is known problem with localization inside DataTemplate | ControlTemplate. I want to know status of this bug... is it already fixed ?

    Wednesday, February 12, 2014 12:48 PM


  • Hi Rumyancev,

    The previous topic you link was from the early Developer Preview of Windows 8. As noted in the thread that bug was fixed before release.

    I just confirmed with current versions of Windows 8.1 that your style works as I expect. I created a Button with SomeButtonStyle and created a TextBlock_In_SomeButtonStyle.Text mapping in my Resources.resw file. The Button appeared with the value from the Resources.resw file.


    Wednesday, February 12, 2014 11:19 PM