Replies: 1 comment
-
Hello, 'lighterhy! 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! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem this feature would solve
Currently InAppNotification does not support DataTemplateSelector.
Consider the following XAML:
And when I say:
The template selector ArgumentKeyTemplateSelector does not take any effect and SelectTemplateCore not fired.
Describe the solution
InAppNotification is a great control to show notifications in my app. But I feel difficult to reuse the DataTemplate for same kind of content, or choose different DataTemplate for different content. I think DataTemplateSelector is a good way to resolve this.
Describe alternatives you've considered
InAppNotification.Show may also need to provide an overload like:
void Show(object content, DataTemplate dataTemplate, int duration = 0);
We can be able to choose different templates according to the content we want to show.
Beta Was this translation helpful? Give feedback.
All reactions