How to Hide a Window in WPF
-
21 aprilie 2012 05:01
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............
Thnx
Toate mesajele
-
21 aprilie 2012 06:22Moderator
Please post your query on an appropriate Forum, this Forum is specific to MS Project. Search in Forums home : http://social.technet.microsoft.com/Forums/en-US/categoriesSapna S
- Propus ca răspuns de Julie SheetsMVP, Moderator 21 aprilie 2012 14:17
- Marcat ca răspuns de Sapna Shukla - Project MVPMVP, Moderator 23 aprilie 2012 06:33