“Refresh” WPF Behavior

  Kiến thức lập trình

I’ve got some localization code like this:

<TextBlock Grid.Row="1" 
        Grid.Column="1"
        Text="Cancel"
        beh:LocalizationBehavior.LocalizationKey="{x:Static const:LocalizationKeys.DlgCancelButtonCaption}"/>

The behavior calls a static service which looks up the translation. It works fine on first load.

But, when the user changes the selected language is there some way to get the behavior to ‘refresh’, or re-evaluate?

Thanks

1

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT