public UserControl_Guess(UserControl_Passive passiv) { this.activateTuto = false; InitializeComponent(); Console.WriteLine("constructor2"); DataContext = new Guess_ViewModel(this); this.PassiveView.Children.Add(passiv); }
public UserControl_Guess(StateUpdate_Model stateUpdate, HomePage_ViewModel homePageViewModel) { thirdGess = false; this.activateTuto = false; InitializeComponent(); DataContext = new Guess_ViewModel(this); this.PassivViewGuess = new UserControl_Passive(stateUpdate, homePageViewModel); this.PassiveView.Children.Add(this.PassivViewGuess); //if (stateUpdate.attemptLeft == 0) // this.GuessButton.IsEnabled = false; }