Is there an IronRuby lib for generating concrete CLR classes?

Posted by Ball on Stack Overflow See other posts from Stack Overflow or by Ball
Published on 2010-04-14T03:33:25Z Indexed on 2010/04/20 6:43 UTC
Read the original article Hit count: 257

Filed under:
|

I want to expose a class to CLR classes. The reason I have is Xaml. I want to write WPF custom controls in Ruby, then use xaml to style and provide templates for them. Last time I tried, Xaml couldn't look up IronRuby types.

class NavBar < TreeView
    ...
end

<ControlTemlate TargetType={x:Type MyNamspace:NavBar}>
    ...
</ControlTemplate>

I know I can get there by writing to the CodeDom, but I'm hoping someone already did the heavy lifting or can show me how without resorting to CodeDom.

© Stack Overflow or respective owner

Related posts about ironruby

Related posts about xaml