How to Hide a Window in WPF
-
2012年4月21日 5: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
全部回复
-
2012年4月21日 6:22版主
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
- 已建议为答案 Julie SheetsMVP, Moderator 2012年4月21日 14:17
- 已标记为答案 Sapna Shukla - Project MVPMVP, Moderator 2012年4月23日 6:33