Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions components/Notifications/src/Adaptive/AdaptiveImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ public sealed class AdaptiveImage
IAdaptiveChild,
IAdaptiveSubgroupChild
{
/// <summary>
/// Gets or sets the id of this image. Use for lock screen notification.
/// </summary>
public int? Id { get; set; }

/// <summary>
/// Gets or sets the desired cropping of the image.
/// Supported on Tiles since RTM. Supported on Toast since Anniversary Update.
Expand Down Expand Up @@ -81,6 +86,7 @@ internal Element_AdaptiveImage ConvertToElement()
{
Element_AdaptiveImage image = BaseImageHelper.CreateBaseElement(this);

image.Id = Id;
image.Crop = HintCrop;
image.RemoveMargin = HintRemoveMargin;
image.Align = HintAlign;
Expand Down
6 changes: 6 additions & 0 deletions components/Notifications/src/Adaptive/AdaptiveText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ public sealed class AdaptiveText
/// </summary>
public BindableString Text { get; set; }

/// <summary>
/// Gets or sets the id of this text. Use for lock screen notification.
/// </summary>
public int? Id { get; set; }

/// <summary>
/// Gets or sets the target locale of the XML payload, specified as a BCP-47 language tags
/// such as "en-US" or "fr-FR". The locale specified here overrides any other specified
Expand Down Expand Up @@ -108,6 +113,7 @@ internal Element_AdaptiveText ConvertToElement()
{
var answer = new Element_AdaptiveText()
{
Id = Id,
Lang = Language,
Style = HintStyle,
Wrap = HintWrap,
Expand Down
Loading