Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-289612: Not showing use of XAML {Binding} against a CLR property as an error

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Mar 8, 2012 10:42:12 PM
Updated Mar 8, 2012 10:42:12 PM
Priority Normal
Type Feature
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions 6.1
Fixed in build No Fixed in build
This XAML has a problem which is not shown by R#. You cannot set a binding on a non-dependency property. Currently this only fails at runtime, but it should be easy to flag as an error, right? ;-)

<m:MyClass MyProperty="{Binding Path=Foo}" />

public class MyClass : UserControl {
    public int MyProperty { get; set; }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>