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 508357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:53:56+00:00 2026-05-13T06:53:56+00:00

We are loading some xaml for an Element at runtime (XamlReader.Load) for some preview

  • 0

We are loading some xaml for an Element at runtime (XamlReader.Load) for some preview purposes. Need less to say, the properties/bindings are not know as they can vary across elements/controls we are loading.

As the run time view model context is not available when we load the control for preview – after loading the Element, the idea is to grab the binding information, create a type with those propertes at run time, to assign the same as the data context of the loaded control.

We’ll be using AssemblyBuilder/ModuleBuilder/TypeBuilder to build a type at run time. Having said that, we need to walk the visual tree to identify the bindings involved, to create a list of binding paths.

Obviously, one way is to use regex to parse the xaml directly and build this list.. Just want to know a way exist so that I can grab the bindings and related paths from the visual tree itself?

Thanks

  • 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-13T06:53:56+00:00Added an answer on May 13, 2026 at 6:53 am

    Why not just walk the Silverlight Visual Tree and for each element call GetBindingExpression() for all of it’s DPs?

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

Sidebar

Related Questions

Let's say I do this: $(#content).load(...); Within what I'm loading some javascript is included:
I need to dynamic loading some .NET control from DLL in runtime from C#
I'm loading in some HTML content like this: $('#scores').load('scores.php #scores'); Note that It is
I am loading some XAML pages that I have created that have some data
im loading some content into a div using .load and but im having a
I am loading some content via Ajax. After the load completes I want to
I´m loading some MP3 from an external URL. I need to wait to completely
I'm loading some content via ajax and need to use the live() function. Since
I am loading some template files into my application using require.js like so: define(function(require)
I'm loading some HTML via Ajax with this format: <div id=div1> ... some content

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.