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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:19:21+00:00 2026-05-18T04:19:21+00:00

The reason why I am asking this is because I was recommended by @Greg

  • 0

The reason why I am asking this is because I was recommended by @Greg D (from this question) to use SetCurrentValue() instead, but a look at the docs and didn’t see whats the difference. Or whats does "without changing its value source" mean?

SetValue()

Sets the local value of a dependency property, specified by its
dependency property identifier.

SetCurrentValue()

Sets the value of a dependency property without changing its value
source.

  • 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-18T04:19:21+00:00Added an answer on May 18, 2026 at 4:19 am

    The MSDN link you provided says it quite well:

    This method is used by a component
    that programmatically sets the value
    of one of its own properties without
    disabling an application’s declared
    use of the property. The
    SetCurrentValue method changes the
    effective value of the property, but
    existing triggers, data bindings, and
    styles will continue to work.

    Suppose you’re writing the TextBox control and you’ve exposed a Text property that people often use as follows:

    <TextBox Text="{Binding SomeProperty}"/>
    

    In your control’s code, if you call SetValue you will overwrite the binding with whatever you provide. If you call SetCurrentValue, however, will ensure that the property takes on the given value, but won’t destroy any bindings.

    To the best of my knowledge, Greg’s advice is incorrect. You should always use GetValue/SetValue from your CLR wrapper property. SetCurrentValue is more useful in scenarios where you need a property to take on a given value but don’t want to overwrite any bindings, triggers, or styles that have been configured against your property.

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

Sidebar

Related Questions

The reason I am asking this question is because I have landed my first
The reason for me asking this question is:- I get a real buzz out
I'm not asking this question because of the merits of garbage collection first of
I'm a seasoned programmer and therefore feel a little embarrassed asking this question but
Dang-I know this is a subjective question so will probably get booted off/locked, but
The discussion in this question is the direct cause for me asking this question.
Are there any Clojure http libraries that use the java.net.URLConnection class? Reason I'm asking
Is there any reason not to use the bitwise operators &, |, and ^
For some reason I never see this done. Is there a reason why not?
if i use <BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0> tag like this, will this ensure

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.