protected override void Run(IBindingMarkup element, ElementProblemAnalyzerData data, IHighlightingConsumer consumer) { var reference = GetMarkupPropertyReference(element); if (reference == null) { return; } var scalarType = GetCSharpPropertyScalarType(reference); if (scalarType == null || IsSuperTypeByClrName(ReactivePropertyInterface, scalarType) == false) { return; } var highlighting = new XamlMissingReactivePropertyValueHighlighting(reference); consumer.AddHighlighting(highlighting); }
public ReactivePropertyValueQuickFix(XamlMissingReactivePropertyValueHighlighting highlighting) { _reference = highlighting.Reference as IMarkupPropertyReference; }