我有一個 Maui 應用程式,并想根據我所在的平臺設定我的應用程式的樣式。在資源字典中,我可以使用以下
<ResourceDictionary
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<OnPlatform x:Key="ButtonSize" x:TypeArguments="x:Double">
<On Platform="iOS" Value="14" />
<On Platform="Android" Value="16" />
</OnPlatform>
</ResourceDictionary>
Windows 和 Mac 的“平臺字串”是什么?
<On Platform="???" Value="16" />
uj5u.com熱心網友回復:
根據檔案
- 安卓
- iOS
- 麥克催化劑
- 蒂岑
- 用戶界面
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/515951.html
標籤:xml毛伊岛
上一篇:文本框不放棄游標焦點-WinUI
