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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:03:25+00:00 2026-05-17T15:03:25+00:00

I have used DependencyProperty to pass value from textbox at silverlight page to external

  • 0

I have used DependencyProperty to pass value from textbox at silverlight page to external silverlight user control located in same page and that works fine.

But the problem is I could not bind the Textbox in page in reverse way. i.e. when i need to have changes in parent page when its usercontrol’s textbox text is changed.

The XAML:

<TextBox x:Name="TextDataCollectionAccounts" Width="200" Height="25" VerticalAlignment="Top"></TextBox>                    
<Local:CalControl   x:Name="RCal" DateRange="{Binding ElementName=TextDataCollectionAccounts, Path=Text, Mode=TwoWay}" Visibility="Collapsed"/>

How to bind “TextDataCollectionAccounts”(in silverlight page) with Textbox of “Local:CalControl”?

  • 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-17T15:03:26+00:00Added an answer on May 17, 2026 at 3:03 pm

    Basically never try to bind to the inner workings of a user control. Treat it like it was a third-party control and expose properties and events.

    • Expose the Text property of the TextBox as a Text dependency property on your usercontrol.
    • Catch the change event of the TextBox and raise a property change event for the new Text dependency property.
    • Then you can simply bind to your new Text property on your user control.

    If you need a specific example, just ask, but it sounds like you are almost there and know your DPs.

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

Sidebar

Related Questions

I have used a query string parameter to redirect from Page 1 to Page
I’m having issues with a WPF Expander that I have in a user control
I have used traditional version control systems to maintain source code repositories on past
I have used checkbox column in gridview. I want to check status of that
I'm a little confused on creating a DependencyProperty for properties that depend on external
I have used Flex for about a year before deciding that I would rather
I have used ProgressBar Control in my c# desktop application.I have used it in
I have a WPF-page (ZorgTrajectPage1.xaml) with a code-behind ZorgTrajectPage1.xaml.cs with a DependencyProperty ZorgtrajectController called
I have used gallery in my app. In that i have two images in
I have used IPC in Win32 code a while ago - critical sections, events,

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.