[WPF, .NET 4, VS2012, R#7] Custom markup extension and IntelliSense

We use a number of custom MarkupExtentension which act as shortcuts and most
of them merely set predefined converters, like in this example:

Visibility=""

The problem with this is the fact that the IntelliSense of R# does not work
in this case. R# does not recognize SomeBool. If I rewrite this using a
standard binding and a converter:

Visibility="{Binding SomeBool, Converter=...}"

R# will happily perform code completion on SomeBool using the current
DataContext.

Our markup extensions are derived from MarkupExtension, but even deriving
them from the Binding class makes no difference. Is support for
MarkupExtensions limited to the standard MarkupExtensions? How can we get
IntelliSense on our own MarkupExtensions?

Kind regards,
Henning

3 comments
Comment actions Permalink

Bump... Anyone?

Found this:
http://stackoverflow.com/questions/5265281/how-to-make-resharper-resolve-path-for-custombinding-markupextension

And this: http://youtrack.jetbrains.com/issue/RSRP-230607

The later one dates back to March 2011. Marked critical in R#5, but no
solution up to now.

Kind regards,
Henning

0
Comment actions Permalink

The stack overflow thread contains an answer

Actually it's not possible in current versions of R# and, unfortunately, still be missing feature of upcoming R# 6.1 release.

This feature requires a lot of infrastructure changes, but it's on our list and definitely will be implemented in R# 7. Seems like

[CustomBindingMarkup]
and
[BindingPath]
(for
path
constructor parameter and the
Path
property) attributes will be introduced.

We really apologize for any inconvenience.

Is this implemented perhaps?

0
Comment actions Permalink

As of 7.0, this is not implemented, AFAIK.

Kind regards,
Henning

0

Please sign in to leave a comment.