|
1 | | -<Window x:Class="DataPresenter.DataSources.OData.SampleApp.MainWindow" |
2 | | - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | | - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | | - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 | | - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 | | - xmlns:local="clr-namespace:DataPresenter.DataSources.OData.SampleApp" |
7 | | - xmlns:igDP="http://infragistics.com/DataPresenter" |
8 | | - xmlns:igData="http://infragistics.com/DataPresenter" |
9 | | - xmlns:igControls="http://schemas.infragistics.com/xaml" |
10 | | - xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" |
11 | | - mc:Ignorable="d" |
12 | | - Title="MainWindow" Height="700" Width="900"> |
13 | | - <Grid> |
14 | | - <Grid.ColumnDefinitions> |
15 | | - <ColumnDefinition Width="4*"/> |
16 | | - <ColumnDefinition Width="Auto"/> |
17 | | - <ColumnDefinition Width="9*"/> |
18 | | - </Grid.ColumnDefinitions> |
19 | | - |
20 | | - <StackPanel Grid.Column="0" Margin="3"> |
21 | | - <StackPanel> |
22 | | - <StackPanel.Resources> |
23 | | - <Style x:Key="HeaderText" TargetType="TextBlock"> |
24 | | - <Setter Property="Background" Value="DarkBlue"/> |
25 | | - <Setter Property="Foreground" Value="White"/> |
26 | | - <Setter Property="Margin" Value="2"/> |
27 | | - <Setter Property="TextAlignment" Value="Center"/> |
28 | | - </Style> |
29 | | - </StackPanel.Resources> |
30 | | - |
31 | | - <!-- OData Sources --> |
32 | | - <TextBlock Text="OData Sources" Style="{StaticResource HeaderText}"/> |
33 | | - <ComboBox x:Name="cboOdataSources" SelectionChanged="cboOdataSources_SelectionChanged" Margin="2"> |
34 | | - <local:ODataSourceListItem BaseUri="http://services.odata.org/V4/Northwind/Northwind.svc" EntitySet="Orders" Description="Northwind Orders"/> |
35 | | - <local:ODataSourceListItem BaseUri="http://services.odata.org/AdventureWorksV3/AdventureWorks.svc" EntitySet="CompanySales" Description="AdventureWorks Company Sales"/> |
36 | | - <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/Planning/BuildingPermits.svc" EntitySet="BuildingPermits" Description="Scottsdale Building Permits"/> |
37 | | - <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/Planning/BuildingPermits.svc" EntitySet="BuildingInspections" Description="Scottsdale Building Inspections"/> |
38 | | - <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/MunicipalServices/CapitalImprovementProjects.svc" EntitySet="Projects" Description="Scottsdale Capital Improvement Projects"/> |
39 | | - <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/Finance/BusinessLicenses.svc" EntitySet="BusinessLicenses" Description="Scottsdale Business Licenses"/> |
40 | | - <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/Purchasing/Solicitations.svc" EntitySet="Solicitations" Description="Scottsdale Purchasing Solicitations"/> |
41 | | - <local:ODataSourceListItem BaseUri="http://packages.nuget.org/v1/FeedService.svc" EntitySet="Packages" Description="NuGet Packages"/> |
42 | | - <local:ODataSourceListItem BaseUri="http://www.nerddinner.com/Services/OData.svc" EntitySet="Dinners" Description="NerdDinner Dinners"/> |
43 | | - <local:ODataSourceListItem BaseUri="http://www.nerddinner.com/Services/OData.svc" EntitySet="RSVPs" Description="NerdDinner RSVPs"/> |
44 | | - </ComboBox> |
45 | | - <CheckBox x:Name="chkNullOutDatasource" Margin="0,2" IsChecked="True">Null out datasource before setting new</CheckBox> |
46 | | - |
47 | | - <!-- Pending Message --> |
48 | | - <Rectangle Width="1" Height="10" Fill="Transparent"/> |
49 | | - <TextBlock Text="Pending Message" Style="{StaticResource HeaderText}"/> |
50 | | - <TextBox x:Name="txtPendingMessage" Text="loading..." TextChanged="txtPendingMessage_TextChanged"/> |
51 | | - </StackPanel> |
52 | | - </StackPanel> |
53 | | - |
54 | | - <GridSplitter Grid.Column="1" Width="7" Margin="2,0" Background="Gray" ResizeBehavior="PreviousAndNext"/> |
55 | | - |
56 | | - <igDP:XamDataPresenter x:Name="dataGrid1" Grid.Column="2"> |
57 | | - <igDP:XamDataPresenter.Resources> |
58 | | - <Style TargetType="igDP:DataRecordCellArea"> |
59 | | - <Setter Property="DynamicDataPendingBackgroundBrush" Value="LightBlue"></Setter> |
60 | | - <Setter Property="DynamicDataPendingForegroundBrush" Value="DarkBlue"></Setter> |
61 | | - </Style> |
62 | | - </igDP:XamDataPresenter.Resources> |
63 | | - |
64 | | - <igDP:XamDataPresenter.FieldSettings> |
65 | | - <igDP:FieldSettings LabelClickAction="SortByMultipleFieldsTriState"/> |
66 | | - </igDP:XamDataPresenter.FieldSettings> |
67 | | - </igDP:XamDataPresenter> |
68 | | - </Grid> |
69 | | -</Window> |
| 1 | +<Window x:Class="DataPresenter.DataSources.OData.SampleApp.MainWindow" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | + xmlns:local="clr-namespace:DataPresenter.DataSources.OData.SampleApp" |
| 7 | + xmlns:igDP="http://infragistics.com/DataPresenter" |
| 8 | + xmlns:igEditors="http://infragistics.com/Editors" |
| 9 | + xmlns:igData="http://infragistics.com/DataPresenter" |
| 10 | + xmlns:igControls="http://schemas.infragistics.com/xaml" |
| 11 | + xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" |
| 12 | + xmlns:sys="clr-namespace:System;assembly=mscorlib" |
| 13 | + mc:Ignorable="d" |
| 14 | + Title="MainWindow" Height="700" Width="1000"> |
| 15 | + <Grid> |
| 16 | + <Grid.ColumnDefinitions> |
| 17 | + <ColumnDefinition Width="4*"/> |
| 18 | + <ColumnDefinition Width="Auto"/> |
| 19 | + <ColumnDefinition Width="9*"/> |
| 20 | + </Grid.ColumnDefinitions> |
| 21 | + |
| 22 | + <StackPanel Grid.Column="0" Margin="3"> |
| 23 | + <StackPanel> |
| 24 | + <StackPanel.Resources> |
| 25 | + <Style x:Key="HeaderText" TargetType="TextBlock"> |
| 26 | + <Setter Property="FontWeight" Value="Bold"/> |
| 27 | + <Setter Property="Foreground" Value="#FF0072C6"/> |
| 28 | + <Setter Property="Margin" Value="3"/> |
| 29 | + <Setter Property="FontSize" Value="14"/> |
| 30 | + </Style> |
| 31 | + |
| 32 | + <Style x:Key="TextBoxText" TargetType="TextBox"> |
| 33 | + <Setter Property="FontWeight" Value="Regular"/> |
| 34 | + <Setter Property="Foreground" Value="Black"/> |
| 35 | + <Setter Property="FontSize" Value="14"/> |
| 36 | + </Style> |
| 37 | + |
| 38 | + <Style x:Key="NumericEditorText" TargetType="igEditors:XamNumericEditor"> |
| 39 | + <Setter Property="FontWeight" Value="Regular"/> |
| 40 | + <Setter Property="Foreground" Value="Black"/> |
| 41 | + <Setter Property="FontSize" Value="14"/> |
| 42 | + </Style> |
| 43 | + |
| 44 | + <Style x:Key="ComboBoxText" TargetType="ComboBox"> |
| 45 | + <Setter Property="FontWeight" Value="Regular"/> |
| 46 | + <Setter Property="Foreground" Value="Black"/> |
| 47 | + <Setter Property="FontSize" Value="14"/> |
| 48 | + </Style> |
| 49 | + |
| 50 | + <Style x:Key="CheckBoxText" TargetType="CheckBox"> |
| 51 | + <Setter Property="FontWeight" Value="Regular"/> |
| 52 | + <Setter Property="Foreground" Value="Black"/> |
| 53 | + <Setter Property="FontSize" Value="14"/> |
| 54 | + </Style> |
| 55 | + </StackPanel.Resources> |
| 56 | + |
| 57 | + <!-- OData Sources --> |
| 58 | + <TextBlock Text="ODATA SOURCES" Style="{StaticResource HeaderText}"/> |
| 59 | + <ComboBox x:Name="cboOdataSources" SelectionChanged="cboOdataSources_SelectionChanged" Margin="2" Style="{StaticResource ComboBoxText}"> |
| 60 | + <local:ODataSourceListItem BaseUri="http://services.odata.org/V4/Northwind/Northwind.svc" EntitySet="Orders" Description="Northwind Orders"/> |
| 61 | + <local:ODataSourceListItem BaseUri="http://services.odata.org/AdventureWorksV3/AdventureWorks.svc" EntitySet="CompanySales" Description="AdventureWorks Company Sales"/> |
| 62 | + <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/Planning/BuildingPermits.svc" EntitySet="BuildingPermits" Description="Scottsdale Building Permits"/> |
| 63 | + <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/Planning/BuildingPermits.svc" EntitySet="BuildingInspections" Description="Scottsdale Building Inspections"/> |
| 64 | + <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/MunicipalServices/CapitalImprovementProjects.svc" EntitySet="Projects" Description="Scottsdale Capital Improvement Projects"/> |
| 65 | + <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/Finance/BusinessLicenses.svc" EntitySet="BusinessLicenses" Description="Scottsdale Business Licenses"/> |
| 66 | + <local:ODataSourceListItem BaseUri="http://data.scottsdaleaz.gov/Purchasing/Solicitations.svc" EntitySet="Solicitations" Description="Scottsdale Purchasing Solicitations"/> |
| 67 | + <local:ODataSourceListItem BaseUri="http://packages.nuget.org/v1/FeedService.svc" EntitySet="Packages" Description="NuGet Packages"/> |
| 68 | + <local:ODataSourceListItem BaseUri="http://www.nerddinner.com/Services/OData.svc" EntitySet="Dinners" Description="NerdDinner Dinners"/> |
| 69 | + <local:ODataSourceListItem BaseUri="http://www.nerddinner.com/Services/OData.svc" EntitySet="RSVPs" Description="NerdDinner RSVPs"/> |
| 70 | + </ComboBox> |
| 71 | + <CheckBox x:Name="chkNullOutDatasource" Margin="0,2" IsChecked="True" Style="{StaticResource CheckBoxText}">Null out datasource before setting new</CheckBox> |
| 72 | + |
| 73 | + <!-- Desired Page Size --> |
| 74 | + <Rectangle Width="1" Height="20" Fill="Transparent"/> |
| 75 | + <TextBlock Text="DATASOURCE DESIRED PAGE SIZE" Style="{StaticResource HeaderText}"/> |
| 76 | + <igEditors:XamNumericEditor x:Name="numDesiredPageSize" Width="100" HorizontalAlignment="Left" Mask="9999" EditModeEnded="numDesiredPageSize_EditModeEnded" SpinButtonDisplayMode="Always" SpinIncrement="10" Style="{StaticResource NumericEditorText}"> |
| 77 | + <igEditors:XamNumericEditor.ValueConstraint> |
| 78 | + <igEditors:ValueConstraint MinInclusive="5" MaxInclusive="1000"/> |
| 79 | + </igEditors:XamNumericEditor.ValueConstraint> |
| 80 | + </igEditors:XamNumericEditor> |
| 81 | + |
| 82 | + <!-- Maximum number of cached pages --> |
| 83 | + <Rectangle Width="1" Height="20" Fill="Transparent"/> |
| 84 | + <TextBlock Text="DATASOURCE MAX # CACHED PAGES" Style="{StaticResource HeaderText}"/> |
| 85 | + <igEditors:XamNumericEditor x:Name="numMaximumCachedPages" Width="100" HorizontalAlignment="Left" Mask="9999" EditModeEnded="numMaximumCachedPages_EditModeEnded" SpinButtonDisplayMode="Always" SpinIncrement="10" Style="{StaticResource NumericEditorText}"> |
| 86 | + <igEditors:XamNumericEditor.ValueConstraint> |
| 87 | + <igEditors:ValueConstraint MinInclusive="5" MaxInclusive="1000"/> |
| 88 | + </igEditors:XamNumericEditor.ValueConstraint> |
| 89 | + </igEditors:XamNumericEditor> |
| 90 | + |
| 91 | + <!-- Separator --> |
| 92 | + <Rectangle Height="1" HorizontalAlignment="Stretch" Fill="Gray" Margin="5,20,5,0"/> |
| 93 | + |
| 94 | + <!-- Pending Message --> |
| 95 | + <Rectangle Width="1" Height="20" Fill="Transparent"/> |
| 96 | + <TextBlock Text="DATA PENDING MESSAGE" Style="{StaticResource HeaderText}"/> |
| 97 | + <TextBox x:Name="txtPendingMessage" Text="loading..." TextChanged="txtPendingMessage_TextChanged" Style="{StaticResource TextBoxText}"/> |
| 98 | + |
| 99 | + <!-- XamDataPresenter View --> |
| 100 | + <Rectangle Width="1" Height="20" Fill="Transparent"/> |
| 101 | + <TextBlock Text="DATAPRESENTER VIEW" Style="{StaticResource HeaderText}"/> |
| 102 | + <ComboBox x:Name="cboDataPresenterView" SelectionChanged="cboDataPresenterView_SelectionChanged" Margin="2" Style="{StaticResource ComboBoxText}"> |
| 103 | + <sys:String>GridView</sys:String> |
| 104 | + <sys:String>CardView</sys:String> |
| 105 | + <sys:String>CarouselView</sys:String> |
| 106 | + <sys:String>TreeView</sys:String> |
| 107 | + </ComboBox> |
| 108 | + </StackPanel> |
| 109 | + </StackPanel> |
| 110 | + |
| 111 | + <GridSplitter Grid.Column="1" Width="7" Margin="2,0" Background="#FFDDDDDD" ResizeBehavior="PreviousAndNext"/> |
| 112 | + |
| 113 | + <igDP:XamDataPresenter x:Name="dataPresenter1" Grid.Column="2" Theme="Office2013" Margin="5,0,0,0"> |
| 114 | + <igDP:XamDataPresenter.Resources> |
| 115 | + <Style TargetType="igDP:DataRecordCellArea"> |
| 116 | + <Setter Property="DynamicDataPendingBackgroundBrush" Value="#200080FF"></Setter> |
| 117 | + <Setter Property="DynamicDataPendingForegroundBrush" Value="DarkGray"></Setter> |
| 118 | + </Style> |
| 119 | + </igDP:XamDataPresenter.Resources> |
| 120 | + |
| 121 | + <igDP:XamDataPresenter.FieldSettings> |
| 122 | + <igDP:FieldSettings LabelClickAction="SortByMultipleFieldsTriState"/> |
| 123 | + </igDP:XamDataPresenter.FieldSettings> |
| 124 | + </igDP:XamDataPresenter> |
| 125 | + </Grid> |
| 126 | +</Window> |
0 commit comments