diff --git a/source/uwp/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj b/source/uwp/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj
index 9d3c51be59..445c8be871 100644
--- a/source/uwp/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj
+++ b/source/uwp/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj
@@ -131,8 +131,8 @@
-
- %(Filename).h
+
+ AdaptiveCards.ObjectModel.Uwp.h
diff --git a/source/uwp/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj.filters b/source/uwp/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj.filters
index 1507d2f9a5..a0816cd815 100644
--- a/source/uwp/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj.filters
+++ b/source/uwp/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj.filters
@@ -1,7 +1,7 @@
-
+
diff --git a/source/uwp/Renderer/AdaptiveCardRenderer.vcxproj b/source/uwp/Renderer/AdaptiveCardRenderer.vcxproj
index 9861ff9488..cad843613f 100644
--- a/source/uwp/Renderer/AdaptiveCardRenderer.vcxproj
+++ b/source/uwp/Renderer/AdaptiveCardRenderer.vcxproj
@@ -167,21 +167,13 @@
-
- %(Filename).h
+
+ AdaptiveCards.Rendering.Uwp.h
true
- $(WindowsSDK_IncludePath)
- $(WindowsSDK_IncludePath);..\AdaptiveCardsObjectModel\idl;..\AdaptiveCardsObjectModel
- $(WindowsSDK_IncludePath);..\AdaptiveCardsObjectModel\idl
- $(WindowsSDK_IncludePath);..\AdaptiveCardsObjectModel\idl
- $(WindowsSDK_IncludePath);..\AdaptiveCardsObjectModel\idl
- $(WindowsSDK_IncludePath);..\AdaptiveCardsObjectModel\idl
- $(WindowsSDK_IncludePath);..\AdaptiveCardsObjectModel\idl
- $(WindowsSDK_IncludePath);..\AdaptiveCardsObjectModel\idl
- $(WindowsSDK_IncludePath);..\AdaptiveCardsObjectModel\idl
+ $(WindowsSDK_IncludePath);..\SharedObjectModel\idl
diff --git a/source/uwp/Renderer/AdaptiveCardRenderer.vcxproj.filters b/source/uwp/Renderer/AdaptiveCardRenderer.vcxproj.filters
index 36013b735e..04a775b316 100644
--- a/source/uwp/Renderer/AdaptiveCardRenderer.vcxproj.filters
+++ b/source/uwp/Renderer/AdaptiveCardRenderer.vcxproj.filters
@@ -1,7 +1,7 @@
-
+
diff --git a/source/uwp/SharedObjectModel/SharedObjectModel.vcxitems b/source/uwp/SharedObjectModel/SharedObjectModel.vcxitems
index dec64e69f0..3b1127d8e9 100644
--- a/source/uwp/SharedObjectModel/SharedObjectModel.vcxitems
+++ b/source/uwp/SharedObjectModel/SharedObjectModel.vcxitems
@@ -173,4 +173,7 @@
+
+
+
\ No newline at end of file
diff --git a/source/uwp/SharedObjectModel/SharedObjectModel.vcxitems.filters b/source/uwp/SharedObjectModel/SharedObjectModel.vcxitems.filters
index 88190feb51..4c71a5641d 100644
--- a/source/uwp/SharedObjectModel/SharedObjectModel.vcxitems.filters
+++ b/source/uwp/SharedObjectModel/SharedObjectModel.vcxitems.filters
@@ -7,6 +7,9 @@
{1ec8d94c-6cf1-4aa0-84ec-9e56e7e29bbf}
+
+ {9cc5c3b9-11da-434a-b9db-872f2b3e63c6}
+
@@ -474,4 +477,9 @@
lib
+
+
+ idl
+
+
\ No newline at end of file
diff --git a/source/uwp/AdaptiveCardsObjectModel/idl/AdaptiveCards.ObjectModel.Uwp.idl b/source/uwp/SharedObjectModel/idl/AdaptiveCards.ObjectModel.Shared.idl
similarity index 99%
rename from source/uwp/AdaptiveCardsObjectModel/idl/AdaptiveCards.ObjectModel.Uwp.idl
rename to source/uwp/SharedObjectModel/idl/AdaptiveCards.ObjectModel.Shared.idl
index cdd9d21151..a0400df273 100644
--- a/source/uwp/AdaptiveCardsObjectModel/idl/AdaptiveCards.ObjectModel.Uwp.idl
+++ b/source/uwp/SharedObjectModel/idl/AdaptiveCards.ObjectModel.Shared.idl
@@ -1,10 +1,20 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
+#ifdef USE_WINUI3
+
+#define Xaml_OM WinUI3
+
+#else // !USE_WINUI3
+
import "Windows.Foundation.idl";
import "Windows.Data.Json.idl";
-namespace AdaptiveCards.ObjectModel.Uwp
+#define Xaml_OM Uwp
+
+#endif // USE_WINUI3
+
+namespace AdaptiveCards.ObjectModel.Xaml_OM
{
runtimeclass AdaptiveCardParseResult;
diff --git a/source/uwp/SharedRenderer/SharedRenderer.vcxitems b/source/uwp/SharedRenderer/SharedRenderer.vcxitems
index d5488e7713..da1b89a4ec 100644
--- a/source/uwp/SharedRenderer/SharedRenderer.vcxitems
+++ b/source/uwp/SharedRenderer/SharedRenderer.vcxitems
@@ -185,4 +185,7 @@
+
+
+
\ No newline at end of file
diff --git a/source/uwp/SharedRenderer/SharedRenderer.vcxitems.filters b/source/uwp/SharedRenderer/SharedRenderer.vcxitems.filters
index 43a15d6694..8deaf1c3bd 100644
--- a/source/uwp/SharedRenderer/SharedRenderer.vcxitems.filters
+++ b/source/uwp/SharedRenderer/SharedRenderer.vcxitems.filters
@@ -7,6 +7,9 @@
{f0d5bd17-6de3-451b-8140-05034df4bd3b}
+
+ {35312e60-67cd-4550-ba9c-920cd2a16b1b}
+
@@ -505,4 +508,9 @@
+
+
+ idl
+
+
\ No newline at end of file
diff --git a/source/uwp/Renderer/idl/AdaptiveCards.Rendering.Uwp.idl b/source/uwp/SharedRenderer/idl/AdaptiveCards.Rendering.Shared.idl
similarity index 82%
rename from source/uwp/Renderer/idl/AdaptiveCards.Rendering.Uwp.idl
rename to source/uwp/SharedRenderer/idl/AdaptiveCards.Rendering.Shared.idl
index 3631982388..54507e60c0 100644
--- a/source/uwp/Renderer/idl/AdaptiveCards.Rendering.Uwp.idl
+++ b/source/uwp/SharedRenderer/idl/AdaptiveCards.Rendering.Shared.idl
@@ -1,17 +1,32 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
+#ifdef USE_WINUI3
+
+#define Xaml_OM WinUI3
+#define xaml Microsoft.UI.Xaml
+
+#else // !USE_WINUI3
+
+#define Xaml_OM Uwp
+#define xaml Windows.UI.Xaml
+
+import "Windows.Foundation.idl";
+import "Windows.Data.Json.idl";
+
import "inspectable.idl";
import "Windows.Foundation.idl";
import "Windows.UI.Xaml.idl";
import "Windows.Data.Json.idl";
-import "AdaptiveCards.ObjectModel.Uwp.idl";
+import "AdaptiveCards.ObjectModel.Shared.idl";
+
+#endif // USE_WINUI3
namespace AdaptiveCards
{
namespace Rendering
{
- namespace Uwp
+ namespace Xaml_OM
{
runtimeclass AdaptiveHostConfigParseResult;
@@ -47,7 +62,7 @@ namespace AdaptiveCards
AdaptiveCardResourceResolvers ResourceResolvers { get; };
AdaptiveHostConfig HostConfig;
- Windows.UI.Xaml.ResourceDictionary OverrideStyles;
+ xaml.ResourceDictionary OverrideStyles;
AdaptiveFeatureRegistration FeatureRegistration;
Boolean OverflowMaxActions;
@@ -57,7 +72,7 @@ namespace AdaptiveCards
void SetFixedDimensions(UInt32 desiredWidth, UInt32 desiredHeight);
void ResetFixedDimensions();
- RenderedAdaptiveCard RenderAdaptiveCard(AdaptiveCards.ObjectModel.Uwp.AdaptiveCard adaptiveCard);
+ RenderedAdaptiveCard RenderAdaptiveCard(AdaptiveCards.ObjectModel.Xaml_OM.AdaptiveCard adaptiveCard);
RenderedAdaptiveCard RenderAdaptiveCardFromJsonString(String adaptiveCard);
RenderedAdaptiveCard RenderAdaptiveCardFromJson(Windows.Data.Json.JsonObject adaptiveCard);
@@ -67,13 +82,13 @@ namespace AdaptiveCards
runtimeclass AdaptiveActionEventArgs
{
- AdaptiveCards.ObjectModel.Uwp.IAdaptiveActionElement Action { get; };
+ AdaptiveCards.ObjectModel.Xaml_OM.IAdaptiveActionElement Action { get; };
AdaptiveInputs Inputs { get; };
}
runtimeclass AdaptiveMediaEventArgs
{
- AdaptiveCards.ObjectModel.Uwp.AdaptiveMedia Media { get; };
+ AdaptiveCards.ObjectModel.Xaml_OM.AdaptiveMedia Media { get; };
}
runtimeclass AdaptiveContainerStyleDefinition
@@ -166,11 +181,11 @@ namespace AdaptiveCards
interface IAdaptiveTextStyleConfig
{
- AdaptiveCards.ObjectModel.Uwp.TextWeight Weight;
- AdaptiveCards.ObjectModel.Uwp.TextSize Size;
- AdaptiveCards.ObjectModel.Uwp.ForegroundColor Color;
+ AdaptiveCards.ObjectModel.Xaml_OM.TextWeight Weight;
+ AdaptiveCards.ObjectModel.Xaml_OM.TextSize Size;
+ AdaptiveCards.ObjectModel.Xaml_OM.ForegroundColor Color;
Boolean IsSubtle;
- AdaptiveCards.ObjectModel.Uwp.FontType FontType;
+ AdaptiveCards.ObjectModel.Xaml_OM.FontType FontType;
}
runtimeclass AdaptiveTextStyleConfig : [default] IAdaptiveTextStyleConfig { AdaptiveTextStyleConfig(); }
@@ -224,7 +239,7 @@ namespace AdaptiveCards
{
AdaptiveImageSetConfig();
- AdaptiveCards.ObjectModel.Uwp.ImageSize ImageSize;
+ AdaptiveCards.ObjectModel.Xaml_OM.ImageSize ImageSize;
UInt32 MaxImageHeight;
}
@@ -232,7 +247,7 @@ namespace AdaptiveCards
{
AdaptiveImageConfig();
- AdaptiveCards.ObjectModel.Uwp.ImageSize ImageSize;
+ AdaptiveCards.ObjectModel.Xaml_OM.ImageSize ImageSize;
}
runtimeclass AdaptiveCardConfig
@@ -256,7 +271,7 @@ namespace AdaptiveCards
AdaptiveShowCardActionConfig();
ActionMode ActionMode;
- AdaptiveCards.ObjectModel.Uwp.ContainerStyle Style;
+ AdaptiveCards.ObjectModel.Xaml_OM.ContainerStyle Style;
UInt32 InlineTopMargin;
}
@@ -269,7 +284,7 @@ namespace AdaptiveCards
ActionAlignment ActionAlignment;
UInt32 ButtonSpacing;
UInt32 MaxActions;
- AdaptiveCards.ObjectModel.Uwp.Spacing Spacing;
+ AdaptiveCards.ObjectModel.Xaml_OM.Spacing Spacing;
IconPlacement IconPlacement;
UInt32 IconSize;
}
@@ -287,18 +302,18 @@ namespace AdaptiveCards
{
AdaptiveInputLabelConfig();
- AdaptiveCards.ObjectModel.Uwp.ForegroundColor Color;
+ AdaptiveCards.ObjectModel.Xaml_OM.ForegroundColor Color;
Boolean IsSubtle;
- AdaptiveCards.ObjectModel.Uwp.TextSize Size;
+ AdaptiveCards.ObjectModel.Xaml_OM.TextSize Size;
String Suffix;
- AdaptiveCards.ObjectModel.Uwp.TextWeight Weight;
+ AdaptiveCards.ObjectModel.Xaml_OM.TextWeight Weight;
}
runtimeclass AdaptiveLabelConfig
{
AdaptiveLabelConfig();
- AdaptiveCards.ObjectModel.Uwp.Spacing InputSpacing;
+ AdaptiveCards.ObjectModel.Xaml_OM.Spacing InputSpacing;
AdaptiveInputLabelConfig RequiredInputs;
AdaptiveInputLabelConfig OptionalInputs;
@@ -308,9 +323,9 @@ namespace AdaptiveCards
{
AdaptiveErrorMessageConfig();
- AdaptiveCards.ObjectModel.Uwp.TextSize Size;
- AdaptiveCards.ObjectModel.Uwp.Spacing Spacing;
- AdaptiveCards.ObjectModel.Uwp.TextWeight Weight;
+ AdaptiveCards.ObjectModel.Xaml_OM.TextSize Size;
+ AdaptiveCards.ObjectModel.Xaml_OM.Spacing Spacing;
+ AdaptiveCards.ObjectModel.Xaml_OM.TextWeight Weight;
}
runtimeclass AdaptiveInputsConfig
@@ -369,7 +384,7 @@ namespace AdaptiveCards
AdaptiveHostConfigParseResult();
AdaptiveHostConfig HostConfig { get; };
- Windows.Foundation.Collections.IVector Errors { get; };
+ Windows.Foundation.Collections.IVector Errors { get; };
}
runtimeclass AdaptiveCardResourceResolvers
@@ -400,12 +415,12 @@ namespace AdaptiveCards
{
RenderedAdaptiveCard();
- AdaptiveCards.ObjectModel.Uwp.AdaptiveCard OriginatingCard { get; };
+ AdaptiveCards.ObjectModel.Xaml_OM.AdaptiveCard OriginatingCard { get; };
AdaptiveHostConfig OriginatingHostConfig { get; };
- Windows.UI.Xaml.FrameworkElement FrameworkElement { get; };
+ xaml.FrameworkElement FrameworkElement { get; };
AdaptiveInputs UserInputs { get; };
- Windows.Foundation.Collections.IVector Errors { get; };
- Windows.Foundation.Collections.IVector Warnings { get; };
+ Windows.Foundation.Collections.IVector Errors { get; };
+ Windows.Foundation.Collections.IVector Warnings { get; };
event Windows.Foundation.TypedEventHandler Action;
event Windows.Foundation.TypedEventHandler MediaClicked;
@@ -418,7 +433,7 @@ namespace AdaptiveCards
Windows.Data.Json.JsonObject AsJson();
Windows.Foundation.Collections.ValueSet AsValueSet();
- Boolean ValidateInputs(AdaptiveCards.ObjectModel.Uwp.IAdaptiveActionElement submitAction);
+ Boolean ValidateInputs(AdaptiveCards.ObjectModel.Xaml_OM.IAdaptiveActionElement submitAction);
}
runtimeclass AdaptiveFeatureRegistration
@@ -451,7 +466,7 @@ namespace AdaptiveCards
AdaptiveActionInvoker();
AdaptiveActionInvoker(RenderedAdaptiveCard renderResult);
- void SendActionEvent(AdaptiveCards.ObjectModel.Uwp.IAdaptiveActionElement actionElement);
+ void SendActionEvent(AdaptiveCards.ObjectModel.Xaml_OM.IAdaptiveActionElement actionElement);
}
runtimeclass AdaptiveMediaEventInvoker
@@ -459,27 +474,27 @@ namespace AdaptiveCards
AdaptiveMediaEventInvoker();
AdaptiveMediaEventInvoker(RenderedAdaptiveCard renderResult);
- void SendMediaClickedEvent(AdaptiveCards.ObjectModel.Uwp.AdaptiveMedia mediaElement);
+ void SendMediaClickedEvent(AdaptiveCards.ObjectModel.Xaml_OM.AdaptiveMedia mediaElement);
}
runtimeclass AdaptiveRenderArgs
{
AdaptiveRenderArgs();
- AdaptiveCards.ObjectModel.Uwp.ContainerStyle ContainerStyle;
+ AdaptiveCards.ObjectModel.Xaml_OM.ContainerStyle ContainerStyle;
IInspectable ParentElement;
Boolean IsInShowCard;
Boolean AllowAboveTitleIconPlacement;
Boolean AncestorHasFallback;
Boolean AddContainerPadding;
- AdaptiveCards.ObjectModel.Uwp.AdaptiveCard ParentCard;
+ AdaptiveCards.ObjectModel.Xaml_OM.AdaptiveCard ParentCard;
}
interface IAdaptiveInputValue
{
- AdaptiveCards.ObjectModel.Uwp.IAdaptiveInputElement InputElement { get; };
+ AdaptiveCards.ObjectModel.Xaml_OM.IAdaptiveInputElement InputElement { get; };
String CurrentValue { get; };
- Windows.UI.Xaml.UIElement ErrorMessage
+ xaml.UIElement ErrorMessage
{
get;
set;
@@ -499,34 +514,34 @@ namespace AdaptiveCards
AdaptiveCardResourceResolvers ResourceResolvers { get; };
AdaptiveActionInvoker ActionInvoker { get; };
AdaptiveMediaEventInvoker MediaEventInvoker { get; };
- Windows.UI.Xaml.ResourceDictionary OverrideStyles { get; };
+ xaml.ResourceDictionary OverrideStyles { get; };
AdaptiveInputs UserInputs { get; };
Windows.Foundation.IReference Rtl;
- Windows.Foundation.IReference TextStyle;
- Windows.Foundation.IReference HorizontalContentAlignment;
+ Windows.Foundation.IReference TextStyle;
+ Windows.Foundation.IReference HorizontalContentAlignment;
void AddInputValue(IAdaptiveInputValue inputValue, AdaptiveRenderArgs renderArgs);
- void LinkSubmitActionToCard(AdaptiveCards.ObjectModel.Uwp.IAdaptiveActionElement submitAction,
+ void LinkSubmitActionToCard(AdaptiveCards.ObjectModel.Xaml_OM.IAdaptiveActionElement submitAction,
AdaptiveRenderArgs renderArgs);
- void LinkCardToParent(AdaptiveCards.ObjectModel.Uwp.AdaptiveCard card, AdaptiveRenderArgs renderArgs);
- IAdaptiveInputValue GetInputValue(AdaptiveCards.ObjectModel.Uwp.IAdaptiveInputElement inputElement);
+ void LinkCardToParent(AdaptiveCards.ObjectModel.Xaml_OM.AdaptiveCard card, AdaptiveRenderArgs renderArgs);
+ IAdaptiveInputValue GetInputValue(AdaptiveCards.ObjectModel.Xaml_OM.IAdaptiveInputElement inputElement);
- void AddError(AdaptiveCards.ObjectModel.Uwp.ErrorStatusCode statusCode, String message);
- void AddWarning(AdaptiveCards.ObjectModel.Uwp.WarningStatusCode statusCode, String message);
+ void AddError(AdaptiveCards.ObjectModel.Xaml_OM.ErrorStatusCode statusCode, String message);
+ void AddWarning(AdaptiveCards.ObjectModel.Xaml_OM.WarningStatusCode statusCode, String message);
}
interface IAdaptiveElementRenderer
{
- Windows.UI.Xaml.UIElement Render(AdaptiveCards.ObjectModel.Uwp.IAdaptiveCardElement element,
- AdaptiveRenderContext context,
- AdaptiveRenderArgs renderArgs);
+ xaml.UIElement Render(AdaptiveCards.ObjectModel.Xaml_OM.IAdaptiveCardElement element,
+ AdaptiveRenderContext context,
+ AdaptiveRenderArgs renderArgs);
}
interface IAdaptiveActionRenderer
{
- Windows.UI.Xaml.UIElement Render(AdaptiveCards.ObjectModel.Uwp.IAdaptiveActionElement element,
- AdaptiveRenderContext context,
- AdaptiveRenderArgs renderArgs);
+ xaml.UIElement Render(AdaptiveCards.ObjectModel.Xaml_OM.IAdaptiveActionElement element,
+ AdaptiveRenderContext context,
+ AdaptiveRenderArgs renderArgs);
}
[default_interface] runtimeclass AdaptiveTableRenderer : IAdaptiveElementRenderer
@@ -639,17 +654,17 @@ namespace AdaptiveCards
AdaptiveToggleVisibilityActionRenderer();
}
- runtimeclass TileControl : Windows.UI.Xaml.Controls.ContentControl
+ runtimeclass TileControl : xaml.Controls.ContentControl
{
TileControl();
- Windows.UI.Xaml.UIElement ResolvedImage { get; };
- AdaptiveCards.ObjectModel.Uwp.AdaptiveBackgroundImage BackgroundImage;
+ xaml.UIElement ResolvedImage { get; };
+ AdaptiveCards.ObjectModel.Xaml_OM.AdaptiveBackgroundImage BackgroundImage;
Windows.Foundation.Size ImageSize;
- void LoadImageBrush(Windows.UI.Xaml.UIElement uielement);
+ void LoadImageBrush(xaml.UIElement uielement);
}
- runtimeclass WholeItemsPanel : Windows.UI.Xaml.Controls.Panel
+ runtimeclass WholeItemsPanel : xaml.Controls.Panel
{
WholeItemsPanel();
@@ -662,10 +677,10 @@ namespace AdaptiveCards
{
ElementTagContent();
- Windows.UI.Xaml.Controls.ColumnDefinition ColumnDefinition { get; };
- AdaptiveCards.ObjectModel.Uwp.IAdaptiveCardElement CardElement { get; };
- Windows.UI.Xaml.UIElement Separator { get; };
- Windows.UI.Xaml.Controls.Panel ParentPanel { get; };
+ xaml.Controls.ColumnDefinition ColumnDefinition { get; };
+ AdaptiveCards.ObjectModel.Xaml_OM.IAdaptiveCardElement CardElement { get; };
+ xaml.UIElement Separator { get; };
+ xaml.Controls.Panel ParentPanel { get; };
Boolean ExpectedVisibility;
Boolean IsStretchable;
}
diff --git a/source/uwp/winui3/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj b/source/uwp/winui3/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj
index 322b6103c0..6bd3a29b65 100644
--- a/source/uwp/winui3/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj
+++ b/source/uwp/winui3/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj
@@ -130,7 +130,8 @@
-
+
+ %(PreprocessorDefinitions);USE_WINUI3
diff --git a/source/uwp/winui3/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj.filters b/source/uwp/winui3/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj.filters
index cf3b998427..19a4009a66 100644
--- a/source/uwp/winui3/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj.filters
+++ b/source/uwp/winui3/AdaptiveCardsObjectModel/AdaptiveCardsObjectModel.vcxproj.filters
@@ -1,8 +1,5 @@
-
-
-
diff --git a/source/uwp/winui3/AdaptiveCardsObjectModel/idl/AdaptiveCards.ObjectModel.WinUI3.idl b/source/uwp/winui3/AdaptiveCardsObjectModel/idl/AdaptiveCards.ObjectModel.WinUI3.idl
deleted file mode 100644
index 7104fddf22..0000000000
--- a/source/uwp/winui3/AdaptiveCardsObjectModel/idl/AdaptiveCards.ObjectModel.WinUI3.idl
+++ /dev/null
@@ -1,874 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-namespace AdaptiveCards.ObjectModel.WinUI3
-{
- runtimeclass AdaptiveCardParseResult;
-
- enum TextSize
- {
- Small = 0,
- Default,
- Medium,
- Large,
- ExtraLarge,
- };
-
- enum TextWeight
- {
- Lighter = 0,
- Default,
- Bolder,
- };
-
- enum ForegroundColor
- {
- Default = 0,
- Dark,
- Light,
- Accent,
- Good,
- Warning,
- Attention,
- };
-
- enum HAlignment
- {
- Left = 0,
- Center,
- Right,
- };
-
- enum VAlignment
- {
- Top = 0,
- Center,
- Bottom,
- };
-
- enum BackgroundImageFillMode
- {
- Cover = 0,
- RepeatHorizontally,
- RepeatVertically,
- Repeat,
- };
-
- enum ElementType
- {
- Unsupported = 0,
- AdaptiveCard,
- TextBlock,
- Image,
- Container,
- Column,
- ColumnSet,
- FactSet,
- Fact,
- ImageSet,
- ChoiceInput,
- ChoiceSetInput,
- DateInput,
- NumberInput,
- TextInput,
- TimeInput,
- ToggleInput,
- Custom,
- Media,
- ActionSet,
- RichTextBlock,
- TableCell,
- TableRow,
- Table,
- };
-
- enum ActionType
- {
- Unsupported = 0,
- ShowCard,
- Submit,
- OpenUrl,
- ToggleVisibility,
- Execute,
- Custom,
- };
-
- enum ImageStyle
- {
- Default = 0,
- Person,
- };
-
- enum ImageSize
- {
- None = 0,
- Auto,
- Stretch,
- Small,
- Medium,
- Large,
- };
-
- enum SeparatorThickness
- {
- Default = 0,
- Thick,
- };
-
- enum Spacing
- {
- Default = 0,
- None,
- Small,
- Medium,
- Large,
- ExtraLarge,
- Padding,
- };
-
- enum ChoiceSetStyle
- {
- Compact = 0,
- Expanded,
- Filtered,
- };
-
- enum TextInputStyle
- {
- Text = 0,
- Tel,
- Url,
- Email,
- Password,
- };
-
- enum ContainerStyle
- {
- None = 0,
- Default,
- Emphasis,
- Good,
- Attention,
- Warning,
- Accent,
- };
-
- enum FontType
- {
- Default = 0,
- Monospace,
- };
-
- enum ErrorStatusCode
- {
- InvalidJson = 0,
- RenderFailed,
- RequiredPropertyMissing,
- InvalidPropertyValue,
- UnsupportedParserOverride,
- CustomError,
- };
-
- enum WarningStatusCode
- {
- UnknownElementType = 0,
- UnknownActionElementType,
- UnknownPropertyOnElement,
- UnknownEnumValue,
- NoRendererForType,
- InteractivityNotSupported,
- MaxActionsExceeded,
- AssetLoadFailed,
- UnsupportedSchemaVersion,
- UnsupportedMediaType,
- InvalidMediaMix,
- InvalidValue,
- UnsupportedValue,
- PerformingFallback,
- CustomWarning,
- EmptyLabelInRequiredInput,
- MissingValidationErrorMessage,
- RequiredPropertyMissing,
- };
-
- enum VerticalContentAlignment
- {
- Top = 0,
- Center,
- Bottom,
- };
-
- enum HeightType
- {
- Auto = 0,
- Stretch,
- };
-
- enum IsVisible
- {
- IsVisibleToggle = 0,
- IsVisibleTrue,
- IsVisibleFalse,
- };
-
- enum FallbackType
- {
- None = 0,
- Drop,
- Content,
- };
-
- [flags] enum BleedDirection {
- None = 0x0000,
- Left = 0x0001,
- Right = 0x0010,
- Up = 0x0100,
- Down = 0x1000,
- All = Left | Right | Up | Down,
- };
-
- enum AssociatedInputs
- {
- Auto = 0,
- None,
- };
-
- enum TextStyle
- {
- Default = 0,
- Heading,
- ColumnHeader,
- };
-
- enum ActionMode
- {
- Primary = 0,
- Secondary,
- };
-
- enum ActionRole
- {
- Button = 0,
- Link,
- Tab,
- Menu,
- MenuItem
- };
-
- declare { interface Windows.Foundation.Collections.IVector; }
-
- interface IAdaptiveCardElement
- {
- ElementType ElementType { get; };
- String ElementTypeString { get; };
-
- HeightType Height;
- Spacing Spacing;
- Boolean Separator;
- String Id;
- Boolean IsVisible;
- FallbackType FallbackType;
- IAdaptiveCardElement FallbackContent;
- Windows.Data.Json.JsonObject AdditionalProperties;
- Windows.Foundation.Collections.IVector Requirements { get; };
-
- Windows.Data.Json.JsonObject ToJson();
- };
-
- runtimeclass AdaptiveRemoteResourceInformation
- {
- AdaptiveRemoteResourceInformation();
-
- String Url;
- String MimeType;
- };
-
- interface IAdaptiveElementWithRemoteResources
- {
- Windows.Foundation.Collections.IVectorView GetResourceInformation();
- };
-
- interface IAdaptiveTextElement
- {
- Windows.Foundation.IReference Size;
- Windows.Foundation.IReference Weight;
- Windows.Foundation.IReference Color;
- String Text;
- Windows.Foundation.IReference IsSubtle;
- String Language;
- Windows.Foundation.IReference FontType;
- };
-
- runtimeclass AdaptiveTextBlock : IAdaptiveCardElement, IAdaptiveTextElement
- {
- AdaptiveTextBlock();
-
- Boolean Wrap;
- Windows.Foundation.IReference HorizontalAlignment;
- UInt32 MaxLines;
- Windows.Foundation.IReference Style;
- };
-
- [version(1), uuid("0AC70C29-FA90-4C28-A6D1-A6EF58126085")] interface IAdaptiveInline {};
-
- runtimeclass AdaptiveTextRun : IAdaptiveInline, IAdaptiveTextElement
- {
- AdaptiveTextRun();
-
- Boolean Italic;
- Boolean Strikethrough;
- Boolean Highlight;
- Boolean Underline;
- IAdaptiveActionElement SelectAction;
- };
-
- runtimeclass AdaptiveRichTextBlock : IAdaptiveCardElement
- {
- AdaptiveRichTextBlock();
-
- Windows.Foundation.IReference HorizontalAlignment;
- Windows.Foundation.Collections.IVector Inlines { get; };
- };
-
- interface IContentSource{
- String MimeType;
- String Url;
- };
-
- [default_interface] runtimeclass AdaptiveCaptionSource : IContentSource
- {
- AdaptiveCaptionSource();
- String Label;
- };
-
- [default_interface] runtimeclass AdaptiveMediaSource : IContentSource
- {
- AdaptiveMediaSource();
- };
-
- runtimeclass AdaptiveMedia : IAdaptiveCardElement
- {
- AdaptiveMedia();
-
- String Poster;
- String AltText;
-
- Windows.Foundation.Collections.IVector Sources { get; };
- Windows.Foundation.Collections.IVector CaptionSources { get; };
- };
-
- runtimeclass AdaptiveBackgroundImage
- {
- AdaptiveBackgroundImage();
-
- String Url;
- BackgroundImageFillMode FillMode;
- HAlignment HorizontalAlignment;
- VAlignment VerticalAlignment;
- };
-
- runtimeclass AdaptiveAuthCardButton
- {
- AdaptiveAuthCardButton();
-
- String Type;
- String Title;
- String Image;
- String Value;
- };
-
- runtimeclass AdaptiveTokenExchangeResource
- {
- AdaptiveTokenExchangeResource();
-
- String Id;
- String Uri;
- String ProviderId;
- };
-
- runtimeclass AdaptiveAuthentication
- {
- AdaptiveAuthentication();
-
- String Text;
- String ConnectionName;
- AdaptiveTokenExchangeResource TokenExchangeResource;
- Windows.Foundation.Collections.IVector Buttons { get; };
- };
-
- runtimeclass AdaptiveRefresh
- {
- AdaptiveRefresh();
-
- IAdaptiveActionElement Action;
- Windows.Foundation.Collections.IVector UserIds { get; };
- };
-
- runtimeclass AdaptiveCard
- {
- AdaptiveCard();
-
- Windows.Foundation.Collections.IVector Body { get; };
- Windows.Foundation.Collections.IVector Actions { get; };
- ElementType ElementType { get; };
- UInt32 InternalId { get; };
- String Version;
- String FallbackText;
- AdaptiveBackgroundImage BackgroundImage;
- String Language;
- String Speak;
- ContainerStyle Style;
- IAdaptiveActionElement SelectAction;
- VerticalContentAlignment VerticalContentAlignment;
- HeightType Height;
- UInt32 MinHeight;
- AdaptiveRefresh Refresh;
- AdaptiveAuthentication Authentication;
- Windows.Foundation.IReference Rtl;
-
- Windows.Data.Json.JsonObject ToJson();
- Windows.Foundation.Collections.IVectorView GetResourceInformation();
-
- static AdaptiveCardParseResult FromJson(Windows.Data.Json.JsonObject adaptiveJson);
-
- [method_name("FromJsonWithParserRegistration")] static AdaptiveCardParseResult FromJson(
- Windows.Data.Json.JsonObject adaptiveJson,
- AdaptiveElementParserRegistration elementRegistration,
- AdaptiveActionParserRegistration actionRegistration);
-
- static AdaptiveCardParseResult FromJsonString(String adaptiveJson);
-
- [method_name("FromJsonStringWithParserRegistration")] static AdaptiveCardParseResult FromJsonString(
- String adaptiveJson, AdaptiveElementParserRegistration elementRegistration, AdaptiveActionParserRegistration actionRegistration);
- };
-
- runtimeclass AdaptiveCardParseResult
- {
- AdaptiveCardParseResult();
-
- AdaptiveCard AdaptiveCard { get; };
- Windows.Foundation.Collections.IVector Errors { get; };
- Windows.Foundation.Collections.IVector Warnings { get; };
- };
-
- runtimeclass AdaptiveImage : IAdaptiveCardElement
- {
- AdaptiveImage();
-
- String Url;
- String BackgroundColor;
- ImageStyle Style;
- ImageSize Size;
- UInt32 PixelWidth;
- UInt32 PixelHeight;
- Windows.Foundation.IReference HorizontalAlignment;
- String AltText;
- IAdaptiveActionElement SelectAction;
- };
-
- runtimeclass AdaptiveImageSet : IAdaptiveCardElement
- {
- AdaptiveImageSet();
-
- Windows.Foundation.Collections.IVector Images { get; };
- ImageSize ImageSize;
- };
-
- runtimeclass AdaptiveChoiceInput
- {
- AdaptiveChoiceInput();
-
- ElementType ElementType { get; };
- String Title;
- String Value;
- };
-
- runtimeclass AdaptiveChoiceSetInput : IAdaptiveInputElement, IAdaptiveCardElement
- {
- AdaptiveChoiceSetInput();
-
- String Value;
- Boolean IsMultiSelect;
- String Placeholder;
- Boolean Wrap;
- ChoiceSetStyle ChoiceSetStyle;
- Windows.Foundation.Collections.IVector Choices { get; };
- };
-
- runtimeclass AdaptiveDateInput : IAdaptiveInputElement, IAdaptiveCardElement
- {
- AdaptiveDateInput();
-
- String Max;
- String Min;
- String Placeholder;
- String Value;
- };
-
- runtimeclass AdaptiveNumberInput : IAdaptiveInputElement, IAdaptiveCardElement
- {
- AdaptiveNumberInput();
-
- Windows.Foundation.IReference Max;
- Windows.Foundation.IReference Min;
- String Placeholder;
- Windows.Foundation.IReference Value;
- };
-
- runtimeclass AdaptiveTextInput : IAdaptiveInputElement, IAdaptiveCardElement
- {
- AdaptiveTextInput();
-
- Boolean IsMultiline;
- UInt32 MaxLength;
- String Placeholder;
- String Value;
- TextInputStyle TextInputStyle;
- IAdaptiveActionElement InlineAction;
- String Regex;
- };
-
- runtimeclass AdaptiveTimeInput : IAdaptiveInputElement, IAdaptiveCardElement
- {
- AdaptiveTimeInput();
-
- String Max;
- String Min;
- String Placeholder;
- String Value;
- };
-
- runtimeclass AdaptiveToggleInput : IAdaptiveInputElement, IAdaptiveCardElement
- {
- AdaptiveToggleInput();
-
- String Title;
- Boolean Wrap;
- String Value;
- String ValueOff;
- String ValueOn;
- };
-
- interface IAdaptiveContainerBase
- {
- ContainerStyle Style;
- IAdaptiveActionElement SelectAction;
- Boolean Bleed;
- BleedDirection BleedDirection { get; };
- UInt32 MinHeight;
- };
-
- interface IAdaptiveContainer
- {
- Windows.Foundation.IReference VerticalContentAlignment;
- Windows.Foundation.Collections.IVector Items { get; };
- AdaptiveBackgroundImage BackgroundImage;
- Windows.Foundation.IReference Rtl;
- };
-
- [default_interface] runtimeclass AdaptiveContainer : IAdaptiveContainer, IAdaptiveContainerBase, IAdaptiveCardElement
- {
- AdaptiveContainer();
- };
-
- runtimeclass AdaptiveColumn : IAdaptiveContainerBase, IAdaptiveCardElement
- {
- AdaptiveColumn();
-
- String Width;
- UInt32 PixelWidth;
- Windows.Foundation.IReference VerticalContentAlignment;
- Windows.Foundation.Collections.IVector Items { get; };
- AdaptiveBackgroundImage BackgroundImage;
- Windows.Foundation.IReference Rtl;
- };
-
- runtimeclass AdaptiveColumnSet : IAdaptiveContainerBase, IAdaptiveCardElement
- {
- AdaptiveColumnSet();
-
- Windows.Foundation.Collections.IVector Columns { get; };
- };
-
- runtimeclass AdaptiveFact
- {
- AdaptiveFact();
-
- ElementType ElementType { get; };
- String Title;
- String Value;
- String Language;
- };
-
- runtimeclass AdaptiveFactSet : IAdaptiveCardElement
- {
- AdaptiveFactSet();
-
- Windows.Foundation.Collections.IVector Facts { get; };
- };
-
- [default_interface] runtimeclass AdaptiveTableCell : IAdaptiveContainer, IAdaptiveContainerBase, IAdaptiveCardElement
- {
- AdaptiveTableCell();
- }
-
- runtimeclass AdaptiveTableRow : IAdaptiveCardElement
- {
- AdaptiveTableRow();
-
- Windows.Foundation.IReference HorizontalCellContentAlignment;
- Windows.Foundation.IReference VerticalCellContentAlignment;
- ContainerStyle Style;
-
- Windows.Foundation.Collections.IVector Cells { get; };
- }
-
- runtimeclass AdaptiveTableColumnDefinition
- {
- AdaptiveTableColumnDefinition();
-
- Windows.Foundation.IReference HorizontalCellContentAlignment;
- Windows.Foundation.IReference VerticalCellContentAlignment;
-
- Windows.Foundation.IReference Width;
- Windows.Foundation.IReference PixelWidth;
- };
-
- runtimeclass AdaptiveTable : IAdaptiveCardElement
- {
- AdaptiveTable();
-
- Boolean ShowGridLines;
- Boolean FirstRowAsHeaders;
- Windows.Foundation.IReference HorizontalCellContentAlignment;
- Windows.Foundation.IReference VerticalCellContentAlignment;
- ContainerStyle GridStyle;
-
- Windows.Foundation.Collections.IVector Columns { get; };
- Windows.Foundation.Collections.IVector Rows { get; };
- };
-
- runtimeclass AdaptiveActionSet : IAdaptiveCardElement
- {
- AdaptiveActionSet();
-
- Windows.Foundation.Collections.IVector Actions { get; };
- UInt32 InternalId { get; };
- };
-
- [default_interface] runtimeclass AdaptiveUnsupportedAction : IAdaptiveActionElement
- {
- AdaptiveUnsupportedAction();
- };
-
- [default_interface] runtimeclass AdaptiveUnsupportedElement : IAdaptiveCardElement
- {
- AdaptiveUnsupportedElement();
- };
-
- interface IAdaptiveActionElement
- {
- ActionType ActionType { get; };
- String ActionTypeString { get; };
- String Title;
- String Id;
- FallbackType FallbackType;
- IAdaptiveActionElement FallbackContent;
- String IconUrl;
- String Style;
- String Tooltip;
- Windows.Data.Json.JsonObject AdditionalProperties;
- Boolean IsEnabled;
- ActionMode Mode;
- ActionRole Role;
-
- Windows.Data.Json.JsonObject ToJson();
- };
-
- runtimeclass AdaptiveOpenUrlAction : IAdaptiveActionElement
- {
- AdaptiveOpenUrlAction();
-
- Windows.Foundation.Uri Url;
- UInt32 InternalId { get; };
- };
-
- runtimeclass AdaptiveShowCardAction : IAdaptiveActionElement
- {
- AdaptiveShowCardAction();
-
- AdaptiveCard Card;
- UInt32 InternalId { get; };
- };
-
- runtimeclass AdaptiveSubmitAction : IAdaptiveActionElement
- {
- AdaptiveSubmitAction();
-
- Windows.Data.Json.JsonValue DataJson;
- AssociatedInputs AssociatedInputs;
- UInt32 InternalId { get; };
- };
-
- runtimeclass AdaptiveExecuteAction : IAdaptiveActionElement
- {
- AdaptiveExecuteAction();
-
- Windows.Data.Json.JsonValue DataJson;
- AssociatedInputs AssociatedInputs;
- String Verb;
- UInt32 InternalId { get; };
- };
-
- runtimeclass AdaptiveToggleVisibilityTarget
- {
- AdaptiveToggleVisibilityTarget();
-
- String ElementId;
- IsVisible IsVisible;
- };
-
- runtimeclass AdaptiveToggleVisibilityAction : IAdaptiveActionElement
- {
- AdaptiveToggleVisibilityAction();
-
- Windows.Foundation.Collections.IVector TargetElements { get; };
- UInt32 InternalId { get; };
- };
-
- runtimeclass AdaptiveRequirement
- {
- AdaptiveRequirement(String requirementName, String requirementversion);
-
- String Name;
- String Version;
- }
-
- interface IAdaptiveElementParser
- {
- IAdaptiveCardElement FromJson(Windows.Data.Json.JsonObject inputJson,
- AdaptiveElementParserRegistration elementParsers,
- AdaptiveActionParserRegistration actionParsers,
- Windows.Foundation.Collections.IVector warnings);
- };
-
- runtimeclass AdaptiveElementParserRegistration
- {
- AdaptiveElementParserRegistration();
-
- void Set(String type, IAdaptiveElementParser parser);
- IAdaptiveElementParser Get(String type);
- void Remove(String type);
- };
-
- runtimeclass AdaptiveActionParserRegistration
- {
- AdaptiveActionParserRegistration();
-
- void Set(String type, IAdaptiveActionParser parser);
- IAdaptiveActionParser Get(String type);
- void Remove(String type);
- };
-
- interface IAdaptiveActionParser
- {
- IAdaptiveActionElement FromJson(Windows.Data.Json.JsonObject inputJson,
- AdaptiveElementParserRegistration elementParsers,
- AdaptiveActionParserRegistration actionParsers,
- Windows.Foundation.Collections.IVector warnings);
- };
-
- interface IAdaptiveInputElement
- {
- Boolean IsRequired;
- String ErrorMessage;
- String Label;
- };
-
- [default_interface] runtimeclass AdaptiveTextBlockParser : IAdaptiveElementParser { AdaptiveTextBlockParser(); };
-
- [default_interface] runtimeclass AdaptiveRichTextBlockParser : IAdaptiveElementParser
- {
- AdaptiveRichTextBlockParser();
- };
-
- [default_interface] runtimeclass AdaptiveImageParser : IAdaptiveElementParser { AdaptiveImageParser(); };
-
- [default_interface] runtimeclass AdaptiveImageSetParser : IAdaptiveElementParser { AdaptiveImageSetParser(); };
-
- [default_interface] runtimeclass AdaptiveContainerParser : IAdaptiveElementParser { AdaptiveContainerParser(); };
-
- [default_interface] runtimeclass AdaptiveColumnParser : IAdaptiveElementParser { AdaptiveColumnParser(); };
-
- [default_interface] runtimeclass AdaptiveColumnSetParser : IAdaptiveElementParser { AdaptiveColumnSetParser(); };
-
- [default_interface] runtimeclass AdaptiveChoiceSetInputParser : IAdaptiveElementParser
- {
- AdaptiveChoiceSetInputParser();
- };
-
- [default_interface] runtimeclass AdaptiveDateInputParser : IAdaptiveElementParser { AdaptiveDateInputParser(); };
-
- [default_interface] runtimeclass AdaptiveNumberInputParser : IAdaptiveElementParser
- {
- AdaptiveNumberInputParser();
- };
-
- [default_interface] runtimeclass AdaptiveTextInputParser : IAdaptiveElementParser { AdaptiveTextInputParser(); };
-
- [default_interface] runtimeclass AdaptiveTimeInputParser : IAdaptiveElementParser { AdaptiveTimeInputParser(); };
-
- [default_interface] runtimeclass AdaptiveToggleInputParser : IAdaptiveElementParser
- {
- AdaptiveToggleInputParser();
- };
-
- [default_interface] runtimeclass AdaptiveFactSetParser : IAdaptiveElementParser { AdaptiveFactSetParser(); };
-
- [default_interface] runtimeclass AdaptiveMediaParser : IAdaptiveElementParser { AdaptiveMediaParser(); };
-
- [default_interface] runtimeclass AdaptiveActionSetParser : IAdaptiveElementParser { AdaptiveActionSetParser(); };
-
- [default_interface] runtimeclass AdaptiveOpenUrlActionParser : IAdaptiveActionParser
- {
- AdaptiveOpenUrlActionParser();
- };
-
- [default_interface] runtimeclass AdaptiveShowCardActionParser : IAdaptiveActionParser
- {
- AdaptiveShowCardActionParser();
- };
-
- [default_interface] runtimeclass AdaptiveSubmitActionParser : IAdaptiveActionParser
- {
- AdaptiveSubmitActionParser();
- };
-
- [default_interface] runtimeclass AdaptiveExecuteActionParser : IAdaptiveActionParser
- {
- AdaptiveExecuteActionParser();
- };
-
- [default_interface] runtimeclass AdaptiveToggleVisibilityActionParser : IAdaptiveActionParser
- {
- AdaptiveToggleVisibilityActionParser();
- };
-
- [default_interface] runtimeclass AdaptiveTableParser : IAdaptiveElementParser { AdaptiveTableParser(); };
-
- runtimeclass AdaptiveError
- {
- AdaptiveError(ErrorStatusCode statusCode, String message);
-
- ErrorStatusCode StatusCode;
- String Message;
- };
-
- runtimeclass AdaptiveWarning
- {
- AdaptiveWarning(WarningStatusCode statusCode, String message);
-
- WarningStatusCode StatusCode;
- String Message;
- };
-}
\ No newline at end of file
diff --git a/source/uwp/winui3/Renderer/AdaptiveCardRenderer.vcxproj b/source/uwp/winui3/Renderer/AdaptiveCardRenderer.vcxproj
index 50c7bad1ca..0fc4b085a8 100644
--- a/source/uwp/winui3/Renderer/AdaptiveCardRenderer.vcxproj
+++ b/source/uwp/winui3/Renderer/AdaptiveCardRenderer.vcxproj
@@ -136,8 +136,9 @@
-
- ..\AdaptiveCardsObjectModel\idl;
+
+ ..\..\SharedObjectModel\idl;
+ %(PreprocessorDefinitions);USE_WINUI3
diff --git a/source/uwp/winui3/Renderer/AdaptiveCardRenderer.vcxproj.filters b/source/uwp/winui3/Renderer/AdaptiveCardRenderer.vcxproj.filters
index 22f80f1f1c..19a4009a66 100644
--- a/source/uwp/winui3/Renderer/AdaptiveCardRenderer.vcxproj.filters
+++ b/source/uwp/winui3/Renderer/AdaptiveCardRenderer.vcxproj.filters
@@ -1,8 +1,5 @@
-
-
-
diff --git a/source/uwp/winui3/Renderer/idl/AdaptiveCards.Rendering.WinUI3.idl b/source/uwp/winui3/Renderer/idl/AdaptiveCards.Rendering.WinUI3.idl
deleted file mode 100644
index 3070ba579e..0000000000
--- a/source/uwp/winui3/Renderer/idl/AdaptiveCards.Rendering.WinUI3.idl
+++ /dev/null
@@ -1,668 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-namespace AdaptiveCards
-{
- namespace Rendering
- {
- namespace WinUI3
- {
- runtimeclass AdaptiveHostConfigParseResult;
-
- enum ActionsOrientation
- {
- Vertical = 0,
- Horizontal,
- };
-
- enum ActionAlignment
- {
- Left = 0,
- Center,
- Right,
- Stretch,
- };
-
- enum ActionMode
- {
- Inline = 0,
- Popup,
- };
-
- enum IconPlacement
- {
- AboveTitle = 0,
- LeftOfTitle,
- };
-
- runtimeclass AdaptiveCardRenderer
- {
- AdaptiveCardRenderer();
-
- AdaptiveCardResourceResolvers ResourceResolvers { get; };
- AdaptiveHostConfig HostConfig;
- Microsoft.UI.Xaml.ResourceDictionary OverrideStyles;
- AdaptiveFeatureRegistration FeatureRegistration;
-
- Boolean OverflowMaxActions;
- String OverflowButtonText;
- String OverflowButtonAccessibilityText;
-
- void SetFixedDimensions(UInt32 desiredWidth, UInt32 desiredHeight);
- void ResetFixedDimensions();
-
- RenderedAdaptiveCard RenderAdaptiveCard(AdaptiveCards.ObjectModel.WinUI3.AdaptiveCard adaptiveCard);
- RenderedAdaptiveCard RenderAdaptiveCardFromJsonString(String adaptiveCard);
- RenderedAdaptiveCard RenderAdaptiveCardFromJson(Windows.Data.Json.JsonObject adaptiveCard);
-
- AdaptiveElementRendererRegistration ElementRenderers { get; };
- AdaptiveActionRendererRegistration ActionRenderers { get; };
- }
-
- runtimeclass AdaptiveActionEventArgs
- {
- AdaptiveCards.ObjectModel.WinUI3.IAdaptiveActionElement Action { get; };
- AdaptiveInputs Inputs { get; };
- }
-
- runtimeclass AdaptiveMediaEventArgs
- {
- AdaptiveCards.ObjectModel.WinUI3.AdaptiveMedia Media { get; };
- }
-
- runtimeclass AdaptiveContainerStyleDefinition
- {
- AdaptiveContainerStyleDefinition();
-
- Windows.UI.Color BackgroundColor;
- Windows.UI.Color BorderColor;
- AdaptiveColorsConfig ForegroundColors;
- }
-
- runtimeclass AdaptiveContainerStylesDefinition
- {
- AdaptiveContainerStylesDefinition();
-
- AdaptiveContainerStyleDefinition Default;
- AdaptiveContainerStyleDefinition Emphasis;
- AdaptiveContainerStyleDefinition Good;
- AdaptiveContainerStyleDefinition Attention;
- AdaptiveContainerStyleDefinition Warning;
- AdaptiveContainerStyleDefinition Accent;
- }
-
- runtimeclass AdaptiveFontSizesConfig
- {
- AdaptiveFontSizesConfig();
-
- UInt32 Small;
- UInt32 Default;
- UInt32 Medium;
- UInt32 Large;
- UInt32 ExtraLarge;
- }
-
- runtimeclass AdaptiveFontWeightsConfig
- {
- AdaptiveFontWeightsConfig();
-
- UInt16 Lighter;
- UInt16 Default;
- UInt16 Bolder;
- }
-
- runtimeclass AdaptiveFontTypeDefinition
- {
- AdaptiveFontTypeDefinition();
-
- String FontFamily;
- AdaptiveFontWeightsConfig FontWeights;
- AdaptiveFontSizesConfig FontSizes;
- }
-
- runtimeclass AdaptiveFontTypesDefinition
- {
- AdaptiveFontTypesDefinition();
-
- AdaptiveFontTypeDefinition Default;
- AdaptiveFontTypeDefinition Monospace;
- }
-
- runtimeclass AdaptiveHighlightColorConfig
- {
- AdaptiveHighlightColorConfig();
-
- Windows.UI.Color Default;
- Windows.UI.Color Subtle;
- }
-
- runtimeclass AdaptiveColorConfig
- {
- AdaptiveColorConfig();
-
- Windows.UI.Color Default;
- Windows.UI.Color Subtle;
- AdaptiveHighlightColorConfig HighlightColors;
- }
-
- runtimeclass AdaptiveColorsConfig
- {
- AdaptiveColorsConfig();
-
- AdaptiveColorConfig Default;
- AdaptiveColorConfig Accent;
- AdaptiveColorConfig Dark;
- AdaptiveColorConfig Light;
- AdaptiveColorConfig Good;
- AdaptiveColorConfig Warning;
- AdaptiveColorConfig Attention;
- }
-
- interface IAdaptiveTextStyleConfig
- {
- AdaptiveCards.ObjectModel.WinUI3.TextWeight Weight;
- AdaptiveCards.ObjectModel.WinUI3.TextSize Size;
- AdaptiveCards.ObjectModel.WinUI3.ForegroundColor Color;
- Boolean IsSubtle;
- AdaptiveCards.ObjectModel.WinUI3.FontType FontType;
- }
-
- runtimeclass AdaptiveTextStyleConfig : [default] IAdaptiveTextStyleConfig { AdaptiveTextStyleConfig(); }
-
- runtimeclass AdaptiveTextStylesConfig
- {
- AdaptiveTextStylesConfig();
-
- AdaptiveTextStyleConfig Heading;
- AdaptiveTextStyleConfig ColumnHeader;
- }
-
- runtimeclass AdaptiveFactSetTextConfig : IAdaptiveTextStyleConfig
- {
- AdaptiveFactSetTextConfig();
-
- Boolean Wrap;
- UInt32 MaxWidth;
- }
-
- runtimeclass AdaptiveSpacingConfig
- {
- AdaptiveSpacingConfig();
-
- UInt32 Small;
- UInt32 Default;
- UInt32 Medium;
- UInt32 Large;
- UInt32 ExtraLarge;
- UInt32 Padding;
- }
-
- runtimeclass AdaptiveSeparatorConfig
- {
- AdaptiveSeparatorConfig();
-
- UInt32 LineThickness;
- Windows.UI.Color LineColor;
- }
-
- runtimeclass AdaptiveImageSizesConfig
- {
- AdaptiveImageSizesConfig();
-
- UInt32 Small;
- UInt32 Medium;
- UInt32 Large;
- }
-
- runtimeclass AdaptiveImageSetConfig
- {
- AdaptiveImageSetConfig();
-
- AdaptiveCards.ObjectModel.WinUI3.ImageSize ImageSize;
- UInt32 MaxImageHeight;
- }
-
- runtimeclass AdaptiveImageConfig
- {
- AdaptiveImageConfig();
-
- AdaptiveCards.ObjectModel.WinUI3.ImageSize ImageSize;
- }
-
- runtimeclass AdaptiveCardConfig
- {
- AdaptiveCardConfig();
-
- Boolean AllowCustomStyle;
- }
-
- runtimeclass AdaptiveFactSetConfig
- {
- AdaptiveFactSetConfig();
-
- AdaptiveFactSetTextConfig Title;
- AdaptiveFactSetTextConfig Value;
- UInt32 Spacing;
- }
-
- runtimeclass AdaptiveShowCardActionConfig
- {
- AdaptiveShowCardActionConfig();
-
- ActionMode ActionMode;
- AdaptiveCards.ObjectModel.WinUI3.ContainerStyle Style;
- UInt32 InlineTopMargin;
- }
-
- runtimeclass AdaptiveActionsConfig
- {
- AdaptiveActionsConfig();
-
- AdaptiveShowCardActionConfig ShowCard;
- ActionsOrientation ActionsOrientation;
- ActionAlignment ActionAlignment;
- UInt32 ButtonSpacing;
- UInt32 MaxActions;
- AdaptiveCards.ObjectModel.WinUI3.Spacing Spacing;
- IconPlacement IconPlacement;
- UInt32 IconSize;
- }
-
- runtimeclass AdaptiveMediaConfig
- {
- AdaptiveMediaConfig();
-
- String DefaultPoster;
- String PlayButton;
- Boolean AllowInlinePlayback;
- }
-
- runtimeclass AdaptiveInputLabelConfig
- {
- AdaptiveInputLabelConfig();
-
- AdaptiveCards.ObjectModel.WinUI3.ForegroundColor Color;
- Boolean IsSubtle;
- AdaptiveCards.ObjectModel.WinUI3.TextSize Size;
- String Suffix;
- AdaptiveCards.ObjectModel.WinUI3.TextWeight Weight;
- }
-
- runtimeclass AdaptiveLabelConfig
- {
- AdaptiveLabelConfig();
-
- AdaptiveCards.ObjectModel.WinUI3.Spacing InputSpacing;
-
- AdaptiveInputLabelConfig RequiredInputs;
- AdaptiveInputLabelConfig OptionalInputs;
- }
-
- runtimeclass AdaptiveErrorMessageConfig
- {
- AdaptiveErrorMessageConfig();
-
- AdaptiveCards.ObjectModel.WinUI3.TextSize Size;
- AdaptiveCards.ObjectModel.WinUI3.Spacing Spacing;
- AdaptiveCards.ObjectModel.WinUI3.TextWeight Weight;
- }
-
- runtimeclass AdaptiveInputsConfig
- {
- AdaptiveInputsConfig();
-
- AdaptiveErrorMessageConfig ErrorMessage;
- AdaptiveLabelConfig Label;
- }
-
- runtimeclass AdaptiveTextBlockConfig
- {
- AdaptiveTextBlockConfig();
-
- UInt32 HeadingLevel;
- }
-
- runtimeclass AdaptiveTableConfig
- {
- AdaptiveTableConfig();
-
- UInt32 CellSpacing;
- }
-
- runtimeclass AdaptiveHostConfig
- {
- AdaptiveHostConfig();
-
- String FontFamily;
- AdaptiveFontSizesConfig FontSizes;
- AdaptiveFontWeightsConfig FontWeights;
- AdaptiveFontTypesDefinition FontTypes;
- Boolean SupportsInteractivity;
- String ImageBaseUrl;
- AdaptiveContainerStylesDefinition ContainerStyles;
- AdaptiveImageSizesConfig ImageSizes;
- AdaptiveSeparatorConfig Separator;
- AdaptiveSpacingConfig Spacing;
- AdaptiveCardConfig AdaptiveCard;
- AdaptiveImageSetConfig ImageSet;
- AdaptiveImageConfig Image;
- AdaptiveFactSetConfig FactSet;
- AdaptiveActionsConfig Actions;
- AdaptiveMediaConfig Media;
- AdaptiveInputsConfig Inputs;
- AdaptiveTextBlockConfig TextBlock;
- AdaptiveTextStylesConfig TextStyles;
- AdaptiveTableConfig Table;
-
- static AdaptiveHostConfigParseResult FromJsonString(String hostConfigJson);
- static AdaptiveHostConfigParseResult FromJson(Windows.Data.Json.JsonObject hostConfigJson);
- }
-
- runtimeclass AdaptiveHostConfigParseResult
- {
- AdaptiveHostConfigParseResult();
-
- AdaptiveHostConfig HostConfig { get; };
- Windows.Foundation.Collections.IVector Errors { get; };
- }
-
- runtimeclass AdaptiveCardResourceResolvers
- {
- AdaptiveCardResourceResolvers();
-
- void Set(String scheme, IAdaptiveCardResourceResolver resolver);
- IAdaptiveCardResourceResolver Get(String scheme);
- }
-
- interface IAdaptiveCardResourceResolver
- {
- Windows.Foundation.IAsyncOperation GetResourceStreamAsync(
- AdaptiveCardGetResourceStreamArgs args);
- }
-
- runtimeclass AdaptiveCardGetResourceStreamArgs
- {
- AdaptiveCardGetResourceStreamArgs();
-
- Windows.Foundation.Uri Url { get; };
-
- [method_name("CreateAdaptiveCardGetResourceStreamArgs")] AdaptiveCardGetResourceStreamArgs(
- Windows.Foundation.Uri uri);
- }
-
- runtimeclass RenderedAdaptiveCard
- {
- RenderedAdaptiveCard();
-
- AdaptiveCards.ObjectModel.WinUI3.AdaptiveCard OriginatingCard { get; };
- AdaptiveHostConfig OriginatingHostConfig { get; };
- Microsoft.UI.Xaml.FrameworkElement FrameworkElement { get; };
- AdaptiveInputs UserInputs { get; };
- Windows.Foundation.Collections.IVector Errors { get; };
- Windows.Foundation.Collections.IVector Warnings { get; };
-
- event Windows.Foundation.TypedEventHandler Action;
- event Windows.Foundation.TypedEventHandler MediaClicked;
- }
-
- runtimeclass AdaptiveInputs
- {
- AdaptiveInputs();
-
- Windows.Data.Json.JsonObject AsJson();
- Windows.Foundation.Collections.ValueSet AsValueSet();
-
- Boolean ValidateInputs(AdaptiveCards.ObjectModel.WinUI3.IAdaptiveActionElement submitAction);
- }
-
- runtimeclass AdaptiveFeatureRegistration
- {
- AdaptiveFeatureRegistration();
-
- void Set(String name, String version);
- String Get(String name);
- void Remove(String name);
- }
-
- runtimeclass AdaptiveElementRendererRegistration
- {
- void Set(String type, IAdaptiveElementRenderer renderer);
- IAdaptiveElementRenderer Get(String type);
- void Remove(String type);
- }
-
- runtimeclass AdaptiveActionRendererRegistration
- {
- AdaptiveActionRendererRegistration();
-
- void Set(String type, IAdaptiveActionRenderer renderer);
- IAdaptiveActionRenderer Get(String type);
- void Remove(String type);
- }
-
- runtimeclass AdaptiveActionInvoker
- {
- AdaptiveActionInvoker();
- AdaptiveActionInvoker(RenderedAdaptiveCard renderResult);
-
- void SendActionEvent(AdaptiveCards.ObjectModel.WinUI3.IAdaptiveActionElement actionElement);
- }
-
- runtimeclass AdaptiveMediaEventInvoker
- {
- AdaptiveMediaEventInvoker();
- AdaptiveMediaEventInvoker(RenderedAdaptiveCard renderResult);
-
- void SendMediaClickedEvent(AdaptiveCards.ObjectModel.WinUI3.AdaptiveMedia mediaElement);
- }
-
- runtimeclass AdaptiveRenderArgs
- {
- AdaptiveRenderArgs();
-
- AdaptiveCards.ObjectModel.WinUI3.ContainerStyle ContainerStyle;
- IInspectable ParentElement;
- Boolean IsInShowCard;
- Boolean AllowAboveTitleIconPlacement;
- Boolean AncestorHasFallback;
- Boolean AddContainerPadding;
- AdaptiveCards.ObjectModel.WinUI3.AdaptiveCard ParentCard;
- }
-
- interface IAdaptiveInputValue
- {
- AdaptiveCards.ObjectModel.WinUI3.IAdaptiveInputElement InputElement { get; };
- String CurrentValue { get; };
- Microsoft.UI.Xaml.UIElement ErrorMessage
- {
- get;
- set;
- };
- Boolean Validate();
- void SetFocus();
- }
-
- runtimeclass AdaptiveRenderContext
- {
- AdaptiveRenderContext();
-
- AdaptiveHostConfig HostConfig { get; };
- AdaptiveFeatureRegistration FeatureRegistration { get; };
- AdaptiveElementRendererRegistration ElementRenderers { get; };
- AdaptiveActionRendererRegistration ActionRenderers { get; };
- AdaptiveCardResourceResolvers ResourceResolvers { get; };
- AdaptiveActionInvoker ActionInvoker { get; };
- AdaptiveMediaEventInvoker MediaEventInvoker { get; };
- Microsoft.UI.Xaml.ResourceDictionary OverrideStyles { get; };
- AdaptiveInputs UserInputs { get; };
- Windows.Foundation.IReference Rtl;
- Windows.Foundation.IReference TextStyle;
- Windows.Foundation.IReference HorizontalContentAlignment;
-
- void AddInputValue(IAdaptiveInputValue inputValue, AdaptiveRenderArgs renderArgs);
- void LinkSubmitActionToCard(AdaptiveCards.ObjectModel.WinUI3.IAdaptiveActionElement submitAction,
- AdaptiveRenderArgs renderArgs);
- void LinkCardToParent(AdaptiveCards.ObjectModel.WinUI3.AdaptiveCard card, AdaptiveRenderArgs renderArgs);
- IAdaptiveInputValue GetInputValue(AdaptiveCards.ObjectModel.WinUI3.IAdaptiveInputElement inputElement);
-
- void AddError(AdaptiveCards.ObjectModel.WinUI3.ErrorStatusCode statusCode, String message);
- void AddWarning(AdaptiveCards.ObjectModel.WinUI3.WarningStatusCode statusCode, String message);
- }
-
- interface IAdaptiveElementRenderer
- {
- Microsoft.UI.Xaml.UIElement Render(AdaptiveCards.ObjectModel.WinUI3.IAdaptiveCardElement element,
- AdaptiveRenderContext context,
- AdaptiveRenderArgs renderArgs);
- }
-
- interface IAdaptiveActionRenderer
- {
- Microsoft.UI.Xaml.UIElement Render(AdaptiveCards.ObjectModel.WinUI3.IAdaptiveActionElement element,
- AdaptiveRenderContext context,
- AdaptiveRenderArgs renderArgs);
- }
-
- [default_interface] runtimeclass AdaptiveTableRenderer : IAdaptiveElementRenderer
- {
- AdaptiveTableRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveTextBlockRenderer : IAdaptiveElementRenderer
- {
- AdaptiveTextBlockRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveRichTextBlockRenderer : IAdaptiveElementRenderer
- {
- AdaptiveRichTextBlockRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveImageRenderer : IAdaptiveElementRenderer
- {
- AdaptiveImageRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveImageSetRenderer : IAdaptiveElementRenderer
- {
- AdaptiveImageSetRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveContainerRenderer : IAdaptiveElementRenderer
- {
- AdaptiveContainerRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveColumnRenderer : IAdaptiveElementRenderer
- {
- AdaptiveColumnRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveColumnSetRenderer : IAdaptiveElementRenderer
- {
- AdaptiveColumnSetRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveChoiceSetInputRenderer : IAdaptiveElementRenderer
- {
- AdaptiveChoiceSetInputRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveDateInputRenderer : IAdaptiveElementRenderer
- {
- AdaptiveDateInputRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveNumberInputRenderer : IAdaptiveElementRenderer
- {
- AdaptiveNumberInputRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveTextInputRenderer : IAdaptiveElementRenderer
- {
- AdaptiveTextInputRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveTimeInputRenderer : IAdaptiveElementRenderer
- {
- AdaptiveTimeInputRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveToggleInputRenderer : IAdaptiveElementRenderer
- {
- AdaptiveToggleInputRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveFactSetRenderer : IAdaptiveElementRenderer
- {
- AdaptiveFactSetRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveMediaRenderer : IAdaptiveElementRenderer
- {
- AdaptiveMediaRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveActionSetRenderer : IAdaptiveElementRenderer
- {
- AdaptiveActionSetRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveOpenUrlActionRenderer : IAdaptiveActionRenderer
- {
- AdaptiveOpenUrlActionRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveShowCardActionRenderer : IAdaptiveActionRenderer
- {
- AdaptiveShowCardActionRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveSubmitActionRenderer : IAdaptiveActionRenderer
- {
- AdaptiveSubmitActionRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveExecuteActionRenderer : IAdaptiveActionRenderer
- {
- AdaptiveExecuteActionRenderer();
- }
-
- [default_interface] runtimeclass AdaptiveToggleVisibilityActionRenderer : IAdaptiveActionRenderer
- {
- AdaptiveToggleVisibilityActionRenderer();
- }
-
- runtimeclass TileControl : Microsoft.UI.Xaml.Controls.ContentControl
- {
- TileControl();
-
- Microsoft.UI.Xaml.UIElement ResolvedImage { get; };
- AdaptiveCards.ObjectModel.WinUI3.AdaptiveBackgroundImage BackgroundImage;
- Windows.Foundation.Size ImageSize;
- void LoadImageBrush(Microsoft.UI.Xaml.UIElement uielement);
- }
-
- runtimeclass WholeItemsPanel : Microsoft.UI.Xaml.Controls.Panel
- {
- WholeItemsPanel();
-
- String GetAltText();
- Boolean IsAllContentClippedOut();
- Boolean IsTruncated();
- }
-
- runtimeclass ElementTagContent
- {
- ElementTagContent();
-
- Microsoft.UI.Xaml.Controls.ColumnDefinition ColumnDefinition { get; };
- AdaptiveCards.ObjectModel.WinUI3.IAdaptiveCardElement CardElement { get; };
- Microsoft.UI.Xaml.UIElement Separator { get; };
- Microsoft.UI.Xaml.Controls.Panel ParentPanel { get; };
- Boolean ExpectedVisibility;
- Boolean IsStretchable;
- }
- }
- }
-}
\ No newline at end of file