<UserControl x:Class="GoalBook.Goals.Views.GoalsView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:ModuleProperties="clr-namespace:GoalBook.Goals.Properties" xmlns:gbConverters="clr-namespace:GoalBook.Infrastructure.Converters;assembly=GoalBook.Infrastructure" xmlns:refData="clr-namespace:GoalBook.Goals.Views" xmlns:igDP="http://infragistics.com/DataPresenter" xmlns:igEditors="http://infragistics.com/Editors" Loaded="UserControl_Loaded" FocusManager.IsFocusScope="True"> <UserControl.Resources> <gbConverters:IntegerForeignKeyConverter x:Key="integerForeignKeyConverter" /> <gbConverters:BoolToPendingConverter x:Key="boolToPendingConverter" /> <ObjectDataProvider x:Key="levelReferenceData" MethodName="GetLevelList" ObjectType="{x:Type refData:ReferenceData}"/> <ObjectDataProvider x:Key="contributesReferenceData" MethodName="GetContributesList" ObjectType="{x:Type refData:ReferenceData}"/> </UserControl.Resources> <DockPanel Name="dockPanelGoals" LastChildFill="True"> <Grid Name="gridGoals"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition> </Grid.RowDefinitions> <!-- XamDataGrid --> <igDP:XamDataGrid DataSource="{Binding Path=Goals, Mode=OneWay}" Name="xamDataGridGoals" Grid.Column="0" Grid.Row="0" AutoFit="True" RecordsDeleting="XamDataGridGoals_RecordsDeleting" GroupByAreaLocation="None" KeyUp="XamDataGridGoals_KeyUp" SelectedItemsChanged="XamDataGridGoals_SelectedItemsChanged" MouseDoubleClick="XamDataGridGoals_MouseDoubleClick"> <igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings AllowEdit="False" CellClickAction="SelectRecord" AllowResize="False"/> </igDP:XamDataGrid.FieldSettings> <igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings SelectionTypeRecord="Single" AutoGenerateFields="False" AllowAddNew="False" HighlightAlternateRecords="True"/> </igDP:XamDataGrid.FieldLayoutSettings> <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.SortedFields> <igDP:FieldSortDescription FieldName="LevelID" IsGroupBy="False"/> <igDP:FieldSortDescription FieldName="Title" IsGroupBy="False"/> </igDP:FieldLayout.SortedFields> <igDP:FieldLayout.Fields> <igDP:Field Name="GoalID" Visibility="Collapsed"/> <igDP:Field Name="Title" Label="{x:Static ModuleProperties:Resources.LabelTitle}" IsScrollTipField="True"/> <igDP:Field Name="LevelID" Label="{x:Static ModuleProperties:Resources.LabelLevel}" Visibility="Visible" Converter="{StaticResource integerForeignKeyConverter}" ConverterParameter="{StaticResource levelReferenceData}"> <igDP:Field.Settings> <igDP:FieldSettings EditAsType="{x:Type sys:String}" LabelMaxWidth="125" CellMaxWidth="125" CellMinWidth="125"/> </igDP:Field.Settings> </igDP:Field> </igDP:FieldLayout.Fields> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts> </igDP:XamDataGrid> </Grid> </DockPanel> </UserControl>
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)