I MahApps Bibliothek in meiner app bin mit der Standardstil von Datagrid-Zelle hat keine Grenzen:MahApps Datagridcell Stil
aber ich möchte das Datagrid wie folgt aussehen:
<Style TargetType="{x:Type DataGridCell}">
<Setter Property="Height"
Value="33" />
<Setter Property="Background"
Value="Transparent" />
<Setter Property="Padding"
Value="5,0" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
<Border x:Name="border"
Background="Transparent"
BorderBrush="Black"
BorderThickness="1"
Padding="0,10,0,10"
SnapsToDevicePixels="True">
<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
<Grid Background="{TemplateBinding Background}">
<ContentPresenter VerticalAlignment="Center" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
:
Also habe ich mit gestartet
aber nichts ändert, so nehme ich an, dass ich ein = Basierend bin fehlt {} Attribut, aber ich habe keine Ahnung, ich habe um Hilfe MathApps Team, aber keine Hilfe gebeten ...