PropertyPath for Custom Binding in XAML not resolved

Hi,

Consider the Custom Binding path resolution intellisense:
http://blog.jetbrains.com/dotnet/2012/10/22/resharper-71-xaml-support-refresh/
http://youtrack.jetbrains.com/issue/RSRP-230607

According to the above resolution should succeed, but using the following custom binding fails:
http://blog.jetbrains.com/dotnet/2012/10/22/resharper-71-xaml-support-refresh/
CustomBinding.png
I also tried decorating it with MarkupExtensionReturnType(typeof(Properties.Settings)).

Thanks!

7 comments
Comment actions Permalink

Hello Yosi,

  Could you please specify what ReSharper version you use - ReSharper | Help | About JB ReSharper | Copy>>?

Thanks!

0
Comment actions Permalink

It's Resharper 8 and I always install new updates when I'm notified, so I'm guessing it's the latest build. I can verify this when I get home if necessary.
Visual Studio 2013, Windows 8.1 (all recent updates to both).

Thanks!

0
Comment actions Permalink

Here is the full version information:

JetBrains ReSharper 8.2 Full Edition
Build 8.2.0.2160 on 2014-03-20T16:53:08

Licensed to: [Removed]
Plugins: 1
#1. “NuGet support for ReSharper” v1.3.0.16602 by JetBrains
Visual Studio 12.0.30501.0.

Copyright © 2003–2014 JetBrains s.r.o. All rights reserved.

0
Comment actions Permalink

Hello Yosi,

  Thanks for the info.

  Are you able to send me a sample solution which will demonstrate the issue? I was not able to reproduce the same behavior.

Thanks!

0
Comment actions Permalink

Hi Alexander,

I've created a sample solution here:
https://www.sendspace.com/file/vm9p1i

Look at:
MainWindow.xaml

And look at the warning in the line
<TextBlock Text="{wpfApplication1:SettingsBinding Foo}">

(note that the binding succeeds!)

Thanks!

0
Comment actions Permalink

Hi!

Unfortunately, we do not support custom binding that changes data context somehow.
We only support custom bindings with extra behavior, like handling null values and etc.
[MarkupExtensionReturnType] has nothing to do with DataContext type infered by R#, it only tells the type of values returned by {SettingsBinding} itself.

Maybe we should introduce new external annotation to handle your scenario, so you will be able to specify static data context type for custom binding markup extensions.
Please, create issue here: http://youtrack.jetbrains.com/newIssue?project=RSRP&clearDraft=true&c=Type+Feature&c=Fix+versions+9.0&c=Subsystem+XAML&c=Assignee+shvedov

Thanks!

0
Comment actions Permalink

Thanks Alexander,

I opened the following issue:
http://youtrack.jetbrains.com/issue/RSRP-418642

0

Please sign in to leave a comment.