xaml-sdk/GridView/ImageColumnFiltering/MainWindow.xaml

24 строки
1.0 KiB
XML

<Window x:Class="ImageColumnFiltering.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:my="clr-namespace:ImageColumnFiltering"
Title="MainWindow" Height="300" Width="300">
<Window.Resources>
<my:MyViewModel x:Key="MyViewModel"/>
</Window.Resources>
<Grid x:Name="LayoutRoot"
Background="White"
DataContext="{StaticResource MyViewModel}">
<telerik:RadGridView Grid.Row="0"
Name="clubsGrid"
ItemsSource="{Binding Clubs}"
AutoGenerateColumns="False">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/>
<my:ImageFilterColumn DataMemberBinding="{Binding Image}" ShowFieldFilters="False" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</Grid>
</Window>