Implemented interface member:
4 writes to
PresentationFramework.Tests (4)
System\Windows\ResourceDictionaryTests.cs (4)
113
textBlock.Resources
[
key] = brush;
127
textBlock.Resources
[
key] = initialBrush;
133
textBlock.Resources
[
key] = updatedBrush;
150
textBlock.Resources
[
key] = initialBrush;
23 references to
Microsoft.VisualStudio.LanguageServices (3)
FindReferences\Entries\DocumentSpanEntry.cs (1)
131
if (properties
[
"Background"] is Brush highlightBrush)
InheritanceMargin\InheritanceGlyphManager.cs (1)
224
var backgroundColor = (Color)resourceDictionary
[
EditorFormatDefinition.BackgroundColorId];
ValueTracking\ValueTrackingTreeViewModel.cs (1)
90
HighlightBrush = properties
[
"Background"] as Brush;
PresentationFramework (10)
System\Windows\Application.cs (2)
271
resource = resources
[
resourceKey];
304
resource = resources
[
resourceKey];
System\Windows\Controls\Primitives\CalendarItem.cs (1)
176
_dayTitleTemplate = Template.Resources
[
DayTitleTemplateResourceKey] as DataTemplate;
System\Windows\FrameworkElement.cs (1)
1594
object candidate = table
[
keys[k]];
System\Windows\ResourceDictionary.cs (6)
1451
return this
[
key];
1455
return new DeferredResourceReferenceHolder(key, this
[
key]);
2180
object value = _owner
[
key];
2197
return _owner
[
_keysEnumerator.Current];
2228
return _owner
[
_keysEnumerator.Current];
2292
array.SetValue(_owner
[
key], index++);
PresentationFramework.Tests (10)
System\Windows\ResourceDictionaryTests.cs (10)
25
_dictionary
[
"StaticBrush"].Should().BeOfType<SolidColorBrush>();
32
_dictionary
[
"DynamicBrush"].Should().BeAssignableTo<Brush>();
39
_dictionary
[
"GradientBackground"].Should().BeOfType<LinearGradientBrush>();
47
var style = _dictionary
[
"PrimaryButtonStyle"] as Style;
58
var style = _dictionary
[
"PrimaryButtonStyle"] as Style;
74
_dictionary
[
"ItemTemplate"].Should().BeOfType<DataTemplate>();
81
_dictionary
[
"CustomControlTemplate"].Should().BeOfType<ControlTemplate>();
87
var baseStyle = _dictionary
[
"BaseTextBlockStyle"] as Style;
88
var derivedStyle = _dictionary
[
"DerivedTextBlockStyle"] as Style;
98
var style = _dictionary
[
"MultiTriggerStyle"] as Style;