<Button Content="Auto-size the current field" Command="{x:Static igDP:DataPresenterCommands.AutoSizeField}" CommandTarget="{Binding ElementName=xamDataPresenter1}" CommandParameter="{Binding ElementName=xamDataPresenter1, Path=ActiveCell.Field}" /> <igDP:XamDataPresenter Name="xamDataPresenter1" BindToSampleData="True"> </igDP:XamDataPresenter>