2014-02-21 72 views
1

我想知道如何繪製超出標準WPF選項卡控件的邊界?我嘗試了各種ClipToBounds設置,並將我的控件插入到一個畫布中,該畫布在過去的網格中適用於我。樣品XAML:如何透支WPF選項卡控件

<Window 
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="MainWindow" 
Title="MainWindow" Height="350" Width="525"> 

<Grid> 
    <TabControl HorizontalAlignment="Left" Height="50" Margin="90,31,0,0" VerticalAlignment="Top" Width="100"> 
      <Canvas Margin="10,26,-10,-26"> 
       <Ellipse Width="25" Height="25" Fill="Red" Canvas.Left="0" Canvas.Top="0"></Ellipse> 
      </Canvas> 
    </TabControl> 

</Grid> 

回答

相關問題