public DetailWordItem(Word word) { InitializeComponent(); ++itemCounter; if(deselectedBrush == null) { deselectedBrush = wordTextblock.Foreground as SolidColorBrush; selectedBrush = new SolidColorBrush(Color.FromArgb(255, 100, 100, 255)); } this.value = word; wordTextblock.Text = word.ToDetailString(); descriptionTextblock.Text = word.ToDescriptionString(); }
public void Update(Word word) { wordTextblock.Text = word.ToDetailString(); descriptionTextblock.Text = word.ToDescriptionString(); }