PageRenderTime 20ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Visual Studio 2008/CSWPFCascadeDataGridComboBoxColumns/MainWindow.xaml

#
XAML | 18 lines | 17 code | 1 blank | 0 comment | 0 complexity | d6af761187d318a4d662eada619b3f67 MD5 | raw file
 1<Window x:Class="CSWPFCascadeDataGridComboBoxColumns.MainWindow"
 2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 4    xmlns:local="clr-namespace:CSWPFCascadeDataGridComboBoxColumns"
 5    xmlns:toolkit ="http://schemas.microsoft.com/wpf/2008/toolkit"
 6    Title="Cascade DataGridComboBoxColumns" Height="300" Width="300" Loaded="Window_Loaded">
 7    <DockPanel LastChildFill="True">
 8        <toolkit:DataGrid Name="dataGrid" ItemsSource="{Binding}" 
 9                          AutoGenerateColumns="False" 
10                          PreparingCellForEdit="datagrid_PreparingCellForEdit">
11            <toolkit:DataGrid.Columns>
12                <toolkit:DataGridComboBoxColumn x:Name="column1" Width="80"/>
13                <toolkit:DataGridComboBoxColumn x:Name="column2" Width="80"/>               
14            </toolkit:DataGrid.Columns>
15        </toolkit:DataGrid>
16    </DockPanel>
17 
18</Window>