or
<
dHTML:HtmlDataProvider
x:Name
=
"HtmlDataProvider1"
RichTextBox
=
"{Binding ElementName=richTextBox1}"
Html
=
"{Binding HeaderText, Mode=TwoWay}"
/>
<
dXAML:XamlDataProvider
x:Name
=
"XamlDataProvider1"
RichTextBox
=
"{Binding ElementName=richTextBox1}"
Xaml
=
"{Binding HeaderText, Mode=TwoWay}"
/>
xmlns:dHTML="clr-namespace:Telerik.Windows.Documents.FormatProviders.Html;assembly=Telerik.Windows.Documents.FormatProviders.Html"
xmlns:dXAML="clr-namespace:Telerik.Windows.Documents.FormatProviders.Xaml;assembly=Telerik.Windows.Documents.FormatProviders.Xaml"<
telerik:RadListBox
Margin
=
"5,5,5,5"
Grid.Column
=
"0"
Grid.Row
=
"3"
x:Name
=
"listBoxItems"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Top"
Width
=
"250"
ItemsSource
=
"{Binding}"
ItemContainerStyle
=
"{StaticResource DraggableListBoxItem}"
ItemTemplate
=
"{StaticResource ListBoxCustomTemplate}"
SelectionMode
=
"Multiple"
TextPath
=
"Serial"
>
<
telerik:RadListBox.DragVisualProvider
>
<
telerik:ScreenshotDragVisualProvider
/>
</
telerik:RadListBox.DragVisualProvider
>
<
telerik:RadListBox.DragDropBehavior
>
<
telerik:ListBoxDragDropBehavior
/>
</
telerik:RadListBox.DragDropBehavior
>
</
telerik:RadListBox
>
<
telerik:RadListBox
Grid.Row
=
"0"
Grid.Column
=
"2"
Margin
=
"0, 5, 5, 5"
x:Name
=
"listBoxIssue"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Top"
Height
=
"690"
Width
=
"793"
ItemsSource
=
"{Binding}"
ItemContainerStyle
=
"{StaticResource DraggableListBoxItem}"
ItemTemplate
=
"{StaticResource ListBoxCustomTemplate}"
>
<
telerik:RadListBox.DragVisualProvider
>
<
telerik:ScreenshotDragVisualProvider
/>
</
telerik:RadListBox.DragVisualProvider
>
<
telerik:RadListBox.DragDropBehavior
>
<
telerik:ListBoxDragDropBehavior
/>
</
telerik:RadListBox.DragDropBehavior
>
</
telerik:RadListBox
>
<
Window
x:Class
=
"RadGridViewTest.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:radGridViewTest
=
"clr-namespace:RadGridViewTest"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Window.Resources
>
<
radGridViewTest:ContextData
x:Key
=
"ContextData"
/>
</
Window.Resources
>
<
Grid
DataContext
=
"{StaticResource ContextData}"
>
<
telerik:RadGridView
ItemsSource
=
"{Binding Path=ExampleTable}"
AutoGenerateColumns
=
"True"
ShowGroupPanel
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding ExampleColumn}"
Header
=
"Via property"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Example}"
Header
=
"Via Column Name"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Grid
>
</
Window
>
using
System.Data;
using
System.Windows;
namespace
RadGridViewTest
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public
partial
class
MainWindow : Window
{
public
MainWindow()
{
InitializeComponent();
}
}
public
class
ContextData
{
public
ContextData()
{
ExampleTable =
new
StrongNamedDataTable();
var row = ExampleTable.NewRow();
row[ExampleTable.ExampleColumn] =
"Test Data"
;
ExampleTable.Rows.Add(row);
}
public
StrongNamedDataTable ExampleTable {
get
;
set
; }
}
public
class
StrongNamedDataTable : DataTable
{
public
StrongNamedDataTable()
{
ExampleColumn =
this
.Columns.Add(
"Example"
);
}
public
DataColumn ExampleColumn {
get
;
private
set
; }
}
}