首页 > 解决方案 > UWP InAppNotification

问题描述

帮我找人。

我在带有 DataGrid 的应用程序中使用 InAppNotification,当我显示 InAppNotification 时它是透明的,我无法单击它。

透明的 InAppNotification :-

<MSControls:InAppNotification Grid.Row="1"
                              x:Name="MessageForUser"
                              HorizontalAlignment="Right">
</MSControls:InAppNotification>


private void Button_Click(object sender, RoutedEventArgs e)
{
    MessageForUser.Show("Hello World!", 3000);
}

标签: uwp

解决方案


InAppNotification本身就像,Popup你需要添加ClickTap事件。就像下面一样。

<MSControls:InAppNotification Grid.Row="1"
                              x:Name="MessageForUser"
                              HorizontalAlignment="Right"
                              Tapped="MessageForUser_Tapped">
</MSControls:InAppNotification>

推荐阅读