我有一个以编程方式加载的自定义弹出窗口(作为用户控件)。我无法将它置于x轴的中心,只能在垂直方向上。弹出窗口不会添加到xaml文件中,但会添加到根窗口中。usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Linq;usingWindows.Foundation;usingWindows.Foundation.Collections;usingWindows.UI.Xaml;usingWindows.UI.Xaml.Controls;usingWindows.UI.Xaml.Controls.Pr