Click here to Skip to main content
15,889,096 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF TextBlock Trigger Question Pin
Kevin Marois24-Apr-14 8:53
professionalKevin Marois24-Apr-14 8:53 
GeneralRe: WPF TextBlock Trigger Question Pin
BubingaMan4-May-14 22:48
BubingaMan4-May-14 22:48 
QuestionI need develop Deepzoom fitBounds Method Pin
joajngwon23-Apr-14 19:58
joajngwon23-Apr-14 19:58 
QuestionWPF MVVM Set Focus Pin
Kevin Marois23-Apr-14 17:46
professionalKevin Marois23-Apr-14 17:46 
QuestionChange application language at Runtime Pin
sifi mohamed amine15-Apr-14 5:40
sifi mohamed amine15-Apr-14 5:40 
SuggestionRe: Change application language at Runtime Pin
Richard Deeming15-Apr-14 5:53
mveRichard Deeming15-Apr-14 5:53 
AnswerRe: Change application language at Runtime Pin
Andy41119-May-14 2:56
Andy41119-May-14 2:56 
QuestionLocalization in WPF MVVM Pin
sifi mohamed amine14-Apr-14 23:42
sifi mohamed amine14-Apr-14 23:42 
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));



       });

AnswerRe: Localization in WPF MVVM Pin
Vincent Beek16-Apr-14 6:57
Vincent Beek16-Apr-14 6:57 
QuestionUpdating Composition Tree from Visual Tree Pin
Ronald M. Martin14-Apr-14 12:18
Ronald M. Martin14-Apr-14 12:18 
QuestionHow to add all recommended icon sizes to WPF desktop application? Pin
Matt T Heffron14-Apr-14 11:49
professionalMatt T Heffron14-Apr-14 11:49 
AnswerRe: How to add all recommended icon sizes to WPF desktop application? Pin
Matt T Heffron14-Apr-14 13:44
professionalMatt T Heffron14-Apr-14 13:44 
QuestionHow to get TreeView SelectedItem/Value? Pin
BeeDev11-Apr-14 10:52
BeeDev11-Apr-14 10:52 
AnswerRe: How to get TreeView SelectedItem/Value? Pin
SledgeHammer0111-Apr-14 12:14
SledgeHammer0111-Apr-14 12:14 
GeneralRe: How to get TreeView SelectedItem/Value? Pin
BeeDev14-Apr-14 3:48
BeeDev14-Apr-14 3:48 
GeneralRe: How to get TreeView SelectedItem/Value? Pin
SledgeHammer0114-Apr-14 4:53
SledgeHammer0114-Apr-14 4:53 
AnswerRe: How to get TreeView SelectedItem/Value? Pin
Mycroft Holmes11-Apr-14 13:41
professionalMycroft Holmes11-Apr-14 13:41 
AnswerRe: How to get TreeView SelectedItem/Value? Pin
USAFHokie8016-Apr-14 8:55
USAFHokie8016-Apr-14 8:55 
AnswerRe: Overlay Tree view expander icon on the content Pin
SledgeHammer018-Apr-14 13:26
SledgeHammer018-Apr-14 13:26 
GeneralRe: Overlay Tree view expander icon on the content Pin
SledgeHammer019-Apr-14 4:02
SledgeHammer019-Apr-14 4:02 
GeneralRe: Overlay Tree view expander icon on the content Pin
SledgeHammer019-Apr-14 4:04
SledgeHammer019-Apr-14 4:04 
QuestionSetting BitmapImage.UriSource in a XAML file read with XamlReader [VB][WPF] Pin
Jayme655-Apr-14 22:08
Jayme655-Apr-14 22:08 
QuestionHow can we integrate HTML Help files with Table Of Contents into an WPF application developing (C#.NET.) Pin
Adarsh Balachandran4-Apr-14 23:15
Adarsh Balachandran4-Apr-14 23:15 
AnswerRe: How can we integrate HTML Help files with Table Of Contents into an WPF application developing (C#.NET.) Pin
Gerry Schmitz7-Apr-14 12:04
mveGerry Schmitz7-Apr-14 12:04 
AnswerRe: DataTemplate selection using a property Pure XAML Pin
SledgeHammer013-Apr-14 13:13
SledgeHammer013-Apr-14 13:13 

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.