XAML example?

Can someone point me to a working example of XAML?
I saw the XAML Island tutorial.. Can’t seem to find a project.

Searching for XAML new project shows this:

2 Likes

The XAML Gallery ran perfectly under windows…
I’m on a pi 5 and although i can put a XAML Container on my app… Nothing happens…
Same with the sample, it compiles but nothing happens.

Thanks!

XAML is a Windows thing, so not a surprise.

When you are here:

Click with the Option-Key down to make the Download button appears:

Look at bottom-right for the Download button.

On macOS Tahoe 26.2 if that matters.

What’s surprising is.. it’s a windows thing and I like it!

It’s about the grids for me.. resizing gui’s has been a nightmare for me…
Being able to embed things in things just so they look like you want .. is great.

For cross-platform responsive/resizing layouts, you should check out GraffitiLayout, GraffitiResponsive, and GraffitiWall.

1 Like

That’s sad, the correct way should be a compiler error pointing to the nonexistent control in such platform. A silent fail should not be possible.

You wouldn’t be able to create a cross-platform app if it did that.

Yes, I would, as we do in other systems, if Xojo did a proper approach for using native controls, like native controls to native screens. Native screens would compile just for such target platform. The basic concept of “separation-of-concerns”. Separate the UI from the main app logic, change the UI as you wish for any target. WinUI controls should only be dropped/used on Windows screens. They couldn’t be dropped on improper targets, and if they, by any chance were there, a compiler error should be risen. When compiling for Windows, the Windows and Universal screens would be compiled, When compiling for Macs, the Mac and Universal screens would be compiled. Universal components would render anywhere with their “universal look”, native controls would compile only in their “native screens”, improper targets should rise an error.

CAC.zip (149.2 KB)

1 Like

I like it, but i wish it actually drew objects at design time.
Same for Desktop Grid.