我想在WPF/Silverlight窗口的每個角落有4個按鈕。但我希望網格/窗口中的東西在按鈕「後面」,就好像它們浮在頂部一樣。在角落裏的按鈕?
<Grid x:Name="ButtonRoot">
<Button VerticalAlignment="Top" HorizontalAlignment="Left"
Name="bTopLeft" />
<Button VerticalAlignment="Top" HorizontalAlignment="Right"
Name="bTopRight" />
<Button VerticalAlignment="Bottom" HorizontalAlignment="Left"
Name="bBottomLeft" />
<Button VerticalAlignment="Bottom" HorizontalAlignment="Right"
Name="bBottomRight" />
<!-- Other junk here -->
</Grid>
問題是,按鈕不會「超過」的東西,因爲事情將「圍繞」按鈕。我如何達到這個效果?
Diagram of how I want it http://dl.compdj.com/images/stackButton.jpg
爲每個按鈕創建CSS – 2010-05-23 20:04:12
這是WPF和XAML,而不是CSS。不過謝謝你。我正在解釋如何在html中執行此操作,但我需要在xaml中執行此操作。 – 2010-05-23 20:15:22