fsprojects / FsXaml

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

Can this be used with Xamarin.Forms? #70

Closed cmeeren closed 6 years ago

cmeeren commented 6 years ago

Can FsXaml be used with Xamarin.Forms XAML files (in PCLs or .NET Standard libraries)?

ReedCopsey commented 6 years ago

Unfortunately no. Xamarin Forms doesn't expose some of the required information I'd need to recreate this.

I hope to have some option there, but for now, manual loading (which is fairly simple) is the only option.

cmeeren commented 6 years ago

Yep, LoadFromXaml works fine, but all the FindByName calls are a pain... :) Thanks anyway!

ReedCopsey commented 6 years ago

Yeah. I've tried more than once. Most of the info required to figure out the types is buried in internal routines in Xam Forms. Can't get to them. Could easily do it untyped, but that's no better than calling findbyname repeatedly.

On Aug 26, 2017 7:08 AM, "Christer van der Meeren" notifications@github.com wrote:

Yep, LoadFromXaml works fine, but all the FindByName calls are a pain... :) Thanks anyway!

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/fsprojects/FsXaml/issues/70#issuecomment-325130971, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCUmj_Wp_coTQNrdKHV-ulVhm4u6euSks5scCbXgaJpZM4PDd6W .