Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6727999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:07:01+00:00 2026-05-26T10:07:01+00:00

I want to create some extended Binding-Markup-Extension, which behaves just like a normal WPF-Binding

  • 0

I want to create some extended Binding-Markup-Extension, which behaves just like a normal WPF-Binding but does some things more (use different defaults, maybe add some behavior, etc.).
Code looks like this:

public class CustomBindingExtension : Binding
{
  .. some extra properties and maybe overrides ...
}

It all works fine including XAML-intellisense, except I just can’t make Resharper resolve my Binding-Path correctly.
I.e.: using this code I can [Strg]+Click on ‘CurrentText’ and Resharper lets vs2010 navigate to the code defining the CurrentText-Property.

<UserControl x:Name="uc" ...>
  <TextBox Text="{Binding ViewModel.CurrentText, ElementName=uc}" />
</UserControl>

But using my binding, which works correctly at runtime, I just get a Tooltip when hovering ‘CurrentText’ telling me it is some ‘MS.Internal.Design.Metadata.ReflectionTypeNode’, and no navigation via [Strg]+Click.

<UserControl x:Name="uc" ...>
  <TextBox Text="{util:CustomBinding ViewModel.CurrentText, ElementName=uc}" />
</UserControl>

I tried the following things:

  • Derive from Binding
  • Derive from BindingDecoratorBase
  • Leave out the ‘Extension’ suffix for my CustomBinding-class
  • put the Markup-Extension in a separate assembly
  • Use ConstructorArgumentAttribute
  • Property of type string and type PropertyPath for the Path-Property
  • I also looked at the original classes Binding and BindingBase, but could not find any more difference to my code.
    Any ideas what should help here?
    Or is this just a special treatment of the Binding-MarkupExtension which I can in no way get for my own MarkupExtensions?

    Update 16.03.2011: Might also be bug or deficiency of Resharper, Jetbrains is investigating the issue: http://youtrack.jetbrains.net/issue/RSRP-230607

    Update 10.12.2013: Meanwhile, the feature seems to be working (with R# 7.1.3, maybe also earlier versions), I actually use the approach with the BindingDecoratorBase and I like it a lot.
    Maybe it only works, if your MarkupExtension ends on ‘Binding’, but mine does, so I am happy.

    • 1 1 Answer
    • 0 Views
    • 0 Followers
    • 0
    Share
    • Facebook
    • Report

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Forgot Password?

    Need An Account, Sign Up Here

    1 Answer

    • Voted
    • Oldest
    • Recent
    • Random
    1. Editorial Team
      Editorial Team
      2026-05-26T10:07:02+00:00Added an answer on May 26, 2026 at 10:07 am

      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.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
        • Report

    Sidebar

    Related Questions

    So I have Html like this http://trac.edgewall.org/wiki/RecentChanges (I want to create some Flash Track
    I want to create an NSOutlineView subclass where some of the entries look like
    I want to create some PHAR Archives but did not find any good alternative
    I want to create some text in a canvas: myText = self.canvas.create_text(5, 5, anchor=NW,
    I want to create some up and down buttons using the standard button background
    I want to create some diagrams for some papers. Diagrams will contain some text,
    I want to create some kind of AJAX script or call that continuously will
    I want to use JavaCompiler to dynamically create some classes. I found the source
    How to quickly create some random image with the icon size? I don't want
    I want to create an ini file to store some settings for my application.

    Explore

    • Home
    • Add group
    • Groups page
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help
    • SEARCH

    Footer

    © 2021 The Archive Base. All Rights Reserved
    With Love by The Archive Base

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.