我正在我的 WinUI 3 应用程序中创建教学提示。当 时,设置教学提示的背景可以正常工作IsLightDismissEnabled="False"
。但是,当我将其设置为 时,将应用默认背景。当和 时,分别True
生成第一张图片和第二张图片。IsLightDismissEnabled
False
True
我该如何解决这个问题?
IsLightDismissEnabled="False"
[![在此处输入图片描述][1]][1]
IsLightDismissEnabled="True"
[![当我将其设置为 True][2]][2] Xaml
<?xml version="1.0" encoding="utf-8" ?>
<Window
x:Class="TeachingTip.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:TeachingTip"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="TeachingTip"
mc:Ignorable="d">
<Grid HorizontalAlignment="Center" VerticalAlignme