-
Notifications
You must be signed in to change notification settings - Fork 836
Description
What would you like clarification on? 🤔
Refering to this Page region here:
uno/doc/articles/platform-specific-xaml.md
Lines 102 to 148 in f5ea9ec
| ### Available prefixes | |
| The pre-defined prefixes are listed below: | |
| > [!NOTE] | |
| > Skia in the context of this table refers to all Skia targets, including when Android, iOS, or Wasm are running with Skia rendering. | |
| > | |
| > [!NOTE] | |
| > Unless explicitly stated, Android, iOS, and web in the context of this table refer specifically to the old native platforms and not when running with Skia rendering. | |
| | Prefix | Included platforms | Excluded platforms | Namespace | Put in `mc:Ignorable`? | | |
| |-------------------|------------------------------------------------|--------------------------------------|-------------------------------------------------------------|------------------------| | |
| | `win` | WinUI | Android, iOS, web, macOS, Skia | `http://schemas.microsoft.com/winfx/2006/xaml/presentation` | no | | |
| | `not_win` | Android, iOS, web, macOS, Skia | WinUI | `http://uno.ui/not_win` | yes | | |
| | `android` | Android | WinUI, iOS, web, macOS, Skia | `http://uno.ui/android` | yes | | |
| | `ios` | iOS | WinUI, Android, web, macOS, Skia | `http://uno.ui/ios` | yes | | |
| | `wasm` | web | WinUI, Android, iOS, macOS, Skia | `http://uno.ui/wasm` | yes | | |
| | `macos` | macOS | WinUI, Android, iOS, web, Skia | `http://uno.ui/macos` | yes | | |
| | `skia` | Skia | WinUI, Android, iOS, web, macOS | `http://uno.ui/skia` | yes | | |
| | `androidskia` | Android running with Skia rendering | Everything else | `http://uno.ui/androidskia` | yes | | |
| | `iosskia` | iOS running with Skia rendering | Everything else | `http://uno.ui/iosskia` | yes | | |
| | `wasmskia` | Web running with Skia rendering | Everything else | `http://uno.ui/wasmskia` | yes | | |
| | `not_android` | WinUI, iOS, web, macOS, Skia | Android | `http://schemas.microsoft.com/winfx/2006/xaml/presentation` | no | | |
| | `not_ios` | WinUI, Android, web, macOS, Skia | iOS | `http://schemas.microsoft.com/winfx/2006/xaml/presentation` | no | | |
| | `not_wasm` | WinUI, Android, iOS, macOS, Skia | web | `http://schemas.microsoft.com/winfx/2006/xaml/presentation` | no | | |
| | `not_macos` | WinUI, Android, iOS, web, Skia | macOS | `http://schemas.microsoft.com/winfx/2006/xaml/presentation` | no | | |
| | `not_skia` | WinUI, Android, iOS, web, macOS | Skia | `http://schemas.microsoft.com/winfx/2006/xaml/presentation` | no | | |
| | `not_androidskia` | All except Android running with Skia rendering | Android running with Skia rendering | `http://schemas.microsoft.com/winfx/2006/xaml/presentation` | no | | |
| | `not_iosskia` | All except iOS running with Skia rendering | iOS running with Skia rendering | `http://schemas.microsoft.com/winfx/2006/xaml/presentation` | no | | |
| | `not_wasmskia` | All except web running with Skia rendering | web running with Skia rendering | `http://schemas.microsoft.com/winfx/2006/xaml/presentation` | no | | |
| More visually, platform support for the pre-defined prefixes is shown in the below table: | |
| | Prefix | Windows | Android | iOS | Web | macOS | Skia | | |
| |---------------|-------|-------|-------|-------|-------|-------| | |
| | `win` | ✔ | ✖ | ✖ | ✖ | ✖ | ✖ | | |
| | `android` | ✖ | ✔ | ✖ | ✖ | ✖ | ✖ | | |
| | `ios` | ✖ | ✖ | ✔ | ✖ | ✖ | ✖ | | |
| | `wasm` | ✖ | ✖ | ✖ | ✔ | ✖ | ✖ | | |
| | `macos` | ✖ | ✖ | ✖ | ✖ | ✔ | ✖ | | |
| | `skia` | ✖ | ✖ | ✖ | ✖ | ✖ | ✔ | | |
| | `not_win` | ✖ | ✔ | ✔ | ✔ | ✔ | ✔ | | |
| | `not_android` | ✔ | ✖ | ✔ | ✔ | ✔ | ✔ | | |
| | `not_ios` | ✔ | ✔ | ✖ | ✔ | ✔ | ✔ | | |
| | `not_wasm` | ✔ | ✔ | ✔ | ✖ | ✔ | ✔ | | |
| | `not_macos` | ✔ | ✔ | ✔ | ✔ | ✖ | ✔ | | |
| | `not_skia` | ✔ | ✔ | ✔ | ✔ | ✔ | ✖ | |
I am unable to find any information about the possibilities of this to be used for the *-desktop target in my Uno Projects and eventual UI-Libraries.
I did already read the other article about the #if Conditionals (e.g. #if WINDOWS) but only to see that also with this the (Uno.Sdk Managed) Library Project was not able to behave equally to the Uno UI project (attempting to) using the same Conditionals e.g. HAS_UNO_SKIA or similar.
- the c# Conditionals are issued for that specific case e.g. here: [Constants][Windows] Uno.AuthenticationBroker with included windows target and without #if !WINDOWS results in CS0246 type or namespace not found #21237 but that the Constants are not evaluated equally across also Uno.Sdk Managed Libraries is from my POV not what we should be expecting.
The problem I am experiencing with this is that this is my preferred target and I did already notice in available Types and Control implementation status, there are few, but sometimes important differences I need to care about and this is of course not only in c# then also in my Xaml, where I would like to know this covered 👍
Concern 📚
Developing with Uno 🛠️
Renderer 🎨
- Skia
- Native
Affected platforms 📱💻🖥️
No response
Any feedback? 💬
No response