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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:25:38+00:00 2026-05-28T19:25:38+00:00

I have two DPs that I update in a DefiningGeometry get: protected override Geometry

  • 0

I have two DPs that I update in a DefiningGeometry get:

protected override Geometry DefiningGeometry
{
    get
    {
        StartSc = sc.Transform(Start);
        EndSc = sc.Transform(End);
        //Start and End are also dependencies properties.    
    ...
    }
}

I bind to StartSc and EndSc but the target never gets updated, it always stays the default value of 0. Start and End change, so that is not the issue, I am wondering if assignment in the DefiningGeometry get doesn’t have an effect on the properties. Does anyone see any obvious mistake?

Note: I had the same variables names which were hiding the DPs from a derived class, removing the hiding the above code worked, but the bellow answer works either way.

  • 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-28T19:25:39+00:00Added an answer on May 28, 2026 at 7:25 pm

    If you bind to DPs and you are in the control’s code you want to use SetCurrentValue (not the CLR-wrappers (StartSc & EndSc) which use SetValue) because otherwise you overwrite the existing bindings with the concrete value.

    Also as i said, avoid doing things in getters, it is really hard to tell when and how often they get called.

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

Sidebar

Related Questions

Have two fields start and end, both are dates, I want to write a
I have two applications written in Java that communicate with each other using XML
I have two different Classes: class X { public int TX1 { get; set;
Have two issues one is showFromToolbar statement format warning issue and another is that
I have two BizTalk 2010 servers that belong to the same BizTalk group. They
I have two loggers. One that appends to a file, and another that is
I have two DataGridViews that have the same column schema (although two different DataViews
I have two lists of the same type. That type does not have an
I have two forms and a button. Everything works fine in Firefox. I get
I have two methods that draw a rotated rectangle on the screen. RenderMethod1 renders

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.