Click here to Skip to main content
15,889,200 members
Home / Discussions / C#
   

C#

 
Questioncreating multiple events in C# Pin
anilv202015-Apr-14 0:28
anilv202015-Apr-14 0:28 
AnswerRe: creating multiple events in C# Pin
Simon_Whale15-Apr-14 0:40
Simon_Whale15-Apr-14 0:40 
AnswerRe: creating multiple events in C# PinPopular
Pete O'Hanlon15-Apr-14 0:57
mvePete O'Hanlon15-Apr-14 0:57 
QuestionRegarding sending message using c# Pin
Member 1075021214-Apr-14 23:46
Member 1075021214-Apr-14 23:46 
AnswerRe: Regarding sending message using c# Pin
Richard MacCutchan15-Apr-14 1:34
mveRichard MacCutchan15-Apr-14 1:34 
GeneralRe: Regarding sending message using c# Pin
Member 1075021215-Apr-14 3:19
Member 1075021215-Apr-14 3:19 
GeneralRe: Regarding sending message using c# Pin
Wes Aday15-Apr-14 3:58
professionalWes Aday15-Apr-14 3:58 
QuestionLocalization in WPF MVVM Pin
sifi mohamed amine14-Apr-14 23:41
sifi mohamed amine14-Apr-14 23:41 
Hi ,
I need to change culture mainly between two languages ; italian and English using the Combobox in WPF MVVM.
I tried to databind the ViewModel with my Mainview but I didn't succeed.
I will be so thankful if someone could help.

Here is my Combobox declaration in xaml :
HTML
<ComboBox IsEditable="True" Text="Language" HorizontalAlignment="Right" VerticalAlignment="Top" Width="95"  Margin="34,21,34,0" ItemsSource="{Binding Languages}" SelectedItem="{Binding SelectedLanguage, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Foreground="#FF434C64" removed="Green" Height="24.96"  />


Here is View Model definition :

C#
public void ChangeLanguage()
         {
             if (SelectedLanguage == "en")
             {
                 Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en");

             }
             else
             if (SelectedLanguage == "it-IT")
             {
                 Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("it-IT");
             }

         }



Here the declaration within the construcor of my View Model




C#
public ViewModel()
       {

           LoadData();
           ChangeLanguage();

           Login = new DelegateCommand(this.Logging, delegate()
           {
               return (!String.IsNullOrEmpty(Username) && !String.IsNullOrEmpty(Password) && !String.IsNullOrEmpty(Email));
           });
           Register = new DelegateCommand(this.Registering, delegate()
           {

          return (!String.IsNullOrEmpty(Username) && !String.IsNullOrEmpty(Password) && !String.IsNullOrEmpty(Email));



       });

SuggestionRe: Localization in WPF MVVM Pin
Richard Deeming15-Apr-14 2:08
mveRichard Deeming15-Apr-14 2:08 
QuestionRetriving user information in a .aspx page Pin
krish099114-Apr-14 20:47
krish099114-Apr-14 20:47 
AnswerRe: Retriving user information in a .aspx page PinPopular
OriginalGriff14-Apr-14 21:11
mveOriginalGriff14-Apr-14 21:11 
Questionhow to mange seat booking for online movir ticket booking Pin
Member 1032370414-Apr-14 19:06
Member 1032370414-Apr-14 19:06 
AnswerRe: how to mange seat booking for online movir ticket booking Pin
Peter Leow14-Apr-14 19:28
professionalPeter Leow14-Apr-14 19:28 
AnswerRe: how to mange seat booking for online movir ticket booking Pin
Bernhard Hiller14-Apr-14 22:38
Bernhard Hiller14-Apr-14 22:38 
QuestionSimple calculation with double or float numbers Pin
Mario 5614-Apr-14 13:13
Mario 5614-Apr-14 13:13 
AnswerRe: Simple calculation with double or float numbers Pin
Dave Kreskowiak14-Apr-14 15:13
mveDave Kreskowiak14-Apr-14 15:13 
GeneralRe: Simple calculation with double or float numbers Pin
Mario 5615-Apr-14 2:31
Mario 5615-Apr-14 2:31 
GeneralRe: Simple calculation with double or float numbers Pin
Dave Kreskowiak15-Apr-14 14:36
mveDave Kreskowiak15-Apr-14 14:36 
AnswerRe: Simple calculation with double or float numbers Pin
harold aptroot14-Apr-14 21:38
harold aptroot14-Apr-14 21:38 
GeneralRe: Simple calculation with double or float numbers Pin
Mario 5615-Apr-14 2:43
Mario 5615-Apr-14 2:43 
GeneralRe: Simple calculation with double or float numbers Pin
harold aptroot15-Apr-14 2:48
harold aptroot15-Apr-14 2:48 
QuestionI can not add record to my table Pin
ehabaziz200114-Apr-14 8:37
ehabaziz200114-Apr-14 8:37 
SuggestionRe: I can not add record to my table Pin
Richard Deeming14-Apr-14 8:53
mveRichard Deeming14-Apr-14 8:53 
GeneralRe: I can not add record to my table Pin
ehabaziz200117-Apr-14 11:52
ehabaziz200117-Apr-14 11:52 
QuestionHow to reuse event Pin
Member 1034709214-Apr-14 4:30
Member 1034709214-Apr-14 4:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.