or
<
Button
Content
=
"drop btn"
Click
=
"Button_Click_1"
telerikDragDrop:RadDragAndDropManager.AllowDrag
=
"True"
MouseDoubleClick
=
"Button_MouseDoubleClick"
/>
static
class
DataContextExtensions
{
public
static
ITable GetTableByName(
this
DataContext context,
string
tableName)
{
if
(context ==
null
)
{
throw
new
ArgumentNullException(
"context"
);
}
if
(tableName ==
null
)
{
throw
new
ArgumentNullException(
"tableName"
);
}
var dataTable = context.GetType().GetProperty(tableName).GetValue(context,
null
);
return
(ITable)dataTable;
}
}
ObservableCollection<object> SelectedItemsproperty. I have a requirement where I need to access the selected grid items in the ViewModel. How can I do that? There is no dependency property for that I can use, and in the code sample you only have codebehind example. Please advice.