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

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