Repository navigation
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
Activity
Jen-Uno commentedon Mar 6, 2026
Validation update (2026-03-05): I reviewed this on branch fix/algolia-docsearch-duplicates-and-layout (PR #22789). This issue still persists / is not resolved by the current branch changes. Tracking and consolidation: #22788.
Jen-Uno commentedon Mar 6, 2026
Updated validation (2026-03-05): Confirmed
doc/articles/platform-specific-xaml.mdprefix table (lines 120-160) lists win, android, ios, wasm, skia, etc. but has no desktop prefix. Issue persists. Tracking: #22788.MartinZikmund commentedon May 18, 2026
@
Thanks for the report - confirmed the prefix table in
doc/articles/platform-specific-xaml.mdstill lacks explicit guidance for the Desktop target. Today Desktop is covered transitively by theskiaprefix (since the Desktop target uses Skia rendering), and the only desktop mention in the table is in the "Skia (Desktop/Mobile)" column header, which is easy to miss. We should add a short clarifying note (and ideally a row or a sentence above the table) calling out that there is no dedicateddesktopprefix and thatskiais the one to use for Desktop. Keeping this open as a tracked docs improvement.@
github-actions commentedon Nov 8, 2026
This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.