コード例 #1
0
        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();
        }
コード例 #2
0
 public void Update(Word word)
 {
     wordTextblock.Text = word.ToDetailString();
     descriptionTextblock.Text = word.ToDescriptionString();
 }