Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Button command binding inside datagrid using elementname works but client machine does not? And Memory leak...

$
0
0

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.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>