Windowscommunitytoolkit: [Feature]Add coming in direction property for InAppNotification

Created on 27 May 2020  路  5Comments  路  Source: windows-toolkit/WindowsCommunityToolkit

Describe the problem this feature would solve

Currently InAppNotification always comes from bottom to top. This does not meet all cases.

It's better to leave a Property called "ComingDirection" or something else, let us choose the direction.

InAppNitification

feature request help wanted open discussion

Most helpful comment

Hi, all. Instead of waiting for the new property, we can use the HorizontalOffset and VerticalOffset to customize the coming in direction.

Thanks to @Faywang - MSFT's so answer. How to change the InAppnitification's coming in direction?.

Based on the document of InAppnitification, there are two properties: HorizontalOffset and VerticalOffset. They controls the horizontal and vertical offset of the popup animation, you can change them to redefine the notification's popup direction. For example:

From Bottom to Top:

<controls:InAppNotification x:Name="ExampleInAppNotification"
                            Content="This is a test message."
                            ShowDismissButton="True"
                            AnimationDuration="00:00:00.1000000"
                            VerticalOffset="100"
                            HorizontalOffset="0"
                            StackMode="Replace" />

From Top to Bottom:

<controls:InAppNotification x:Name="ExampleInAppNotification"
                            Content="This is a test message."
                            ShowDismissButton="True"
                            AnimationDuration="00:00:00.1000000"
                            VerticalOffset="-100"
                            HorizontalOffset="0"
                            StackMode="Replace" />

From Left to Right:

<controls:InAppNotification x:Name="ExampleInAppNotification"
                            Content="This is a test message."
                            ShowDismissButton="True"
                            AnimationDuration="00:00:00.1000000"
                            VerticalOffset="0"
                            HorizontalOffset="-100"
                            StackMode="Replace" />

From Right to Left:

<controls:InAppNotification x:Name="ExampleInAppNotification"
                            Content="This is a test message."
                            ShowDismissButton="True"
                            AnimationDuration="00:00:00.1000000"
                            VerticalOffset="0"
                            HorizontalOffset="100"
                            StackMode="Replace" />

All 5 comments

Hello, 'hupo376787! Thanks for submitting a new feature request. I've automatically added a vote 馃憤 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future!

@hupo376787 This looks like an amazing feature and would really love to see that being implemented 馃殌馃殌 Is this something you can work on?

Also, let's see if the rest of the community like it as much as I do 馃檪

Hi, @Kyaa-dost . I know little about animation and tranform, so I can't help currently. Maybe someone else.

Hi, all. Instead of waiting for the new property, we can use the HorizontalOffset and VerticalOffset to customize the coming in direction.

Thanks to @Faywang - MSFT's so answer. How to change the InAppnitification's coming in direction?.

Based on the document of InAppnitification, there are two properties: HorizontalOffset and VerticalOffset. They controls the horizontal and vertical offset of the popup animation, you can change them to redefine the notification's popup direction. For example:

From Bottom to Top:

<controls:InAppNotification x:Name="ExampleInAppNotification"
                            Content="This is a test message."
                            ShowDismissButton="True"
                            AnimationDuration="00:00:00.1000000"
                            VerticalOffset="100"
                            HorizontalOffset="0"
                            StackMode="Replace" />

From Top to Bottom:

<controls:InAppNotification x:Name="ExampleInAppNotification"
                            Content="This is a test message."
                            ShowDismissButton="True"
                            AnimationDuration="00:00:00.1000000"
                            VerticalOffset="-100"
                            HorizontalOffset="0"
                            StackMode="Replace" />

From Left to Right:

<controls:InAppNotification x:Name="ExampleInAppNotification"
                            Content="This is a test message."
                            ShowDismissButton="True"
                            AnimationDuration="00:00:00.1000000"
                            VerticalOffset="0"
                            HorizontalOffset="-100"
                            StackMode="Replace" />

From Right to Left:

<controls:InAppNotification x:Name="ExampleInAppNotification"
                            Content="This is a test message."
                            ShowDismissButton="True"
                            AnimationDuration="00:00:00.1000000"
                            VerticalOffset="0"
                            HorizontalOffset="100"
                            StackMode="Replace" />
Was this page helpful?
0 / 5 - 0 ratings