c# - Where are the default WPF Control Templates? -
c# - Where are the default WPF Control Templates? -
the default control templates
exist, obviously, in binary form in different dlls add together "references" each of our projects.
do exist in ascii/source form somewhere? available?
tia
there free tools available explore templates of default wpf controls, e.g. show me template! (there tools command styles, see stylesnooper).
alternatively can explore templates following:
private string gettemplate(control control) { stringbuilder stringbuilder = new stringbuilder(); xmlwritersettings xmlsettings = new xmlwritersettings(); xmlsettings.indent = true; using (xmlwriter xmlwriter = xmlwriter.create(stringbuilder, xmlsettings)) { xamlwriter.save(control.template, xmlwriter); } homecoming stringbuilder.tostring(); }
c# wpf datagrid wpf-controls
Comments
Post a Comment