-
Notifications
You must be signed in to change notification settings - Fork 1
/
Window1.xaml
24 lines (24 loc) · 1.19 KB
/
Window1.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<Window x:Class="E2019.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:local="clr-namespace:E2019"
Title="Window" Height="200" Width="470">
<Window.Resources>
<local:IssueTypeForegroundConverter x:Key="IssueTypeForegroundConverter"/>
<DataTemplate x:Key="IssueNameTemplate">
<dxe:TextEdit x:Name="PART_Editor" Foreground="Blue"/>
</DataTemplate>
<DataTemplate x:Key="IssueTypeTemplate">
<dxe:TextEdit x:Name="PART_Editor" Foreground="{Binding Path=Value, Converter={StaticResource IssueTypeForegroundConverter}}"/>
</DataTemplate>
</Window.Resources>
<Grid>
<dxg:GridControl x:Name="grid" AutoGenerateColumns="AddNew" AutoGeneratedColumns="OnColumnsGenerated">
<dxg:GridControl.View>
<dxg:TableView Name="tableView1" AutoWidth="True" />
</dxg:GridControl.View>
</dxg:GridControl>
</Grid>
</Window>