public void SetUser(UserObj user) { Trace.WriteLine(string.Format("user.userName = {0}, user.userIco = {1}", user.userName, user.userIco)); this.UserName.Content = user.userName; // this.UserIco.Source = user.userIco; //delay image source creating until last possible moment this.UserIco.Source = Constants.PathToSource(Constants.Paths_Images.getImagesUserIconsPath() + user.userIco); }
public void SetUser(UserObj user) { this.userName.Content = user.userName; this.userImg.Source = Constants.PathToSource(Constants.Paths_Images.getImagesUserIconsPath() + user.userIco); }