Skip to content

[Docs][Desktop] Please add information about the desktop target to the platform specific namespace prefix table #21999

@DevTKSS

Description

@DevTKSS

What would you like clarification on? 🤔

Refering to this Page region here:

### 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 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

Metadata

Metadata

Labels

difficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions