Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum

CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • Csla 41 Unable to access Protected object

    rated by 0 users
    Not Answered This post has 0 verified answers | 1 Reply | 2 Followers

    Not Ranked
    4 Posts
    tzfj7l posted on Wed, Aug 17 2011 12:11 PM

    Hi Rocky,

    I am migrating my application from Csla version # to along with .Net 2008 to 2010. I  have problems in the following class.

    Csla.Xaml. Property Status

    in 3.6  Object Source and DependencyObject Target are public where as in 4.1 Object Source is protected and there is no Dependency object Target. Could you please let me know how to fix this one. Thank you.












    void SetStatusControl()




       if (Template != null && DesignModeHelper.IsInDesignMode == false)



        PropertyStatus status = this.GetTemplateChild("PART_PropertyStatus") as PropertyStatus;

        if (status != null)




                if  (IsValidatable)


                    status.Property =


                    status.Source =

    this.DataContext; // (object Source is protected cannot access)

                    dataContext =



                 status.Target =

    this;   // (does not contain a definition for Target in 4.1)




    All Replies

    Top 10 Contributor
    9,475 Posts

    The PropertyStatus control was largely rewritten from 3.6 to 3.8. Please look at the current sample apps in the Samples download - several of them use the current PropertyStatus control.


    Page 1 of 1 (2 items) | RSS

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems