Inside of a DataGridTemplateColumn inside of a DataGrid
<Button Command="{Binding Path=DataContext.RunCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
works on Dev machine with 0 memory leak. Works on Client Tablet with memory leak.
<Button Command="{Binding Path=DataContext.RunCommand, ElementName=DG}"/>
Works on Dev machine but not on client.
Both have .net 4.0 Full installed. I don't understand why the client is giving different behavior as well as a memory leak.
I can remove the command and i do not have an issue... except the fact that the command doesnt work.