ネイティブスタイル-UWP

ホスト構成では、各プラットフォームでのほとんどの処理方法を利用できますが、プラットフォームごとにネイティブスタイルを設定する必要があります。

UWP を使用すると、詳細なスタイル設定、動作、アニメーションなどのために ResourceDictionary を渡すことができます。

要素 スタイル名
AdaptiveCard Adaptive。カード
Action.OpenUrl Adaptive. Action. OpenUrl
Action.ShowCard Adaptive. Action. ShowCard
Action.Submit Adaptive. Action. Submit
Adaptive. Column, Adaptive. Tap
ColumnSet ColumnSet、Adaptive Separator
コンテナー Adaptive. Container
ChoiceSet ChoiceSet、ChoiceSet、ChoiceSet、、ChoiceSet、ComboBoxItem のように、を入力して、を入力し、を入力します。
入力。日付 Adaptive. Text. Date
入力番号 Adaptive. Text. Number
入力テキスト Adaptive. 入力テキスト
Input. Time Adaptive. Text. Time
入力します。トグル Adaptive. Input. トグル
Image Adaptive. イメージ
ImageSet Adaptive ImageSet
FactSet FactSet、adaptive。 Title、Adaptive。値。
TextBlock Adaptive. TextBlock

このサンプル XAML リソースディクショナリは、すべての Textblock の背景を水色に設定します。 これよりも高度なものが必要になる場合があります。 😁

<ResourceDictionary
    xmlns="https://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="https://schemas.microsoft.com/winfx/2006/xaml">
    <Style x:Key="Adaptive.TextBlock" TargetType="TextBlock">
        <Setter Property="Background" Value="Aqua"></Setter>
    </Style>
</ResourceDictionary>
// Use a ResourceDictionary instance
// DON'T use this property if rendering from a server
renderer.Resources = myResourceDictionary;