I have written a user control which is not compatible with cultures other than "en-US". Also it is inevitable to embed this user control in an application with a culture which is not "en-US". So is it possible to force the application to not to change this user control's culture?
Its preferable to have a solution inside the user control.
I have read this thread :
Localizing a WinForms Application with Embedded WPF User Controls
but I can not use WpfLocalization.LocalizationScope.SetCulture
Does this function really exists ?
And also there is a Localizable tag which can be set to False but It is just for resource definitions in .csproj files: http://msdn.microsoft.com/en-us/library/ms788718.aspx
So is there anybody who has any idea about this problem ?
More clarification :
Suppose we have an application with culture X and a user control which is compatible with culture "en-US". This user control has a dependency property which is of DateTime type and it is getting its value by this way :
<my:uc1 x:Name="UserControl1" Date="4234/12/22" />
When application culture is "en-US" user control will get "4234/12/22" but when the application culture is something else, it converts "4234/12/22" automatically to the application's own calendar and delivers "0744/04/08" to the user control and ruins every logic behind the user control ! It's completely a disaster.
I want to prevent this conversion by setting the user control's culture exclusively to "en-US".
Hope that I have clarified the situation enough.