Anyone developing WPF with Swift?

I’ve been developing some simple WinForm apps in VB.NET and was looking to switch to Swift. I see there is no WinForm support available, so I’m working with WPF instead in VS2015. I can’t figure out how to make an input box. There is no inputbox class available with Swift (no My class either, but I can take the long way around that) and when I try to add a Window it isn’t available. I can add a Window for Oxygene or C# but not for Silver. Is there something I need to import?

I also like to get started with WPF manually as project templates are missing.

A basic tutorial would be great that demonstrate the entrypoint and any UI element creation.

Hmm, WPF project templates should be shipping with Elements for VS?

I am on Mac with Fire!

Templates are there, just not WinForms, but you can’t add another window to the project with WPF. This seems to only be an issue with Swift.

There’s some tutorials on the support site here, there is no entrypoint in Swift, and the UI elements are controls you can drag onto the window from the toolbox and you set properties and event handlers. Any .NET tutorial will show you the basics, then it’s just a matter of syntax in the coding. I’ve found WinForms is easier for beginners, it would be nice to see it supported.

Ah, i see. WPF is currently not supported in Fire, because Mono does not support running or building WPF apps. I could add the templates to Fire,but they’d just fail to built, without Microsoft’s (Windows-only) full .NET framework to build against.

Yeah, we don’t current;support WinForms for Silver (and C#) only for Oxygene. We plan to change that for 8.2, bit not in the current beta yet.

Are you saying the “File|New Item” templates for WPF are simply missing, for Swift?

File | New Item is not an option. “Project | Add Window” or “Project | Add New Item…” are what I would normally use to add another window to the project. This gives some options, but not a new window.

“Add Window” actually brings you to the Oxegene template menu, which has the Window (WPF) option.

Sorry, i did mean “Add New Item…”, of course. We’ll look into the missing template and get that fixed asap. thanx!

Thanks, logged as bugs://72657

bugs://72657 got closed with status fixed.

I added missing Silver window template, and also will look into issue

“Add Window” actually brings you to the Oxegene template menu

Logged as #72658, thanks!

The new .1809 beta build has this fixed, fwiw.

Thanks!

1 Like