Windows Vista Forums

Nested/Inner Classes and the x:Type Markup Extension
  1. #1


    Martin Smith Guest

    Nested/Inner Classes and the x:Type Markup Extension

    I want to use an TargetType="{x:Type Yadda.Stuff}" where Yadda is a
    class and Stuff is an inner class of Yadda. Is this possible in Xaml?
    I'd rather not have the namespace polluted with a wrapper class that
    I'm using to populate a TreeView (as I can't modify the data class
    itself).



    Any help is appreciated.


      My System SpecsSystem Spec

  2. #2


    Douglas Stockwell Guest

    Re: Nested/Inner Classes and the x:Type Markup Extension

    I believe you need to use: {x:Type Yadda+Stuff}

    - Doug

    "Martin Smith" <martin.smith.jr@gmail.com> wrote in message
    news:1157954228.035389.76320@h48g2000cwc.googlegroups.com...
    >I want to use an TargetType="{x:Type Yadda.Stuff}" where Yadda is a
    > class and Stuff is an inner class of Yadda. Is this possible in Xaml?
    > I'd rather not have the namespace polluted with a wrapper class that
    > I'm using to populate a TreeView (as I can't modify the data class
    > itself).
    >
    > Any help is appreciated.
    >



      My System SpecsSystem Spec

Nested/Inner Classes and the x:Type Markup Extension problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
File Extension Type Icon - Change Brink Tutorials 91 12 Oct 2010
Unassociate File Extension Type tropicalchic General Discussion 11 26 Aug 2009
Program associations and file type extension kamogelo moiloa Vista mail 1 01 Aug 2008
StaticResource markup extension with Binding HolaMan Avalon 0 25 Jul 2006
Problem with custom Markup Extension Marcus Avalon 1 25 May 2006