问题
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.
- In Blend 3 create a new Item of type ChildWindow. (Right Click on the Project --> New Item --> Select ChildWindow from the list)
- Right click on ChildWindow in the "Objects and Timeline" pane --> Edit Template --> Edit Copy.
- 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