if
(!RadDragAndDropManager.IsDragging)
{
Collection<
object
> pPayload =
new
Collection<
object
>();
if
(e.Data
is
System.Windows.DataObject && ((System.Windows.DataObject)e.Data).ContainsFileDropList())
{
foreach
(
string
pFilePath
in
((System.Windows.DataObject)e.Data).GetFileDropList())
{
if
(File.Exists(pFilePath))
{
pPayload.Add(pFilePath);
}
}
}
if
(pPayload.Count > 0)
{
RadDragAndDropManager.StartDrag(TrackListTreeListView, pPayload,
null
);
}
}
this
.StateLayer.Reader.DataSource = new Uri(string.Format(ShapeRelativeUriFormat, "usa_states.dbf"), UriKind.Relative);
I would like to append some text to each of the state names, if I could do some sort of loop / foreach that would be great. Can you provide sample code?
Regards
Thomas
I need to apply a data template to a grid view cell using a cell template selector similar to the approach provided in one of the grid view demo's. My template looks like this:
<DataTemplate>
<TextBlock Text="{Binding Converter={StaticResource dataRowConverter}}" Foreground="Gray" />
</DataTemplate>
The data grid is bound to a data table, so I use the dataRowConverter to try to get the right column value out of the data row that is passed to it by this template. My problem is that in the converter, I do not have the index to the data row to get the corresponding value for the grid view cell being processed. How am I able to pass as a converter parameter the current cell header or name to the converter? Thanks for your help.