|
11 | 11 | xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" |
12 | 12 | xmlns:sys="clr-namespace:System;assembly=mscorlib" |
13 | 13 | mc:Ignorable="d" |
14 | | - Title="MainWindow" Height="700" Width="1000"> |
| 14 | + Title="MainWindow" Height="700" Width="1100"> |
15 | 15 | <Window.Resources> |
16 | 16 | <local:ColorToBrushConverter x:Key="colorToBrushConverter"/> |
17 | 17 | </Window.Resources> |
18 | 18 |
|
19 | 19 | <Grid> |
20 | 20 | <Grid.ColumnDefinitions> |
21 | | - <ColumnDefinition Width="4*"/> |
| 21 | + <ColumnDefinition Width="5*"/> |
22 | 22 | <ColumnDefinition Width="Auto"/> |
23 | 23 | <ColumnDefinition Width="9*"/> |
24 | 24 | </Grid.ColumnDefinitions> |
25 | 25 |
|
26 | 26 | <StackPanel Grid.Column="0" Margin="6"> |
27 | 27 | <StackPanel> |
28 | 28 | <StackPanel.Resources> |
29 | | - <Style x:Key="HeaderText" TargetType="TextBlock"> |
| 29 | + <Style x:Key="HeaderText1" TargetType="TextBlock"> |
| 30 | + <Setter Property="FontWeight" Value="Bold"/> |
| 31 | + <Setter Property="Foreground" Value="#FF0052A6"/> |
| 32 | + <Setter Property="Margin" Value="0,3"/> |
| 33 | + <Setter Property="FontSize" Value="18"/> |
| 34 | + </Style> |
| 35 | + |
| 36 | + <Style x:Key="HeaderText2" TargetType="TextBlock"> |
30 | 37 | <Setter Property="FontWeight" Value="Bold"/> |
31 | 38 | <Setter Property="Foreground" Value="#FF0072C6"/> |
32 | 39 | <Setter Property="Margin" Value="0,3"/> |
|
71 | 78 | </Style> |
72 | 79 | </StackPanel.Resources> |
73 | 80 |
|
74 | | - <!-- OData Sources --> |
75 | | - <TextBlock Text="ODATA SOURCES" Style="{StaticResource HeaderText}"/> |
| 81 | + <!-- ODATA SERVICES--> |
| 82 | + <TextBlock Text="ODATA SERVICES" Style="{StaticResource HeaderText1}"/> |
76 | 83 | <ComboBox x:Name="cboOdataSources" SelectionChanged="cboOdataSources_SelectionChanged" Style="{StaticResource ComboBoxText}"> |
77 | 84 | <local:ODataSourceListItem BaseUri="http://services.odata.org/V4/Northwind/Northwind.svc" EntitySet="Orders" Description="Northwind Orders"/> |
78 | 85 | <local:ODataSourceListItem BaseUri="http://services.odata.org/AdventureWorksV3/AdventureWorks.svc" EntitySet="CompanySales" Description="AdventureWorks Company Sales"/> |
|
87 | 94 | </ComboBox> |
88 | 95 | <CheckBox x:Name="chkNullOutDatasource" IsChecked="True" Style="{StaticResource CheckBoxText}">Null out datasource before setting new</CheckBox> |
89 | 96 |
|
90 | | - <!-- Desired Page Size --> |
| 97 | + <!-- Separator --> |
| 98 | + <Rectangle Height="1" HorizontalAlignment="Stretch" Fill="Gray" Margin="5,20,5,0"/> |
| 99 | + |
| 100 | + <!-- DATA SOURCE SETTINGS --> |
91 | 101 | <Rectangle Width="1" Height="20" Fill="Transparent"/> |
92 | | - <TextBlock Text="DATASOURCE DESIRED PAGE SIZE" Style="{StaticResource HeaderText}"/> |
| 102 | + <TextBlock Text="DATASOURCE SETTINGS" Style="{StaticResource HeaderText1}"/> |
| 103 | + |
| 104 | + <!-- Desired Page Size --> |
| 105 | + <TextBlock Text="DESIRED PAGE SIZE" Style="{StaticResource HeaderText2}"/> |
93 | 106 | <igEditors:XamNumericEditor x:Name="numDesiredPageSize" Width="100" HorizontalAlignment="Left" Mask="9999" EditModeEnded="numDesiredPageSize_EditModeEnded" SpinButtonDisplayMode="Always" SpinIncrement="10" Style="{StaticResource NumericEditorText}"> |
94 | 107 | <igEditors:XamNumericEditor.ValueConstraint> |
95 | 108 | <igEditors:ValueConstraint MinInclusive="5" MaxInclusive="1000"/> |
|
98 | 111 |
|
99 | 112 | <!-- Maximum number of cached pages --> |
100 | 113 | <Rectangle Width="1" Height="20" Fill="Transparent"/> |
101 | | - <TextBlock Text="DATASOURCE MAX # CACHED PAGES" Style="{StaticResource HeaderText}"/> |
| 114 | + <TextBlock Text="MAX # CACHED PAGES" Style="{StaticResource HeaderText2}"/> |
102 | 115 | <igEditors:XamNumericEditor x:Name="numMaximumCachedPages" Width="100" HorizontalAlignment="Left" Mask="9999" EditModeEnded="numMaximumCachedPages_EditModeEnded" SpinButtonDisplayMode="Always" SpinIncrement="10" Style="{StaticResource NumericEditorText}"> |
103 | 116 | <igEditors:XamNumericEditor.ValueConstraint> |
104 | 117 | <igEditors:ValueConstraint MinInclusive="5" MaxInclusive="1000"/> |
|
108 | 121 | <!-- Separator --> |
109 | 122 | <Rectangle Height="1" HorizontalAlignment="Stretch" Fill="Gray" Margin="5,20,5,0"/> |
110 | 123 |
|
111 | | - <!-- Pending Message Settings --> |
112 | 124 | <Rectangle Width="1" Height="20" Fill="Transparent"/> |
113 | | - <TextBlock Text="DATA PENDING MESSAGE" Style="{StaticResource HeaderText}"/> |
| 125 | + <TextBlock Text="DATAPRESENTER SETTINGS" Style="{StaticResource HeaderText1}"/> |
| 126 | + |
| 127 | + <!-- Pending Message Settings --> |
| 128 | + <Rectangle Width="1" Height="5" Fill="Transparent"/> |
| 129 | + <TextBlock Text="DATA PENDING MESSAGE SETTINGS" Style="{StaticResource HeaderText2}"/> |
114 | 130 | <Grid> |
115 | 131 | <Grid.ColumnDefinitions> |
116 | 132 | <ColumnDefinition Width="3*"/> |
|
137 | 153 | <CheckBox x:Name="chkShowProgressBar" Grid.Row="3" Grid.Column="1" Margin="0,2" IsChecked="False" Style="{StaticResource CheckBoxText}" Checked="chkShowProgressBar_Checked" Unchecked="chkShowProgressBar_Checked"/> |
138 | 154 | </Grid> |
139 | 155 |
|
140 | | - <!-- XamDataPresenter View --> |
| 156 | + <!-- Filter Settings --> |
141 | 157 | <Rectangle Width="1" Height="20" Fill="Transparent"/> |
142 | | - <TextBlock Text="DATAPRESENTER VIEW" Style="{StaticResource HeaderText}"/> |
143 | | - <ComboBox x:Name="cboDataPresenterView" SelectionChanged="cboDataPresenterView_SelectionChanged" Margin="2" Style="{StaticResource ComboBoxText}"> |
144 | | - <sys:String>GridView</sys:String> |
145 | | - <sys:String>CardView</sys:String> |
146 | | - <sys:String>CarouselView</sys:String> |
147 | | - <sys:String>TreeView</sys:String> |
148 | | - </ComboBox> |
| 158 | + <TextBlock Text="FILTER SETTINGS" Style="{StaticResource HeaderText2}"/> |
| 159 | + <Grid> |
| 160 | + <Grid.ColumnDefinitions> |
| 161 | + <ColumnDefinition Width="3*"/> |
| 162 | + <ColumnDefinition Width="2*"/> |
| 163 | + </Grid.ColumnDefinitions> |
| 164 | + |
| 165 | + <Grid.RowDefinitions> |
| 166 | + <RowDefinition /> |
| 167 | + </Grid.RowDefinitions> |
| 168 | + |
| 169 | + <TextBlock Grid.Row="0" Grid.Column="0" Text="RECORD FILTER LOGICAL OPERATOR" Style="{StaticResource LabelText}"/> |
| 170 | + <ComboBox x:Name="cboRecordFilterLogicalOperator" Grid.Row="0" Grid.Column="1" SelectionChanged="cboRecordFilterLogicalOperator_SelectionChanged" Margin="2" Style="{StaticResource ComboBoxText}"> |
| 171 | + <sys:String>And</sys:String> |
| 172 | + <sys:String>Or</sys:String> |
| 173 | + </ComboBox> |
| 174 | + </Grid> |
| 175 | + |
| 176 | + <!-- Appearance Settings --> |
| 177 | + <Rectangle Width="1" Height="20" Fill="Transparent"/> |
| 178 | + <TextBlock Text="APPEARANCE SETTINGS" Style="{StaticResource HeaderText2}"/> |
| 179 | + <Grid> |
| 180 | + <Grid.ColumnDefinitions> |
| 181 | + <ColumnDefinition Width="3*"/> |
| 182 | + <ColumnDefinition Width="2*"/> |
| 183 | + </Grid.ColumnDefinitions> |
| 184 | + |
| 185 | + <Grid.RowDefinitions> |
| 186 | + <RowDefinition /> |
| 187 | + </Grid.RowDefinitions> |
| 188 | + |
| 189 | + <TextBlock Grid.Row="0" Grid.Column="0" Text="VIEW" Style="{StaticResource LabelText}"/> |
| 190 | + <ComboBox x:Name="cboDataPresenterView" Grid.Row="0" Grid.Column="1" SelectionChanged="cboDataPresenterView_SelectionChanged" Margin="2" Style="{StaticResource ComboBoxText}"> |
| 191 | + <sys:String>GridView</sys:String> |
| 192 | + <sys:String>CardView</sys:String> |
| 193 | + <sys:String>CarouselView</sys:String> |
| 194 | + <sys:String>TreeView</sys:String> |
| 195 | + </ComboBox> |
| 196 | + </Grid> |
| 197 | + |
149 | 198 | </StackPanel> |
150 | 199 | </StackPanel> |
151 | 200 |
|
152 | 201 | <GridSplitter Grid.Column="1" Width="7" Margin="2,0" Background="#FFDDDDDD" ResizeBehavior="PreviousAndNext"/> |
153 | 202 |
|
154 | 203 | <igDP:XamDataPresenter x:Name="dataPresenter1" Grid.Column="2" Theme="Office2013" Margin="5,0,0,0"> |
155 | 204 | <igDP:XamDataPresenter.FieldLayoutSettings> |
156 | | - <igDP:FieldLayoutSettings DynamicDataPendingBackgroundBrush="#200080FF" DynamicDataPendingForegroundBrush="DarkGray"/> |
| 205 | + <igDP:FieldLayoutSettings DynamicDataPendingBackgroundBrush="#200080FF" |
| 206 | + DynamicDataPendingForegroundBrush="DarkGray" |
| 207 | + FilterEvaluationMode="UseCollectionView"/> |
157 | 208 | </igDP:XamDataPresenter.FieldLayoutSettings> |
158 | 209 |
|
159 | 210 | <igDP:XamDataPresenter.FieldSettings> |
160 | | - <igDP:FieldSettings LabelClickAction="SortByMultipleFieldsTriState"/> |
| 211 | + <igDP:FieldSettings LabelClickAction="SortByMultipleFieldsTriState" AllowRecordFiltering="True"/> |
161 | 212 | </igDP:XamDataPresenter.FieldSettings> |
162 | 213 | </igDP:XamDataPresenter> |
163 | 214 | </Grid> |
|
0 commit comments