コード例 #1
0
        private void SelectItem(ThumbnailItem newChild)
        {
            if (_lastSelectedChild != null)
            {
                _lastSelectedChild.ClearValue(BackgroundProperty);
            }

            if (newChild != null)
            {
                newChild.SetBinding(BackgroundProperty, new Binding("SelectedBrush")
                {
                    Source = this
                });
            }
            _lastSelectedChild = newChild;
        }
コード例 #2
0
ファイル: Thumbnails.cs プロジェクト: mdjabirov/C1Decompiled
        private void SelectItem(ThumbnailItem newChild)
        {
            if (_lastSelectedChild != null)
            {
                _lastSelectedChild.ClearValue(BackgroundProperty);
            }

            if (newChild != null)
            {
                newChild.SetBinding(BackgroundProperty, new Binding("SelectedBrush") { Source = this });
            }
            _lastSelectedChild = newChild;
        }