c# - XamlReader and Custom ContentPropertyAttribute -


i'm trying make custom graphic layout engine. it's xaml-based , thought reusing system.xaml types deal xaml.

as objects defined inside portable class libraries, cannot decorate them standard contentpropertyattribute , problem, because have specify each content explicitly this:

<window>      <window.content>         <textblock />         </window.content>     </window> 

as can appreciate, set textblock window.content withing tags.

i work does:

<window>      <textblock />             </window> 

can configure xamlreader/xamlobjectwriter use property default when nothing specified?

thanks!


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -