Modifying look/behavior of the new Popup control (ChildWindow) in Silverlight 3

痴心易碎 提交于 2019-12-10 13:55:40

问题


I would like to remove grey header of the new Popup control in Silverlight 3.

Any ideas if this is possible?


回答1:


Pretty easy, just edit the default ChildWindow style.

  1. In Blend 3 create a new Item of type ChildWindow. (Right Click on the Project --> New Item --> Select ChildWindow from the list)
  2. Right click on ChildWindow in the "Objects and Timeline" pane --> Edit Template --> Edit Copy.
  3. Navigate to the element named "Chrome" inside the default template and change the Background to whatever Brush you'd like.



回答2:


Styling is the best way to do it, but you can also remove it by setting Title="" HasCloseButton="False" on your ChildWindow.



来源:https://stackoverflow.com/questions/684360/modifying-look-behavior-of-the-new-popup-control-childwindow-in-silverlight-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!