Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

  • balla

    balla

    Member

    674 Points

    200 Posts

    Re: First take on a UserControl

    Sep 27, 2007 05:44 AM | LINK

    jasonxz

    balla

    Properties you created yourself in the usercontrol class (like the Text property you use in the XAML testpage) can not be assigned in XAML yet:

    I have to disagree with you, here, balla.  If the property has been created in the UserControl's code-behind, you should be able to access it via the XAML.  I have done this quite a bit and if you look at the SilverlightUIControls, it's done quite often there as well.

    It's very strange that you say this. I also studied the SilverlightUIControls application and it is written in the inline comments (in the code files) that the attributes are initialised at runtime since it is not yet possible to do this in XAML. Maybe I understood it wrong or it has changed since then? This confuses me...