How to create style based on default DataGrid style?

Well mystery is solved 🙂

My first code above actually works:

<Style TargetType="{x:Type MyControls:ExtendedDataGrid}" BasedOn="{StaticResource {x:Type DataGrid}}">
    <Setter Property="Template">
    ...
    </Setter>
</Style>

I thought that it is not working becase VS (or Resharper) showed error in my code saying that resource is not found… Bug in VS (or Resharper) 🙁

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)