How to Hide a Window in WPF RRS feed

  • Question

  •  I want that my  Application Should Have Functionality of Localization in WPF.

    I m using Resources File For that language Conversion.

    If a want that My Controls behave Dynamic According to the Reqirement , I have Used Control Like This in WPF....

      <Label x:Name="Label2" Grid.Column="3" Margin="149,70,-3,0" Width="120" Content="{x:Static properties:Resources.Label2}"></Label>

    and  I  have a ComboBox in My HeaderUserControl  and If I Select Hindi From ComboBox  the  Label2's Text Should Convert in Hindi Text.

    For that.....

      void cbx_SelectionChanged(object sender, SelectionChangedEventArgs e)



                 str = cbx.SelectedItem.ToString();
                if (str != "Select".Trim())

                               if (str == "हिंदी".Trim())
                                           Lang = "hi-IN";

                        Properties.Resources.Culture = new CultureInfo(Lang);



     But Its Not Working   , But If I Place 

      Properties.Resources.Culture = new CultureInfo("hi-IN");

    inside the Constructor its Working Fine.

    But I want that Functionality on the SelectionChangeEvent Of ComboBox............


    Saturday, April 21, 2012 5:01 AM