未验证 提交 79887869 编写于 作者: M Martin Zikmund 提交者: GitHub

Merge pull request #13107 from Youssef1313/string-alloc-2

using Windows.Foundation;
//#define ENABLE_CONTAINER_VISUAL_TRACKING
using Windows.Foundation;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using System;
......@@ -94,7 +96,9 @@ namespace Windows.UI.Xaml
if (_visual == null)
{
_visual = Window.Current.Compositor.CreateContainerVisual();
#if ENABLE_CONTAINER_VISUAL_TRACKING
_visual.Comment = $"Owner:{GetType()}/{(this as FrameworkElement)?.Name}";
#endif
}
return _visual;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册