This project demonstrates some of the WinRT and XAML Islands features and how to use them in tB/VB6. It also includes my WinRT Interfaces package that has been published to the twinBASIC server for everyone to use as they see fit (this package is far from complete and will include ongoing updates as more interfaces are added).
The following features are showcased in this XAML Islands demo (besides cramming a bunch of XAML controls on a form):
- LinearGradientBrush for colorful labels
- Opacity/Fade, Scale and Rotation animations (with Cubic EaseInOut functions)
- Theme toggle (Light/Dark) with an interactive, animated Sun/Moon icon
- Attaching events to various controls
- Binding of some controls (ListView and ComboBox) to external sources (arrays of strings in this case) for dynamic content updates
- Attaching a Command object to a button instead of a Click event (for example in this case the Submit button will become available once you type a valid email address in the Email text box)
You need to compile the executable to see this project in action. It also works in the IDE but for now that requires editing the manifest on the twinBasic executables. You could do that now with a tool such as Resource Hacker or wait for Wayne to include the manifest in a future version.
Here is the demo project: XamlIslands_Generics.zip
Requirements: Windows 10 or later!




):
Reply With Quote