How to Hide a Window in WPF
-
Saturday, 21 April 2012 5:01 AM
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
All Replies
-
Saturday, 21 April 2012 6:22 AMModerator
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
- Proposed As Answer by Julie SheetsMVP, Moderator Saturday, 21 April 2012 2:17 PM
- Marked As Answer by Sapna Shukla - Project MVPMVP, Moderator Monday, 23 April 2012 6:33 AM