/// <summary> /// Default constructor. Optionally can change the /// </summary> /// <param name="userData"></param> /// <param name="subtile"></param> public QuestionaireWindow(ref UserData userData, string subtile = "") { InitializeComponent(); this.userData = userData; this.lblWelcome.Content = $"Hey, {userData.FirstName}."; if (subtile == string.Empty) { this.lblWelcome2.Content = $"Please finish the questionnaire " + $"to personalize your experience."; this.lblWelcome2.Foreground = (SolidColorBrush) new BrushConverter().ConvertFrom("#FF7DA671"); } else { this.lblWelcome2.Content = $"{subtile}"; this.lblWelcome2.Foreground = (SolidColorBrush) new BrushConverter().ConvertFrom("#FFDE7575"); } WindowSettings ws = new WindowSettings(); ws.CenterWindowOnScreen(this); }