gopi s

gopi s

  • NA
  • 13
  • 0

Passing object frorm xaml to viewmodel

Mar 25 2011 6:42 AM

Hi ,

I need to pass object from xaml(view ) to view model using binding


eg


<Grid x:Name="LayoutRoot" Background="White"><telerik:RadGridView Height="400" Width="400" AutoGenerateColumns="True" x:Name="radObject" /> 

   </Grid>

I need to pass this RadGridInstance to viewmodel using binding any idea

I need to call some methods like

radObject.ScrollIntoView(radObject.SelectedItem); in viewmodel

i dont want to write code on codebehind file

Thanks in Advance .


Answers (2)