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

  • SEARCH
  • Home
  • 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 8259477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:52:26+00:00 2026-06-08T02:52:26+00:00

How can I find and access to Elements which are bind to an object

  • 0

How can I find and access to Elements which are bind to an object in XAML ?

Edit : Let’s say I have a EmployeeViewModel which is assigned to EmployeeView‘s DataContext and a EmployeeModel inside my EmployeeViewModel, I want to know which properties of my model bounded to View’s Framework Elements (Controls) also I want to have an access to each control bounded to my model properties.

  • 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-06-08T02:52:27+00:00Added an answer on June 8, 2026 at 2:52 am

    UPDATE: In light of the question being clarified by SaberAmani in that he is trying to add validation to his models and show a validation summary..see the links below.

    http://msdn.microsoft.com/en-us/magazine/ff714593.aspx

    http://codeblitz.wordpress.com/2009/05/12/wpf-validation-summary-control/

    http://wpfvalidation.codeplex.com/

    http://f10andf11.blogspot.co.uk/2012/02/wpf-validation-summary-control.html


    For reference for people that want to discover Bindings:

    You don’t mention if your XAML is in WPF, Silverlight, Metro or Phone7 (thus you may be more restricted in what you can do).

    There seem to be a few possible ways to do what you want:

    1. Reflection
    2. MarkupObject / MarkupWriter
    3. TypeDescriptor+DependencyPropertyDescriptor
    4. Custom Binding Markup Extension

    Take a look at this link.

    • http://blog.spencen.com/2008/05/02/how-to-get-a-list-of-bindings-in-wpf.aspx

    He uses reflection and suggests this is the classical way to do it…but also mentions MarkupWriter as another possibility. NOTE: the reflection method doesn’t discover Attached Properties which may have bindings.

    Here are some links that use MarkupWriter…this would allow you to discover the attached properties.

    • http://www.codeproject.com/Articles/21139/An-XAML-Serializer-Preserving-Bindings

    • http://blogs.msdn.com/b/marlat/archive/2009/05/24/getbindingexpression-a-good-way-to-iterate-over-all-dependency-properties-in-visual-tree-in-silverlight-3.aspx

    Related links:

    • Retrieve all Data Bindings from WPF Window

    • Getting list of all dependency/attached properties of an Object
      http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/580234cb-e870-4af1-9a91-3e3ba118c89c

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

Sidebar

Related Questions

I have a Yahoo! Widgets Web object and I'd like to access elements inside
I need to access the commandline from within a C# application. I can't find
Can anyone tell me how I can find out if an SPField object is
I have an array of 1000-2000 elements which are pointers to objects. I want
On a Jsp page I have some select elements which were disabled after a
I have this XML problem that is bugging me today, and I can't find
I can find the JS and HTML code in response by alert() . But
I can find the tool command in my filesystem under: /Applications/Xcode.app/Contents/Developer/usr/bin/otool If I specify
Where can find resources about best practices for SharePoint programming? I am talking about
I can find no non-deprecated way of hiding an item in a menu bar

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.