提交 646e5a72 编写于 作者: D David

fix(reg): Fix RefreshContainer content not visible

上级 066056dc
......@@ -23,7 +23,7 @@ internal static class ColorExtensions
);
#if !HAS_UNO
internal static Color WithOpacity(this Color color, double opacity)
internal static Color WithOpacity(this Color color, double opacity)
=> Color.FromArgb((byte)(color.A * opacity), color.R, color.G, color.B);
#endif
}
......@@ -84,11 +84,13 @@ public partial class RefreshContainer : ContentControl
m_refreshVisualizerPresenter = (Panel)GetTemplateChild("RefreshVisualizerPresenter");
// END: Populate template children
#if !HAS_UNO
if (m_root != null)
{
var rootVisual = ElementCompositionPreview.GetElementVisual(m_root);
rootVisual.Clip = rootVisual.Compositor.CreateInsetClip(0.0f, 0.0f, 0.0f, 0.0f);
}
#endif
m_refreshVisualizer = Visualizer;
if (m_refreshVisualizer == null)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册