我想將一些樣式應用到Datagrid,但我得到一個錯誤。 我想將圓角應用於DataGrid
。圓角DataGrid角?
這是錯誤我過得好,<Setter.Value>
的附着性能「值」的類型沒有被發現「二傳手」
<Style TargetType="{x:Type DataGrid}">
<Setter Property="RowHeaderWidth" Value="0" />
<Setter Property="HorizontalScrollBarVisibility" Value="Disabled" />
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGrid}">
<Grid>
<Border CornerRadius="5"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Style>
我發現這個問題Datagrid template with rounded corners,但它確實有助於我的問題。
我如何得到這個工作?
真棒回答,我是如此愚蠢的東西讓這麼簡單。紫外線的幫助。 – KyloRen