or
private void SetupGridView() | |
{ | |
myGridView.Columns.Add(new GridViewDataColumn() | |
{ | |
HeaderText = "Name", | |
UniqueName = "Name", | |
DataMemberBinding = new Binding("Name") | |
}); | |
myGridView.Columns.Add(new GridViewDataColumn() | |
{ | |
HeaderText = "Address Line 1", | |
UniqueName = "Address.Line1", | |
DataMemberBinding = new Binding("Address.Line1"), | |
IsFilterable = true | |
}); | |
} |
Any help is greatly appreciated.
Glen
<Window x:Class="frmMain" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
Title="dareSOFT OST2PST Conversion Utility" Height="300" Width="402" MinWidth="402" MinHeight="300" xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"> |
<Grid> |
<my:RadCarousel Name="rcMenu" AutoGenerateDataPresenters="True" HorizontalAlignment="Stretch" Cursor="Arrow"> |
<my:RadCarousel.BitmapEffectInput> |
<BitmapEffectInput /> |
</my:RadCarousel.BitmapEffectInput> |
<my:RadCarousel.BitmapEffect> |
<BlurBitmapEffect /> |
</my:RadCarousel.BitmapEffect> |
<Style TargetType="{my:Type telerik:CarouselDataRecordPresenter}"> |
<Setter Property="Template"> |
<Setter.Value> |
<ControlTemplate TargetType="{my:Type telerik:CarouselDataRecordPresenter}"> |
<Grid IsHitTestVisible="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
<Grid.RowDefinitions> |
<RowDefinition Height="30" /> |
<RowDefinition Height="100" /> |
<RowDefinition Height="Auto" /> |
</Grid.RowDefinitions> |
<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" > |
<Label Content="{Binding Path=Fields[Text].Value}" FontSize="12" Foreground="#ff8FB3FF"/> |
</StackPanel> |
<Rectangle Grid.Row="1" RadiusX="3" RadiusY="3" Width="110" Height="80"> |
<Rectangle.Fill> |
<ImageBrush x:Name="brush" ImageSource="{Binding Path=Fields[Picture].Value}"/> |
</Rectangle.Fill> |
</Rectangle> |
<StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center"> |
<Label Content="{Binding Path=Fields[Text].Value}" FontSize="12" Foreground="#ff8FB3FF"/> |
</StackPanel> |
</Grid> |
</ControlTemplate> |
</Setter.Value> |
</Setter> |
</Style> |
</my:RadCarousel> |
</Grid> |
</Window> |