Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Windows;
|
---|
6 | using System.Diagnostics;
|
---|
7 |
|
---|
8 | namespace Microsoft.Research.DynamicDataDisplay.Common
|
---|
9 | {
|
---|
10 | [DebuggerDisplay("Count = {Cache.Count}")]
|
---|
11 | public sealed class VisualBindingCollection
|
---|
12 | {
|
---|
13 | private Dictionary<IPlotterElement, UIElement> cache = new Dictionary<IPlotterElement, UIElement>();
|
---|
14 |
|
---|
15 | internal Dictionary<IPlotterElement, UIElement> Cache
|
---|
16 | {
|
---|
17 | get { return cache; }
|
---|
18 | }
|
---|
19 |
|
---|
20 | public UIElement this[IPlotterElement element]
|
---|
21 | {
|
---|
22 | get { return cache[element]; }
|
---|
23 | }
|
---|
24 |
|
---|
25 | public bool Contains(IPlotterElement element)
|
---|
26 | {
|
---|
27 | return cache.ContainsKey(element);
|
---|
28 | }
|
---|
29 | }
|
---|
30 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.