예제 #1
0
        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);
        }
예제 #2
0
 public ReactivePropertyValueQuickFix(XamlMissingReactivePropertyValueHighlighting highlighting)
 {
     _reference = highlighting.Reference as IMarkupPropertyReference;
 }