How can I programmatically refresh Visual Studio WPF designers? -


is possible programmatically refresh wpf designer windows in visual studio e.g. using dte?

i have design-time behaviour refresh wpf designer windows after file system changes have detected.

i have tried:

dte.itemoperations.openfile(file) //where file xaml file 

but has no effect.

update

i looking solution not close , re-open xaml file, heavy-handed. i'm looking way of getting wpf designers reload\refresh when solution rebuilt.

the best can think of is

dte.activedocument.close(vssavechanges.vssavechangesno); dte.itemoperations.openfile(filename); 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -