fsprojects-archive / zzarchive-VisualFSharpPowerTools

[ARCHIVED] Power commands for F# in Visual Studio
http://fsprojects.github.io/VisualFSharpPowerTools/
Apache License 2.0
310 stars 77 forks source link

Fragments related to supporting WPF Designer #1360

Open dsyme opened 8 years ago

dsyme commented 8 years ago

I just removed some very old snippets of code from the Visual F# Tools code base that were related to project system support for the WPF designer (and perhaps some other VS functionality). This code was never actually used in practice and relates to the original sample we translated this from.

However it occured to me that it might be possible to add WPF Designer support to VFPT. If so, this code might give a starting guide for how to do it:

https://github.com/Microsoft/visualfsharp/pull/1048/files

The code does use CodeDOM in some way, either to look for event handlers in the code, or to inject them. Since VFPT is already doing some code generation there are likely to be better ways to do this. If it was need the existing F# CodeDom implementation is here . There is a "CleanCodeDomGenerator" that tries to generate cleaner code.

JohanLarsson commented 7 years ago

Somewhat related: xaml formatting is a solved problem.