DesktopAlert 弹出位置设置

自定义弹窗的位置

添加Popup LocationChanged事件

this.radDesktopAlert1.Popup.LocationChanged += Popup_LocationChanged;

 

在事件里自定义弹窗位置:窗体的右下角

        private void Popup_LocationChanged(object sender, EventArgs e)
        {
            this.radDesktopAlert1.Popup.Location = new Point(this.Location.X + (this.Size.Width - this.radDesktopAlert1.Popup.DisplayRectangle.Width), 
                this.Location.Y + (this.Size.Height - this.radDesktopAlert1.Popup.DisplayRectangle.Height));

        }

参考文档:

https://www.telerik.com/forums/location-9de2e650f505

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章