fsprojects / FsXaml

F# Tools for working with XAML Projects
http://fsprojects.github.io/FsXaml/
MIT License
171 stars 48 forks source link

Adds support for use from FSI #65

Closed BillHally closed 7 years ago

BillHally commented 7 years ago

This adds support for use from FSI, as suggested in #21.

I've added another static parameter to the type provider called XamlFileLocation, which can be specified as an alternative to the default XamlResourceLocation. When XamlFileLocation is specified, the XAML is loaded directly from the filesystem rather than from a resource.

An example script is included. The script displays a window twice, in order to demonstrate that closing the first window doesn't prevent the second from being displayed. (Note that if an instance of System.Windows.Application is created by the script, then only the first window will be displayed).

ReedCopsey commented 7 years ago

This is awesome! Thank you @BillHally

I'll try to get some testing on this, and get a release out ASAP.

ReedCopsey commented 7 years ago

Released in 3.1.6 - Now on NuGet https://www.nuget.org/packages/FsXaml.Wpf/