wpf 不是很明白,先记下

  LocationChanged += new EventHandler(RuntimePopup_LocationChanged);

 void RuntimePopup_LocationChanged(object sender, EventArgs e)
        {
            var mi = typeof(Popup).GetMethod("UpdatePosition", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
            mi.Invoke(popusBottom, null);
        }

posted @ 2013-07-02 10:07  aggier  阅读(164)  评论(0编辑  收藏  举报