or
<
Window
x:Class
=
"Window1"
Title
=
"Window1"
Height
=
"300"
Width
=
"300"
xmlns:my
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
>
<
Grid
>
<
my:RadGridView
Name
=
"RadGridView1"
/>
</
Grid
>
</
Window
>
Class
Window1
Public
Sub
New
()
InitializeComponent()
Dim
dt
As
New
System.Data.DataTable
dt.Columns.Add(
"hide"
,
GetType
(
Boolean
))
dt.Columns.Add(
"highlight"
,
GetType
(
String
))
dt.Columns(0).DefaultValue =
True
dt.Columns(0).
ReadOnly
=
False
dt.Columns(1).DefaultValue =
"test"
dt.Columns(1).
ReadOnly
=
True
Dim
row1
As
System.Data.DataRow = dt.NewRow
row1(
"hide"
) =
True
row1(
"highlight"
) =
"A"
dt.Rows.Add(row1)
Dim
row2
As
System.Data.DataRow = dt.NewRow
row2(
"hide"
) =
True
row2(
"highlight"
) =
"B"
dt.Rows.Add(row2)
RadGridView1.ItemsSource = dt
End
Sub
End
Class
<Window.Resources> |
<Style x:Key="MyStyle" TargetType="{x:Type telerik:Bar}"> |
<Setter Property="Template" > |
<Setter.Value> |
<ControlTemplate TargetType="{x:Type telerik:Bar}"> |
<Rectangle |
x:Name="PART_DefiningGeometry" |
Fill="Red" |
Stroke="Pink" |
StrokeThickness="3" |
Height="{TemplateBinding ActualHeight}" |
Width="{TemplateBinding ActualWidth}"/> |
</ControlTemplate> |
</Setter.Value> |
</Setter> |
</Style> |
</Window.Resources> |