|
12 | 12 | xmlns:sys="clr-namespace:System;assembly=mscorlib" |
13 | 13 | mc:Ignorable="d" |
14 | 14 | Title="MainWindow" Height="700" Width="1100"> |
15 | | - <Window.Resources> |
16 | | - <local:ColorToBrushConverter x:Key="colorToBrushConverter"/> |
17 | | - </Window.Resources> |
18 | | - |
19 | 15 | <Grid> |
20 | 16 | <Grid.ColumnDefinitions> |
21 | 17 | <ColumnDefinition Width="5*"/> |
|
80 | 76 | </Style> |
81 | 77 | </StackPanel.Resources> |
82 | 78 |
|
83 | | - <!-- ODATA SERVICES--> |
| 79 | + <!-- Dropdown list of publicly accessible ODATA SERVICES--> |
84 | 80 | <TextBlock Text="ODATA SERVICES" Style="{StaticResource HeaderText1}"/> |
85 | 81 | <ComboBox x:Name="cboOdataSources" SelectionChanged="cboOdataSources_SelectionChanged" Style="{StaticResource ComboBoxText}"> |
86 | | - <local:ODataSourceListItem BaseUri="http://services.odata.org/V4/Northwind/Northwind.svc" EntitySet="Orders" Description="Northwind Orders"/> |
87 | | - <local:ODataSourceListItem BaseUri="http://services.odata.org/V4/Northwind/Northwind.svc" EntitySet="Employees" Description="Northwind Employees"/> |
88 | | - <local:ODataSourceListItem BaseUri="http://services.odata.org/V4/Northwind/Northwind.svc" EntitySet="Suppliers" Description="Northwind Suppliers"/> |
89 | | - <local:ODataSourceListItem BaseUri="http://services.odata.org/AdventureWorksV3/AdventureWorks.svc" EntitySet="CompanySales" Description="AdventureWorks Company Sales"/> |
90 | | - <local:ODataSourceListItem BaseUri="http://services.odata.org/AdventureWorksV3/AdventureWorks.svc" EntitySet="ProductCatalog" Description="AdventureWorks Product Catalog"/> |
91 | | - <local:ODataSourceListItem BaseUri="http://services.odata.org/AdventureWorksV3/AdventureWorks.svc" EntitySet="WorkOrderRouting" Description="AdventureWorks Workorder Routing"/> |
92 | | - <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/Planning/BuildingPermits.svc" EntitySet="BuildingPermits" Description="Scottsdale Building Permits"/> |
93 | | - <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/Planning/BuildingPermits.svc" EntitySet="BuildingInspections" Description="Scottsdale Building Inspections"/> |
94 | | - <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/MunicipalServices/CapitalImprovementProjects.svc" EntitySet="Projects" Description="Scottsdale Capital Improvement Projects"/> |
95 | | - <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/Finance/BusinessLicenses.svc" EntitySet="BusinessLicenses" Description="Scottsdale Business Licenses"/> |
96 | | - <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/Purchasing/Solicitations.svc" EntitySet="Solicitations" Description="Scottsdale Purchasing Solicitations"/> |
97 | | - <local:ODataSourceListItem BaseUri="http://packages.nuget.org/v1/FeedService.svc" EntitySet="Packages" Description="NuGet Packages"/> |
98 | | - <local:ODataSourceListItem BaseUri="http://odata.research.microsoft.com/odata.svc" EntitySet="Projects" Description="Microsoft Research - Projects"/> |
99 | | - <local:ODataSourceListItem BaseUri="http://odata.research.microsoft.com/odata.svc" EntitySet="Publications" Description="Microsoft Research - Publications"/> |
| 82 | + <local:DataSourceConfigurationInfo BaseUri="http://data.scottsdaleaz.gov/Planning/BuildingPermits.svc" EntitySet="BuildingPermits" Description="Scottsdale Building Permits"> |
| 83 | + <!-- Limit the amount of data fetched from this OData service by setting the DesiredFIelds property. Refer to |
| 84 | + the cboOdataSources_SelectionChanged event handler code in MainWindow.xaml.cs to see how we apply these settings when |
| 85 | + we create a new ODataDataSource instance. --> |
| 86 | + <local:DataSourceConfigurationInfo.DesiredFields> |
| 87 | + <x:Array Type="sys:String"> |
| 88 | + <sys:String>PermitNumber</sys:String> |
| 89 | + <sys:String>PermitStatus</sys:String> |
| 90 | + <sys:String>IssueDate</sys:String> |
| 91 | + <sys:String>Address</sys:String> |
| 92 | + <sys:String>Zone</sys:String> |
| 93 | + </x:Array> |
| 94 | + </local:DataSourceConfigurationInfo.DesiredFields> |
| 95 | + </local:DataSourceConfigurationInfo> |
| 96 | + <local:DataSourceConfigurationInfo BaseUri="http://data.scottsdaleaz.gov/Planning/BuildingPermits.svc" EntitySet="BuildingInspections" Description="Scottsdale Building Inspections"/> |
| 97 | + <local:DataSourceConfigurationInfo BaseUri="http://data.scottsdaleaz.gov/MunicipalServices/CapitalImprovementProjects.svc" EntitySet="Projects" Description="Scottsdale Capital Improvement Projects"/> |
| 98 | + <local:DataSourceConfigurationInfo BaseUri="http://data.scottsdaleaz.gov/Finance/BusinessLicenses.svc" EntitySet="BusinessLicenses" Description="Scottsdale Business Licenses"/> |
| 99 | + <local:DataSourceConfigurationInfo BaseUri="http://data.scottsdaleaz.gov/Purchasing/Solicitations.svc" EntitySet="Solicitations" Description="Scottsdale Purchasing Solicitations"/> |
| 100 | + <local:DataSourceConfigurationInfo BaseUri="http://services.odata.org/V4/Northwind/Northwind.svc" EntitySet="Orders" Description="Northwind Orders"/> |
| 101 | + <local:DataSourceConfigurationInfo BaseUri="http://services.odata.org/V4/Northwind/Northwind.svc" EntitySet="Employees" Description="Northwind Employees"/> |
| 102 | + <local:DataSourceConfigurationInfo BaseUri="http://services.odata.org/V4/Northwind/Northwind.svc" EntitySet="Suppliers" Description="Northwind Suppliers"/> |
| 103 | + <local:DataSourceConfigurationInfo BaseUri="http://services.odata.org/AdventureWorksV3/AdventureWorks.svc" EntitySet="CompanySales" Description="AdventureWorks Company Sales"/> |
| 104 | + <local:DataSourceConfigurationInfo BaseUri="http://services.odata.org/AdventureWorksV3/AdventureWorks.svc" EntitySet="ProductCatalog" Description="AdventureWorks Product Catalog"/> |
| 105 | + <local:DataSourceConfigurationInfo BaseUri="http://services.odata.org/AdventureWorksV3/AdventureWorks.svc" EntitySet="WorkOrderRouting" Description="AdventureWorks Workorder Routing"/> |
| 106 | + <local:DataSourceConfigurationInfo BaseUri="http://packages.nuget.org/v1/FeedService.svc" EntitySet="Packages" Description="NuGet Packages"/> |
100 | 107 | </ComboBox> |
101 | 108 | <CheckBox x:Name="chkNullOutDatasource" IsChecked="True" Style="{StaticResource CheckBoxText}">Null out datasource before setting new</CheckBox> |
102 | 109 |
|
|
130 | 137 | <Rectangle Width="1" Height="20" Fill="Transparent"/> |
131 | 138 | <TextBlock Text="DATAPRESENTER SETTINGS" Style="{StaticResource HeaderText1}"/> |
132 | 139 |
|
133 | | - <!-- Pending Message Settings --> |
| 140 | + <!-- Data Pending Overlay Settings --> |
134 | 141 | <Rectangle Width="1" Height="5" Fill="Transparent"/> |
135 | | - <TextBlock Text="DATA PENDING MESSAGE SETTINGS" Style="{StaticResource HeaderText2}"/> |
| 142 | + <TextBlock Text="DATA PENDING OVERLAY SETTINGS" Style="{StaticResource HeaderText2}"/> |
136 | 143 | <Grid> |
137 | 144 | <Grid.ColumnDefinitions> |
138 | 145 | <ColumnDefinition Width="3*"/> |
|
141 | 148 |
|
142 | 149 | <Grid.RowDefinitions> |
143 | 150 | <RowDefinition /> |
144 | | - <RowDefinition /> |
145 | | - <RowDefinition /> |
146 | | - <RowDefinition /> |
147 | 151 | </Grid.RowDefinitions> |
148 | 152 |
|
149 | | - <TextBlock Grid.Row="0" Grid.Column="0" Text="MESSAGE TEXT" Style="{StaticResource LabelText}"/> |
150 | | - <TextBox x:Name="txtPendingMessage" Grid.Row="0" Grid.Column="1" Text="loading..." TextChanged="txtPendingMessage_TextChanged" Style="{StaticResource TextBoxText}"/> |
151 | | - |
152 | | - <TextBlock Grid.Row="1" Grid.Column="0" Text="BACKGROUND" Style="{StaticResource LabelText}"/> |
153 | | - <igControls:XamColorPicker Grid.Row="1" Grid.Column="1" Style="{StaticResource ColorPicker}" SelectedColor="{Binding ElementName=dataPresenter1, Mode=TwoWay, Path=(igDP:XamDataPresenter.FieldLayoutSettings).DynamicDataPendingBackgroundBrush, Converter={StaticResource colorToBrushConverter}}"/> |
154 | | - |
155 | | - <TextBlock Grid.Row="2" Grid.Column="0" Text="FOREGROUND" Style="{StaticResource LabelText}"/> |
156 | | - <igControls:XamColorPicker Grid.Row="2" Grid.Column="1" Style="{StaticResource ColorPicker}" SelectedColor="{Binding ElementName=dataPresenter1, Mode=TwoWay, Path=(igDP:XamDataPresenter.FieldLayoutSettings).DynamicDataPendingForegroundBrush, Converter={StaticResource colorToBrushConverter}}"/> |
157 | | - |
158 | | - <TextBlock Grid.Row="3" Grid.Column="0" Text="SHOW CUSTOM TEMPLATE" Style="{StaticResource LabelText}"/> |
159 | | - <CheckBox x:Name="chkShowCustomTemplate" Grid.Row="3" Grid.Column="1" Margin="0,2" IsChecked="False" Style="{StaticResource CheckBoxText}" Checked="chkShowCustomTemplate_Checked" Unchecked="chkShowCustomTemplate_Checked"/> |
| 153 | + <TextBlock Grid.Row="0" Grid.Column="0" Text="FILL" Style="{StaticResource LabelText}"/> |
| 154 | + <igControls:XamColorPicker x:Name="colorPicker" Grid.Row="0" Grid.Column="1" Style="{StaticResource ColorPicker}" SelectedColorChanged="colorPicker_SelectedColorChanged"/> |
160 | 155 | </Grid> |
161 | 156 |
|
162 | 157 | <!-- Filter Settings --> |
|
190 | 185 |
|
191 | 186 | <Grid.RowDefinitions> |
192 | 187 | <RowDefinition /> |
| 188 | + <RowDefinition /> |
193 | 189 | </Grid.RowDefinitions> |
194 | 190 |
|
195 | 191 | <TextBlock Grid.Row="0" Grid.Column="0" Text="VIEW" Style="{StaticResource LabelText}"/> |
|
199 | 195 | <sys:String>CarouselView</sys:String> |
200 | 196 | <sys:String>TreeView</sys:String> |
201 | 197 | </ComboBox> |
| 198 | + |
| 199 | + <TextBlock Grid.Row="1" Grid.Column="0" Text="THEME" Style="{StaticResource LabelText}"/> |
| 200 | + <ComboBox x:Name="cboThemes" Grid.Row="1" Grid.Column="1" SelectionChanged="cboThemes_SelectionChanged" Margin="2" Style="{StaticResource ComboBoxText}"/> |
202 | 201 | </Grid> |
203 | 202 |
|
204 | 203 | </StackPanel> |
205 | 204 | </StackPanel> |
206 | 205 |
|
207 | 206 | <GridSplitter Grid.Column="1" Width="7" Margin="2,0" Background="#FFDDDDDD" ResizeBehavior="PreviousAndNext"/> |
208 | 207 |
|
209 | | - <igDP:XamDataPresenter x:Name="dataPresenter1" Grid.Column="2" Theme="Office2013" Margin="5,0,0,0"> |
| 208 | + <igDP:XamDataPresenter x:Name="dataPresenter1" Grid.Column="2" Theme="{Binding ElementName=cboThemes, Path=SelectedValue, Mode=OneWay}" Margin="5,0,0,0"> |
210 | 209 | <igDP:XamDataPresenter.FieldLayoutSettings> |
211 | | - <igDP:FieldLayoutSettings DynamicDataPendingBackgroundBrush="#200080FF" |
212 | | - DynamicDataPendingForegroundBrush="DarkGray" |
213 | | - FilterEvaluationMode="UseCollectionView"/> |
| 210 | + <igDP:FieldLayoutSettings FilterEvaluationMode="UseCollectionView"/> |
214 | 211 | </igDP:XamDataPresenter.FieldLayoutSettings> |
215 | 212 |
|
216 | 213 | <igDP:XamDataPresenter.FieldSettings> |
|
0 commit comments