2026/1/16 11:03:05
网站建设
项目流程
列表形式网站,建材网站建设 南宁,wordpress app制作,广州网站建设定制多少钱深入探索Silverlight与ASP.NET的集成应用 1. Silverlight内容区域的操作与动画效果 在Web开发中,我们经常需要对Silverlight内容区域进行定位、大小调整以及显示和隐藏等操作。以下是相关的代码实现:
// Get the Silverlight container, and position it.
HtmlElement si…深入探索Silverlight与ASP.NET的集成应用1. Silverlight内容区域的操作与动画效果在Web开发中,我们经常需要对Silverlight内容区域进行定位、大小调整以及显示和隐藏等操作。以下是相关的代码实现:// Get the Silverlight container, and position it. HtmlElement silverlightControl = HtmlPage.Document.GetElementById("silverlightControlHost"); silverlightControl.SetStyleAttribute("left", targetLeft.ToString() + "px"); silverlightControl.SetStyleAttribute("top", targetTop.ToString() + "px"); // Resize the Silverlight container to match the actual page size. silverlightControl.SetStyleAttribute("width", this.Width + "px"); silverlightControl.SetStyleAttribute("height", this.Height + "px");上述代码通过获取Silverlight容器元素,并设置其left、top、width和