Ejemplo n.º 1
0
        /// <summary>
        ///  Initializes the new instance of <see cref="Annotations"> class.</see>/>
        /// </summary>
        public Annotations()
        {
            ApplicationLanguages.PrimaryLanguageOverride = "en-US";
            this.InitializeComponent();
            this.viewModel         = new ViewModel();
            pivotChart1.ItemSource = ProductSales.GetSalesData();
            // Adding PivotAxis to the Control
            pivotChart1.PivotAxis.Add(new PivotItem {
                FieldMappingName = "Product", TotalHeader = "Total"
            });
            pivotChart1.PivotAxis.Add(new PivotItem {
                FieldMappingName = "Country", TotalHeader = "Total"
            });
            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                pivotChart1.PivotAxis.Add(new PivotItem {
                    FieldMappingName = "State", TotalHeader = "Total"
                });
            }

            // Adding PivotLegend to the Control
            pivotChart1.PivotLegend.Add(new PivotItem {
                FieldMappingName = "Date", TotalHeader = "Total"
            });

            //Adding PivotCalculations to the Control
            pivotChart1.PivotCalculations.Add(new PivotComputationInfo {
                FieldName = "Quantity", Format = "#.#"
            });
        }
        public IshikawaDiagram()
        {
            InitializeComponent();
            //Initialize Nodes and Connectors
            diagramcontrol.Nodes      = new ObservableCollection <NodeViewModel>();
            diagramcontrol.Connectors = new ObservableCollection <IConnector>();

            //Initialize PageSettings and Constraints
            InitializeDiagram();

            //To disable ContextMenu
            diagramcontrol.Menu = null;

            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                //To enable Zooming and Panning
                diagramcontrol.Tool = Tool.ZoomPan;
                //diagramcontrol.Constraints = diagramcontrol.Constraints &
                //                             ~(GraphConstraints.Zoomable | GraphConstraints.Pannable);
            }
            else
            {
                diagramcontrol.Tool         = Tool.ZoomPan;
                diagramcontrol.Constraints |= GraphConstraints.AllowPan;
            }
            //diagramcontrol.Constraints = diagramcontrol.Constraints & ~GraphConstraints.PanRails;

            //Create Nodes and Connections
            Nodeviewmodel();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes the new instance of <see cref="Serialization">Serialization.</see>/>
 /// </summary>
 public Serialization()
 {
     this.InitializeComponent();
     this.pivotGrid1.ItemSource = vm.ProductSalesData;
     if (DeviceFamily.GetDeviceFamily() == Devices.Mobile)
     {
         this.pivotGrid1.ShowGroupingBar = false;
     }
 }
Ejemplo n.º 4
0
 public ComboBox()
 {
     this.InitializeComponent();
     if (DeviceFamily.GetDeviceFamily() == Devices.Mobile)
     {
         EmployeesCombo.FontSize  = 12;
         ProductsCombo.FontSize   = 12;
         ComponentsCombo.FontSize = 12;
         view.Margin = new Thickness(10, 0, 20, 20);
     }
     ProductsCombo.LostFocus += ComponentsCombo_LostFocus;
 }
Ejemplo n.º 5
0
        public SamplesConfiguration()
        {
            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
#if STORE_SAMPLE
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(ScheduleUWP_Samples.GettingStarted_WinRT).AssemblyQualifiedName, Product = "Schedule", Header = "GettingStarted", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = true
                });
#else
                SampleHelper.SetTagsForProduct("Schedule", Tags.None);
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(ScheduleUWP_Samples.GettingStarted_WinRT).AssemblyQualifiedName, Product = "Schedule", Header = "GettingStarted", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = true
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(ScheduleUWP_Samples.CustomizationDemo_WinRT).AssemblyQualifiedName, Product = "Schedule", Header = "Customization", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(ScheduleUWP_Samples.RecurrenceAppointment_WinRT).AssemblyQualifiedName, Product = "Schedule", Header = "Recurrence Appointments", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(ScheduleUWP_Samples.ResourceDemo_WinRT).AssemblyQualifiedName, Product = "Schedule", Header = "Resource", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
#endif
            }
            else
            {
#if STORE_SAMPLE
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(ScheduleUWP_Samples.GettingStarted).AssemblyQualifiedName, Product = "Schedule", ProductIcons = "Icons/Schedule.png", Header = "GettingStarted", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = true
                });
#else
                SampleHelper.SetTagsForProduct("Schedule", Tags.None);
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(ScheduleUWP_Samples.GettingStarted).AssemblyQualifiedName, Product = "Schedule", Header = "GettingStarted", ProductIcons = "Icons/Schedule.png", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = true
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(ScheduleUWP_Samples.CustomizationDemo).AssemblyQualifiedName, Product = "Schedule", Header = "Customization", ProductIcons = "Icons/Schedule.png", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(ScheduleUWP_Samples.RecurrenceAppointment).AssemblyQualifiedName, Product = "Schedule", Header = "Recurrence Appointments", Tag = Tags.None, ProductIcons = "Icons/Schedule.png", Category = Categories.DataVisualization, HasOptions = false
                });
#endif
            }
        }
 public ColorPaletteView()
 {
     this.InitializeComponent();
     if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))
     {
         this.Loaded += ColorPaletteDemo_Loaded;
     }
     if (DeviceFamily.GetDeviceFamily() == Devices.Mobile)
     {
         ColorPalette.Height = 350;
         ColorPalette.Width  = 250;
     }
 }
Ejemplo n.º 7
0
        /// <summary>
        /// The event handler method is hooked when the radio button was clicked.
        /// </summary>
        /// <param name="sender">The radio button.</param>
        /// <param name="e">The event argument.</param>
        private void rdBtnRelationalData_Click(object sender, RoutedEventArgs e)
        {
            parentGrid.Children.RemoveAt(0);
            SfPivotChart pivotChart = new SfPivotChart
            {
                ShowToolTip = false,
                ChartType   = PivotChartType.Scatter,
                Legend      = null,
                Annotations = parentGrid.Resources["RelationalAnnotationCollection"] as PivotChartAnnotationCollection
            };

            busyIndicator.IsBusy = true;
            Task.Run(async() =>
            {
                var dispatcher           = CoreApplication.MainView.CoreWindow.Dispatcher;
                var taskCompletionSource = new TaskCompletionSource <bool>();
                await dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
                {
                    pivotChart.ItemSource = ProductSales.GetSalesData();
                    // Adding PivotAxis to the Control
                    pivotChart.PivotAxis.Add(new PivotItem {
                        FieldMappingName = "Product", TotalHeader = "Total"
                    });
                    pivotChart.PivotAxis.Add(new PivotItem {
                        FieldMappingName = "Country", TotalHeader = "Total"
                    });
                    if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
                    {
                        pivotChart.PivotAxis.Add(new PivotItem {
                            FieldMappingName = "State", TotalHeader = "Total"
                        });
                    }

                    // Adding PivotLegend to the Control
                    pivotChart.PivotLegend.Add(new PivotItem {
                        FieldMappingName = "Date", TotalHeader = "Total"
                    });

                    //Adding PivotCalculations to the Control
                    pivotChart.PivotCalculations.Add(new PivotComputationInfo {
                        FieldName = "Quantity", Format = "#.#"
                    });

                    parentGrid.Children.Insert(0, pivotChart1);
                    taskCompletionSource.SetResult(true);
                    busyIndicator.IsBusy = false;
                });
                await taskCompletionSource.Task;
            });
        }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes the new instance of <see cref="Relational">Relational.</see>/>
 /// </summary>
 public Relational()
 {
     ApplicationLanguages.PrimaryLanguageOverride = "en-US";
     this.InitializeComponent();
     this.pivotGrid1.ItemSource = vm.ProductSalesData;
     this.pivotGrid1.RowHeaderStyle.IsHyperlinkCell = this.pivotGrid1.ColumnHeaderStyle.IsHyperlinkCell = this.pivotGrid1.SummaryColumnStyle.IsHyperlinkCell = this.pivotGrid1.SummaryRowStyle.IsHyperlinkCell = this.pivotGrid1.ValueCellStyle.IsHyperlinkCell = false;
     if (DeviceFamily.GetDeviceFamily() != Devices.Desktop)
     {
         if (pivotGrid1.ConditionalFormats != null && pivotGrid1.ConditionalFormats.Count > 0)
         {
             pivotGrid1.ConditionalFormats.Clear();
         }
     }
 }
Ejemplo n.º 9
0
        public DropDownDemo()
        {
            this.InitializeComponent();
            this.Loaded += DropDownDemo_Loaded;
            if (DeviceFamily.GetDeviceFamily() == Devices.Mobile)
            {
                datedroptext.Visibility   = Visibility.Collapsed;
                sliderdroptext.Visibility = Visibility.Collapsed;
                datedrop.Visibility       = Visibility.Collapsed;
                sliderdrop.Visibility     = Visibility.Collapsed;

                colorDropdown.FontSize       = 12;
                calculateDropdown.Visibility = Visibility.Collapsed;
                calculateText.Visibility     = Visibility.Collapsed;
            }
        }
Ejemplo n.º 10
0
        /// <summary>
        /// Initializes the new instance of <see cref="ConditionalFormat">ConditionalFormat.</see>/>
        /// </summary>
        public ConditionalFormat()
        {
            ApplicationLanguages.PrimaryLanguageOverride = "en-US";
            InitializeComponent();
            pivotGrid.ItemSource = vm.ProductSalesData;

            // Adding rows to SfPivotGrid

            pivotGrid.PivotRows.Add(new PivotItem()
            {
                FieldMappingName = "Product", TotalHeader = "Total"
            });
            pivotGrid.PivotRows.Add(new PivotItem()
            {
                FieldMappingName = "Date", TotalHeader = "Total"
            });

            // Adding columns to SfPivotGrid
            pivotGrid.PivotColumns.Add(new PivotItem()
            {
                FieldMappingName = "Country", TotalHeader = "Total"
            });
            pivotGrid.PivotColumns.Add(new PivotItem()
            {
                FieldMappingName = "State", TotalHeader = "Total"
            });

            // Adding calculations to SfPivotGrid

            pivotGrid.PivotCalculations.Add(new PivotComputationInfo()
            {
                FieldHeader = "Amount", FieldName = "Amount", Format = "C", SummaryType = SummaryType.DoubleTotalSum
            });
            pivotGrid.PivotCalculations.Add(new PivotComputationInfo()
            {
                FieldHeader = "Quantity", FieldName = "Quantity", Format = "#.##", SummaryType = SummaryType.Count
            });

            if (DeviceFamily.GetDeviceFamily() != Devices.Desktop)
            {
                ConditionalFormatEditorButton.Visibility = Visibility.Collapsed;
            }
        }
Ejemplo n.º 11
0
        public void CollectSampleView()
        {
#if STORE_SAMPLE
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                SampleView = typeof(TreeMapWinRTSamples.FlatCollectionTreeMap).AssemblyQualifiedName, Product = "TreeMap", ProductIcons = "ms-appx:///Assets/Icons/TreeMap.png", Header = "FlatCollectionTreeMap", Tag = Tags.None, Category = "Data Visualization", HasOptions = false
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                SampleView = typeof(TreeMapWinRTSamples.HierarchicalCollectionTreeMap).AssemblyQualifiedName, Product = "TreeMap", ProductIcons = "ms-appx:///Assets/Icons/TreeMap.png", Header = "HierarchicalCollectionTreeMap", Tag = Tags.None, Category = "Data Visualization", HasOptions = false
            });
#else
            if (DeviceFamily.GetDeviceFamily() == Devices.Mobile)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(TreeMapWinRTSamples.FlatCollectionTreeMap).AssemblyQualifiedName, Product = "TreeMap", ProductIcons = "ms-appx:///Assets/Icons/TreeMap.png", Header = "FlatCollectionTreeMap", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
            }

            else if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(TreeMapWinRTSamples.FlatCollectionTreeMap).AssemblyQualifiedName, Product = "TreeMap", ProductIcons = "ms-appx:///Assets/Icons/TreeMap.png", Header = "FlatCollectionTreeMap", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(TreeMapWinRTSamples.HierarchicalCollectionTreeMap).AssemblyQualifiedName, Product = "TreeMap", ProductIcons = "ms-appx:///Assets/Icons/TreeMap.png", Header = "HierarchicalCollectionTreeMap", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
#if (!WINDOWS_STORE)
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(TreeMapWinRTSamples.TreeMapCustomization).AssemblyQualifiedName, Product = "TreeMap", ProductIcons = "ms-appx:///Assets/Icons/TreeMap.png", Header = "TreeMapCustomization", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(TreeMapWinRTSamples.TreeMapDrillDown).AssemblyQualifiedName, Product = "TreeMap", ProductIcons = "ms-appx:///Assets/Icons/TreeMap.png", Header = "TreeMapDrillDown", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
#endif
            }
#endif
        }
Ejemplo n.º 12
0
        public void CollectSampleView()
        {
#if STORE_SAMPLE
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                SampleView = typeof(MapControlUWP_Samples.DataMarkers).AssemblyQualifiedName, Product = "Maps", ProductIcons = "ms-appx:///Assets/Icons/maps.png", Header = "DataMarkers", Tag = Tags.None, Category = "Data Visualization", HasOptions = false
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                SampleView = typeof(MapControlUWP_Samples.ShapeSelection).AssemblyQualifiedName, Product = "Maps", ProductIcons = "ms-appx:///Assets/Icons/maps.png", Header = "ShapeSelection", Tag = Tags.None, Category = "Data Visualization", HasOptions = true
            });
#else
            if (DeviceFamily.GetDeviceFamily() == Devices.Mobile)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(MapControlUWP_Samples.DataMarkers).AssemblyQualifiedName, Product = "Maps", ProductIcons = "ms-appx:///Assets/Icons/maps.png", Header = "DataMarkers", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(MapControlUWP_Samples.ElectionResultMobile).AssemblyQualifiedName, Product = "Maps", ProductIcons = "ms-appx:///Assets/Icons/maps.png", Header = "ShapeSelection", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
#if (!WINDOWS_STORE)
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(MapControlUWP_Samples.BasicMap).AssemblyQualifiedName, Product = "Maps", ProductIcons = "ms-appx:///Assets/Icons/maps.png", Header = "HeatMap", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(MapControlUWP_Samples.TicketBooking).AssemblyQualifiedName, Product = "Maps", ProductIcons = "ms-appx:///Assets/Icons/maps.png", Header = "Ticket Booking", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(MapControlUWP_Samples.BubbleVisualization).AssemblyQualifiedName, Product = "Maps", ProductIcons = "ms-appx:///Assets/Icons/maps.png", Header = "BubbleVisualization", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
#endif
            }
            else if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(MapControlUWP_Samples.DataMarkers).AssemblyQualifiedName, Product = "Maps", ProductIcons = "ms-appx:///Assets/Icons/maps.png", Header = "DataMarkers", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(MapControlUWP_Samples.ElectionResult).AssemblyQualifiedName, Product = "Maps", ProductIcons = "ms-appx:///Assets/Icons/maps.png", Header = "ShapeSelection", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });

#if (!WINDOWS_STORE)
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(MapControlUWP_Samples.BasicMap).AssemblyQualifiedName, Product = "Maps", ProductIcons = "ms-appx:///Assets/Icons/maps.png", Header = "HeatMap", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(MapControlUWP_Samples.BubbleVisualization).AssemblyQualifiedName, Product = "Maps", ProductIcons = "ms-appx:///Assets/Icons/maps.png", Header = "BubbleVisualization", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(MapControlUWP_Samples.MapPoints).AssemblyQualifiedName, Product = "Maps", ProductIcons = "ms-appx:///Assets/Icons/maps.png", Header = "MapPoints", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView = typeof(MapControlUWP_Samples.TicketBooking).AssemblyQualifiedName, Product = "Maps", ProductIcons = "ms-appx:///Assets/Icons/maps.png", Header = "Ticket Booking", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false
                });
#endif
            }
#endif
        }
        public SamplesConfiguration()
        {
#if !SFDATAGRID_STORE
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Expense Analysis",
                SampleCategory = "Expense Analysis",
                Description    = "This sample demonstrates analyzing an individual's expenses using the grid and chart controls.",
                Category       = Categories.Grids,
                DesktopImage   = "ms-appx:///WhatsNewImages/Expense-Analysis.jpg",
                MobileImage    = "ms-appx:///WhatsNewImages/Expense-Analysis.jpg",
                SampleView     = typeof(ExpenseAnalysisDemo.HomePage).AssemblyQualifiedName,
                Tag            = Tags.None,
                SampleType     = SampleType.Showcase,
                Product        = "DataGrid",
            });
#endif
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Getting Started",
                SampleCategory = "Getting Started",
                Category       = Categories.Grids,
                ProductIcons   = "Icons/Grid.png",
                SampleView     = typeof(DataGrid.GettingStarted).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

#if !SFDATAGRID_STORE
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Data binding",
                SampleCategory = "Data Binding",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.DataBinding).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Complex and Indexer Properties",
                SampleCategory = "Data Binding",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.ComplexPropertyBinding).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });



            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Sorting",
                SampleCategory = "Data Presentation",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.Sorting).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Grouping",
                SampleCategory = "Data Presentation",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.Grouping).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Summaries",
                SampleCategory = "Data Presentation",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.Summaries).AssemblyQualifiedName,
                Tag            = Tags.Updated,
                Product        = "DataGrid",
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Interval Grouping",
                SampleCategory = "Data Presentation",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.IntervalGroupingDemo).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Custom Grouping",
                SampleCategory = "Data Presentation",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.CustomGrouping).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Sort By Summary",
                SampleCategory = "Data Presentation",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.SortBySummary).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });


            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Filtering",
                SampleCategory = "Data Filtering",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.Filtering).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
#endif
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Advanced Filtering",
                SampleCategory = "Data Filtering",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.ExcelLikeFiltering).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
#if !SFDATAGRID_STORE
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Filter Row",
                SampleCategory = "Data Filtering",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.FilterRow).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header         = "Master-Details View",
                    SampleCategory = "Master Detail",
                    Category       = Categories.Grids,
                    SampleView     = typeof(DataGrid.MasterDetailsView).AssemblyQualifiedName,
                    Tag            = Tags.None,
                    Product        = "DataGrid",
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header         = "Column Types",
                    SampleCategory = "Master Detail",
                    Category       = Categories.Grids,
                    SampleView     = typeof(DataGrid.DetailsViewColumnTypes).AssemblyQualifiedName,
                    Tag            = Tags.None,
                    Product        = "DataGrid",
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header         = "Stacked Headers",
                    SampleCategory = "Master Detail",
                    Category       = Categories.Grids,
                    SampleView     = typeof(DataGrid.DetailsViewStackedHeaderRows).AssemblyQualifiedName,
                    Tag            = Tags.None,
                    Product        = "DataGrid",
                });

                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header         = "Conditional Formating",
                    SampleCategory = "Master Detail",
                    Category       = Categories.Grids,
                    SampleView     = typeof(DataGrid.DetailsViewConditionalFormating).AssemblyQualifiedName,
                    Tag            = Tags.None,
                    Product        = "DataGrid",
                });

                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header         = "Excel Exporting",
                    SampleCategory = "Master Detail",
                    Category       = Categories.Grids,
                    SampleView     = typeof(DataGrid.MasterDetailsExporting).AssemblyQualifiedName,
                    Tag            = Tags.None,
                    Product        = "DataGrid",
                });
            }
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Data Virtualization",
                SampleCategory = "Data Virtualization",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.DataVirtualization).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Data Paging",
                SampleCategory = "Data Virtualization",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.Paging).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "On-demand Paging",
                SampleCategory = "Data Virtualization",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.OnDemandPaging).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Incremental Loading",
                SampleCategory = "Data Virtualization",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.IncrementalLoading).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Editing",
                SampleCategory = "Editing",
                Category       = Categories.Grids,
                Tag            = Tags.None,
                SampleView     = typeof(DataGrid.CellTypes).AssemblyQualifiedName,
                Product        = "DataGrid",
            });
            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header         = "Dialog editing",
                    SampleCategory = "Editing",
                    Category       = Categories.Grids,
                    Tag            = Tags.None,
                    SampleView     = typeof(DataGrid.Editing).AssemblyQualifiedName,
                    Product        = "DataGrid",
                });
            }
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Editable Columns",
                SampleCategory = "Editing",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.EditableColumnTypes).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Drop down and Read Only Columns",
                SampleCategory = "Editing",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.DropDownAndReadOnlyColumns).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "ComboBox Column",
                SampleCategory = "Editing",
                DesktopImage   = "ms-appx:///WhatsNewImages/ComboBoxColumn.png",
                MobileImage    = "ms-appx:///WhatsNewImages/ComboBoxColumn.png",
                Description    = "This sample showcases to load different ItemsSource for different rows in GridComboBoxColumn.",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.ComboBoxColumn).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });



            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "AddNewRow",
                SampleCategory = "Rows",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.AddNewRow).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Stacked Headers",
                SampleCategory = "Rows",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.StackedHeaderRows).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Auto Row Height",
                SampleCategory = "Rows",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.AutoRowHeight).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Unbound Row",
                SampleCategory = "Rows",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.UnBoundRow).AssemblyQualifiedName,
                Tag            = Tags.None,
                SampleType     = SampleType.Featured,
                Product        = "DataGrid",
            });


            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Unbound column",
                SampleCategory = "Columns",
                Description    = "This sample showcases the unbound column capability of SfDataGrid. SfDataGrid supports the addition of extra columns to the data source columns. These additional columns are called as unbound columns, as they do not belong to the data source. Unbound column has two features like Expression and Format and these unbound fields are used when you want to add additional or custom information to each record. An unbound column is sorted, grouped, and filtered like other GridColumns.",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.UnBoundColumns).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Column Sizer",
                SampleCategory = "Columns",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.ColumnSizerDemo).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Cell Merge",
                SampleCategory = "Columns",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.CellMerge).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header         = "Auto Cell Merge",
                    SampleCategory = "Columns",
                    Category       = Categories.Grids,
                    SampleView     = typeof(DataGrid.AutoCellMerge).AssemblyQualifiedName,
                    Tag            = Tags.None,
                    Product        = "DataGrid",
                });
            }
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Data Validation",
                SampleCategory = "Data Validation",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.DataValidations).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Custom Validation",
                SampleCategory = "Data Validation",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.CustomValidations).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });


            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Row Selection",
                SampleCategory = "Selection",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.Selections).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Cell Selection",
                SampleCategory = "Selection",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.CellSelectionDemo).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "CheckBox Selector Column",
                SampleCategory = "Selection",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.CheckBoxSelectorColumn).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
#endif
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Real Time Updates",
                SampleCategory = "Performance",
                Description    = "This sample showcases the real time update capabilities of the DataGrid control. ",
                Category       = Categories.Grids,
                DesktopImage   = "ms-appx:///WhatsNewImages/RealTimeUpdate.png",
                MobileImage    = "ms-appx:///WhatsNewImages/RealTimeUpdate.png",
                SampleView     = typeof(DataGrid.Performance).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
#if !SFDATAGRID_STORE
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Trading Grid",
                SampleCategory = "Performance",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.TradingGrid).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Alternative Row Style",
                SampleCategory = "Appearance",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.AlternativeRowStyle).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Styling",
                SampleCategory = "Appearance",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.Styling).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header         = "Visual Styles",
                    SampleCategory = "Appearance",
                    Description    = "This sample showcases the different visual styles available in the DataGrid control. ",
                    Category       = Categories.Grids,
                    DesktopImage   = "ms-appx:///WhatsNewImages/VisualStyles.png",
                    MobileImage    = "ms-appx:///WhatsNewImages/VisualStyles.png",
                    SampleView     = typeof(DataGrid.VisualStyles).AssemblyQualifiedName,
                    Tag            = Tags.None,
                    Product        = "DataGrid",
                });
            }
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Freeze Panes",
                SampleCategory = "Appearance",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.FreezePanes).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Conditional Row Style",
                SampleCategory = "Appearance",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.RowStyle).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
#endif
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Conditional Cell Style",
                SampleCategory = "Appearance",
                Description    = "This sample showcases the conditional formatting functionality in the DataGrid control. ",
                Category       = Categories.Grids,
                DesktopImage   = "ms-appx:///WhatsNewImages/CellStyle.png",
                MobileImage    = "ms-appx:///WhatsNewImages/CellStyle.png",
                SampleView     = typeof(DataGrid.ConditionalFormatting).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
#if !SFDATAGRID_STORE
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Context Menu",
                SampleCategory = "Interactive Features",
                Description    = "This sample showcases the capabilities of the context menu available in the DataGrid control. ",
                Category       = Categories.Grids,
                DesktopImage   = "ms-appx:///WhatsNewImages/ContextMenu.png",
                MobileImage    = "ms-appx:///WhatsNewImages/ContextMenu.png",
                SampleView     = typeof(DataGrid.ContextMenuDemo).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });
            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header         = "Column Chooser",
                    SampleCategory = "Interactive Features",
                    Description    = "This sample showcases the capabilities of the ColumnChooser window available in the DataGrid control. ",
                    Category       = Categories.Grids,
                    DesktopImage   = "ms-appx:///WhatsNewImages/ColumnChosser.png",
                    MobileImage    = "ms-appx:///WhatsNewImages/ColumnChosser.png",
                    SampleView     = typeof(DataGrid.ColumnChooserDemo).AssemblyQualifiedName,
                    Tag            = Tags.None,
                    Product        = "DataGrid",
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header         = "Clipboard Operation",
                    SampleCategory = "Interactive Features",
                    Category       = Categories.Grids,
                    SampleView     = typeof(DataGrid.ClipboardOperation).AssemblyQualifiedName,
                    Tag            = Tags.None,
                    Product        = "DataGrid",
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header         = "Drag and Drop",
                    SampleCategory = "Interactive Features",
                    Description    = "This sample showcases the built-in row drag and drop capability in SfDataGrid. ",
                    Category       = Categories.Grids,
                    DesktopImage   = "ms-appx:///WhatsNewImages/RowDragandDrop.png",
                    MobileImage    = "ms-appx:///WhatsNewImages/RowDragandDrop.png",
                    SampleView     = typeof(DataGrid.DragandDrop).AssemblyQualifiedName,
                    Tag            = Tags.None,
                    Product        = "DataGrid",
                });
            }

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Serialization",
                SampleCategory = "Serialization",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.Serialization).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Excel Exporting",
                SampleCategory = "Exporting",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.Exporting).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Pdf Exporting",
                SampleCategory = "Exporting",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.PdfExporting).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Printing",
                SampleCategory = "Printing",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.Printing).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Custom Printing",
                SampleCategory = "Printing",
                Category       = Categories.Grids,
                SampleView     = typeof(DataGrid.CustomPrinting).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "DataGrid",
            });

            //SampleHelper.SampleViews.Add(new SampleInfo()
            //{
            //    Header = "Localization",
            //    SampleCategory = "Localization",
            //    Description = "This sample showcases the complex and indexer properties binding capabilities in SfDataGrid. SfDataGrid supports to bind complex and indexer properties to its columns at any level.",
            //    Category = "DataGrid",
            //    SampleView = typeof(DataGrid.Localization).AssemblyQualifiedName,
            //    Tag = Tags.None,
            //});

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "MultiColumnDropDown",
                SampleCategory = "SfMultiColumnDropDownControl",
                Category       = Categories.Editors,
                SampleView     = typeof(DataGrid.MultiColumnDropDownControl).AssemblyQualifiedName,
                Tag            = Tags.None,
                Product        = "MultiColumnDropDown",
            });
#endif
            SampleHelper.SetTagsForProduct("DataGrid", Tags.Updated);
        }
Ejemplo n.º 14
0
        public SamplesConfiguration()
        {
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Self-Relational",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Getting Started",
                ProductIcons   = "Icons/SfTreeGrid.png",
                HasOptions     = true,
                Description    = "This sample showcases how to bind the Self-Relational data by specifying ChildPropertyName and ParentPropertyName in SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.SelfRelational).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Nested Collection",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Getting Started",
                HasOptions     = true,
                Description    = "This sample showcases how to bind the Nested Collection data by specifying ChildPropertyName in SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.NestedCollection).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "On-demand Loading",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Getting Started",
                HasOptions     = true,
                Description    = "This sample exposes the On-demand data loading of SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.OnDemandLoading).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });


            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "TreeView",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Getting Started",
                HasOptions     = true,
                Description    = "This sample showcases how to show TreeView appearance in SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.TreeViewDemo).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });

#if !SFTREEGRID_STORE
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Sorting",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Sorting",
                HasOptions     = true,
                Description    = "This sample showcases Sorting in SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.SortingDemo).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Custom Sorting",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Sorting",
                Description    = "This sample showcases how to sort a grid column using SortComparer in SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.CustomSorting).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });
#endif
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Filtering",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Filtering",
                DesktopImage   = "ms-appx:///WhatsNewImages/Filtering.png",
                MobileImage    = "ms-appx:///WhatsNewImages/Filtering.png",
                Description    = "This sample showcases Filtering capability of SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.Filtering).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });
#if !SFTREEGRID_STORE
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Editing",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Editing and Selection",
                HasOptions     = true,
                Description    = "This sample showcases Editing in SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.EditingDemo).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Selection",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Editing and Selection",
                HasOptions     = true,
                Description    = "This sample showcases the Selection in SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.SelectionDemo).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Column Sizer",
                Product        = "TreeGrid",
                SampleCategory = "Columns",
                HasOptions     = true,
                Description    = "This sample showcases the ColumnSizer in SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.ColumnSizer).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Stacked headers",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Columns",
                HasOptions     = true,
                Description    = "This sample showcases the stacked headers in SfTreeGrid",
                DesktopImage   = "ms-appx:///WhatsNewImages/Stacked Header.png",
                MobileImage    = "ms-appx:///WhatsNewImages/Stacked Header.png",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.StackedHeader).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });

            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header         = "Node Drag and Drop",
                    Product        = "TreeGrid",
                    Tag            = Tags.None,
                    SampleCategory = "Drag and Drop",
                    Description    = "This sample showcases the row and column drag and drop in SfTreeGrid",
                    SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.RowDragandDrop).AssemblyQualifiedName,
                    Category       = Categories.Grids,
                });
            }

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Data Validation",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Validation",
                Description    = "This sample showcases the data validation capability in SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.ValidationDemo).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Conditional Formatting",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Appearance",
                Description    = "This sample showcases the Conditional Formatting in SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.ConditionalFormatting).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Freeze columns",
                Tag            = Tags.None,
                Product        = "TreeGrid",
                SampleCategory = "Appearance",
                HasOptions     = true,
                Description    = "This sample showcases the freeze columns in SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.FreezeColumns).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });
#endif

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "CheckBox Selection",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Node CheckBox",
                HasOptions     = true,
                Description    = "This sample showcases the CheckBox Selection in SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.CheckBoxSelection).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });

#if !SFTREEGRID_STORE
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Conditional CheckBox",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Node CheckBox",
                HasOptions     = true,
                Description    = "This sample showcases how to show CheckBox based on some conditions in SfTreeGrid",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.ConditionalCheckBox).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "Excel Exporting",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Exporting",
                Description    = " This sample showcases the excel exporting capability of SfTreeGrid.",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.ExcelExporting).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });

            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header         = "PDF Exporting",
                Product        = "TreeGrid",
                Tag            = Tags.None,
                SampleCategory = "Exporting",
                Description    = " This sample showcases the PDF exporting capability of SfTreeGrid.",
                SampleView     = typeof(Syncfusion.SampleBrowser.UWP.SfTreeGrid.PdfExporting).AssemblyQualifiedName,
                Category       = Categories.Grids,
            });
#endif
            SampleHelper.SetTagsForProduct("TreeGrid", Tags.None);
        }
Ejemplo n.º 15
0
        public SamplesConfiguration()
        {
#if !STORE_SB
            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header       = "Diagram Builder",
                    Category     = Categories.DataVisualization,
                    SampleType   = SampleType.Showcase,
                    DesktopImage = "ms-appx:///ShowcaseImage/Diagrambuilder.jpg",
                    Description  =
                        "This application is used to create new or edit existing diagrams like flowchart, circuit diagram. Stencil is available to add nodes into diagram.",
                    Product    = "Diagram",
                    SampleView = typeof(DiagramBuilder.MainPage).AssemblyQualifiedName,
                    Tag        = Tags.None,
                });
            }

            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header       = "Floor Planner",
                    Category     = Categories.DataVisualization,
                    SampleType   = SampleType.Showcase,
                    DesktopImage = "ms-appx:///ShowcaseImage/FloorPlanner.jpg",
                    Description  = "Floor planner is an application to create detailed and precise design.",
                    Product      = "Diagram",
                    SampleView   = typeof(FloorPlannerDemo.MainPage).AssemblyQualifiedName,
                    Tag          = Tags.None,
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header       = "Workflow Editor",
                    Category     = Categories.DataVisualization,
                    SampleType   = SampleType.Showcase,
                    DesktopImage = "ms-appx:///ShowcaseImage/WorkFlowEditor.jpg",
                    Description  =
                        "Workflow editor is an application used to represent a process/workflow as block diagram and see the flow during execution.",
                    Product    = "Diagram",
                    SampleView = typeof(WorkFlowEditor.MainPage).AssemblyQualifiedName,
                    Tag        = Tags.None,
                });
            }

            //SampleHelper.SampleViews.Add(new SampleInfo()
            //{
            //    Header = "Organizational Chart",
            //    Category = Categories.DataVisualization,
            //    SampleType = SampleType.Showcase,
            //    DesktopImage = "ms-appx:///ShowcaseImage/OrganizationalChart.jpg",
            //    Description =
            //           "Organization Chart is an application to show the structure of an organization and relationships.",
            //    Product = "Diagram",
            //    SampleView = typeof(OrganizationalChartDemo.MainPage).AssemblyQualifiedName,
            //    Tag = Tags.None,
            //});
            //SampleHelper.SampleViews.Add(new SampleInfo()
            //{
            //    Header = "Wireframe Builder",
            //    Category = Categories.DataVisualization,
            //    SampleType = SampleType.Showcase,
            //    DesktopImage = "/ShowcaseImage/Mockup.jpg",
            //    Description = "This sample displays an organizational chart that can be expanded and collapsed as required.",
            //    Product = "Diagram",
            //    SampleView = typeof(Mockup.MainPage).AssemblyQualifiedName,
            //    Tag = Tags.None,
            //});

            //SampleHelper.SampleViews.Add(new SampleInfo()
            //{
            //    Header = "Mind Map",
            //    Category = Categories.DataVisualization,
            //    SampleType = SampleType.Showcase,
            //    DesktopImage = "ms-appx:///ShowcaseImage/MindMap.jpg",
            //    Description = "Mind map is an application used to visually organize the idea or information.",
            //    Product = "Diagram",
            //    SampleView = typeof(MindMapDemo.MainPage).AssemblyQualifiedName,
            //    Tag = Tags.None,
            //});
            //SampleHelper.SampleViews.Add(new SampleInfo()
            //{
            //    Header = "Workflow Editor",
            //    Category = Categories.DataVisualization,
            //    SampleType = SampleType.Showcase,
            //    DesktopImage = "ms-appx:///ShowcaseImage/WorkFlowEditor.jpg",
            //    Description = "Workflow editor is an application used to represent a process/workflow as block diagram and see the flow during execution.",
            //    Product = "Diagram",
            //    SampleView = typeof(WorkFlowEditor.MainPage).AssemblyQualifiedName,
            //    Tag = Tags.None,
            //});


            //SampleHelper.SampleViews.Add(new SampleInfo()
            //{
            //    Header = "UML Diagramming",
            //    Category = Categories.DataVisualization,
            //    SampleType = SampleType.Showcase,
            //    DesktopImage = "ms-appx:///ShowcaseImage/uml.jpg",
            //    Description = "This sample lets uses create and save UML diagrams using the diagram controls touch interface.",
            //    Product = "Diagram",
            //    SampleView = typeof(UMLDiagramDesigner.MainPage).AssemblyQualifiedName,
            //    Tag = Tags.None,
            //});
#endif

            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop || DeviceFamily.GetDeviceFamily() == Devices.Mobile)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView     = typeof(FlowDiagram).AssemblyQualifiedName,
                    Header         = "Flow Diagram",
                    Product        = "Diagram",
                    ProductIcons   = "ms-appx:///Assets/diagram.png",
                    SampleCategory = "Getting Started",
                    SearchKeys     = new string[] { "Diagram", "FlowChart", "Usage" },
                    Category       = Categories.DataVisualization,
                });


                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView     = typeof(NodeContent).AssemblyQualifiedName,
                    Header         = "Node Content",
                    SampleCategory = "Getting Started",
                    Product        = "Diagram",
                    SearchKeys     = new string[] { "Diagram", "Content", "Usage" },
                    Category       = Categories.DataVisualization,
                });

                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView     = typeof(HierarchicalTree).AssemblyQualifiedName,
                    Header         = "Hierarchical Tree",
                    SampleCategory = "Automatic Layout",
                    Product        = "Diagram",
                    SearchKeys     = new string[] { "Diagram", "HierarchicalTree" },
                    Category       = Categories.DataVisualization,
                });

                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView     = typeof(RadialTree).AssemblyQualifiedName,
                    Header         = "Radial Tree",
                    SampleCategory = "Automatic Layout",
                    Product        = "Diagram",
                    SearchKeys     = new string[] { "Diagram", "RadialTree" },
                    Category       = Categories.DataVisualization,
                });

                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView     = typeof(OrganizationChart).AssemblyQualifiedName,
                    Header         = "Organization Chart",
                    SampleCategory = "Automatic Layout",
                    Product        = "Diagram",
                    SearchKeys     = new string[] { "Diagram", "OrganizationChart" },
                    Category       = Categories.DataVisualization,
                });

                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView     = typeof(SequenceDiagram).AssemblyQualifiedName,
                    Header         = "Sequence Diagram",
                    SampleCategory = "Getting Started",
                    Product        = "Diagram",
                    SearchKeys     = new string[] { "Diagram", "SequenceDiagram" },
                    Category       = Categories.DataVisualization,
                });

                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView     = typeof(IshikawaDiagram).AssemblyQualifiedName,
                    Header         = "Ishikawa Diagram",
                    SampleCategory = "Getting Started",
                    Product        = "Diagram",
                    SearchKeys     = new string[] { "Diagram", "IshikawaDiagram" },
                    Category       = Categories.DataVisualization,
                });
                //SampleHelper.SampleViews.Add(new SampleInfo()
                //{
                //    SampleView = typeof (Selector).AssemblyQualifiedName,
                //    Header = "Selector",
                //    SampleCategory = "Getting Started",
                //    Product = "Diagram",
                //    SearchKeys = new string[] {"Diagram", "Selector"},
                //    Category = Categories.DataVisualization,
                //});

#if !STORE_SB
                if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
                {
                    SampleHelper.SampleViews.Add(new SampleInfo()
                    {
                        SampleView     = typeof(RulersAndUnit).AssemblyQualifiedName,
                        Header         = "Rulers And Units",
                        SampleCategory = "Getting Started",
                        Product        = "Diagram",
                        SearchKeys     = new string[] { "Diagram", "Ruler", "Units" },
                        Category       = Categories.DataVisualization,
                    });
                }
                //SampleHelper.SampleViews.Add(new SampleInfo()
                //{
                //    SampleView = typeof (Overview).AssemblyQualifiedName,
                //    Header = "Overview",
                //    SampleCategory = "Getting Started",
                //    Product = "Diagram",
                //    SearchKeys = new string[] {"Diagram", "Overview"},
                //    Category = Categories.DataVisualization,
                //});
#endif
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    SampleView     = typeof(CircuitDiagram).AssemblyQualifiedName,
                    Header         = "Circuit Diagram",
                    SampleCategory = "Getting Started",
                    Product        = "Diagram",
                    SearchKeys     = new string[] { "Diagram", "Circuit" },
                    Category       = Categories.DataVisualization,
                });
            }
        }
Ejemplo n.º 16
0
        /// <summary>
        /// This method is used to get the collection of samples.
        /// </summary>
        public void CollectSampleView()
        {
            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo {
                    SampleView = typeof(BI.PivotGrid.Relational).AssemblyQualifiedName, Header = "Getting Started", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "Getting Started", "Relational" }, Description = "This sample showcases the PivotGrid control bound to Relational data source along with the ability to drill up and drill down.", SampleCategory = "Relational"
                });
            }
            else
            {
                SampleHelper.SampleViews.Add(new SampleInfo {
                    SampleView = typeof(BI.PivotGrid.Relational).AssemblyQualifiedName, Header = "Getting Started (Relational)", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "Getting Started", "Relational" }, Description = "This sample showcases the PivotGrid control bound to Relational data source along with the ability to drill up and drill down.", SampleCategory = "Relational"
                });
            }
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.UIThreading).AssemblyQualifiedName, Header = "UI Threading", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = true, SearchKeys = new string[] { "PivotGrid", "Grid", "UI Threading" }, Description = "This sample showcases the Relational data source bound and loaded in unique UI thread.", SampleCategory = "Relational"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.SummaryDisplay).AssemblyQualifiedName, Header = "Summary Display", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "SummaryDisplay" }, Description = "This sample showcases the PivotGrid control bound to Relational data source along with the Summary DisplayOptions", SampleCategory = "Relational"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.TotalsHiding).AssemblyQualifiedName, Header = "Totals Hiding", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "TotalsHiding" }, Description = "This sample showcases the PivotGrid control bound to Relational data source along with the ability to show or hide the Subtotals and Grandtotals.", SampleCategory = "Relational"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.Updating).AssemblyQualifiedName, Header = "Updating", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = true, SearchKeys = new string[] { "PivotGrid", "Grid", "Updating" }, Description = "This sample showcases the PivotGrid control bound to Relational data source with support to real time update.", SampleCategory = "Relational"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.Editing).AssemblyQualifiedName, Header = "Editing", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = true, SearchKeys = new string[] { "PivotGrid", "Grid", "Editing" }, Description = "This sample helps to view the raw items for pivot values.", SampleCategory = "Relational"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.Drill_Through).AssemblyQualifiedName, Header = "Drill Through", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = true, SearchKeys = new string[] { "PivotGrid", "Grid", "Drill Through" }, Description = "This sample showcases the PivotGrid control bound to Relational data source with support to view the raw items.", SampleCategory = "Relational"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.ExpressionFields).AssemblyQualifiedName, Header = "Expression Fields", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "Expression Fields" }, Description = "This sample showcases a way to add the expression fields into SfPivotGrid control", SampleCategory = "Relational"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.CustomSummaries).AssemblyQualifiedName, Header = "Custom Summaries", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "Custom Summaries" }, Description = "This sample showcases the usage of Summary Types, Custom and DisplayIfDiscreteValuesEqual and their run-time features.", SampleCategory = "Relational"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.RowPivotsOnly).AssemblyQualifiedName, Header = "RowPivotsOnly", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "RowPivotsOnly" }, Description = "This sample shows PivotGrid as flat grid, allowing users to pivot only rows and calculations.", SampleCategory = "Relational"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.StatePersistence).AssemblyQualifiedName, Header = "State Persistence", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "StatePersistence" }, Description = "This sample illustrates the state persistence of the expander in SfPivotGrid.", SampleCategory = "Relational"
            });
            SampleHelper.SampleViews.Add(new SampleInfo
            {
                SampleView     = typeof(BI.PivotGrid.Serialization).AssemblyQualifiedName,
                Header         = "Serialization",
                Tag            = Tags.None,
                Category       = Categories.BusinessIntelligence,
                Product        = "PivotGrid",
                HasOptions     = false,
                SearchKeys     = new string[] { "PivotGrid", "Grid", "Serialization" },
                Description    = "This sample illustrates the serialization support available in the SfPivotGrid control.",
                SampleCategory = "Relational"
            });

            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo {
                    SampleView = typeof(BI.PivotGrid.GettingStarted).AssemblyQualifiedName, Header = "Getting Started", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", ProductIcons = "Icons/PivotGrid.png", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "GettingStarted" }, SampleCategory = "OLAP"
                });
            }
            else
            {
                SampleHelper.SampleViews.Add(new SampleInfo {
                    SampleView = typeof(BI.PivotGrid.GettingStarted).AssemblyQualifiedName, Header = "Getting Started (OLAP)", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", ProductIcons = "Icons/PivotGrid.png", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "GettingStarted" }, SampleCategory = "OLAP"
                });
            }
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.KPI).AssemblyQualifiedName, Header = "KPI", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = true, SearchKeys = new string[] { "PivotGrid", "Grid", "KPI" }, SampleCategory = "OLAP"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.MDXQuery).AssemblyQualifiedName, Header = "Formatted MDX Query", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "MDX query" }, SampleCategory = "OLAP"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.NamedSets).AssemblyQualifiedName, Header = "Named Sets", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "NamedSets" }, SampleCategory = "OLAP"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.MemberProperties).AssemblyQualifiedName, Header = "Member Properties", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "MemberProperties" }, SampleCategory = "OLAP"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.GridLayout).AssemblyQualifiedName, Header = "Grid Layout", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = true, SearchKeys = new string[] { "PivotGrid", "Grid", "Layout" }, SampleCategory = "OLAP"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.Hyperlink).AssemblyQualifiedName, Header = "Hyperlink", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = true, SearchKeys = new string[] { "PivotGrid", "Grid", "Hyperlink" }, SampleCategory = "Common"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.CellSelection).AssemblyQualifiedName, Header = "Cell Selection", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = true, SearchKeys = new string[] { "PivotGrid", "Grid", "Cell", "Selection" }, SampleCategory = "Common"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.Exporting).AssemblyQualifiedName, Header = "Exporting", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = true, SearchKeys = new string[] { "PivotGrid", "Grid", "Exporting" }, Description = "This sample showcases how to export the PivotGrid content to various file formats.", SampleCategory = "Common"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.CellTemplate).AssemblyQualifiedName, Header = "Cell Template", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "Template", "Cell" }, SampleCategory = "Common"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.ConditionalFormat).AssemblyQualifiedName, Header = "Conditional Formatting", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", Description = "This sample showcases the SfPivotGrid to apply the style for value cells based on given condition", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "Conditional Formatting" }, SampleCategory = "Common"
            });
            SampleHelper.SampleViews.Add(new SampleInfo {
                SampleView = typeof(BI.PivotGrid.GroupingBar).AssemblyQualifiedName, Header = "Grouping Bar", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", Description = "This sample illustrates the UI option to drag fields, filter them, and to create pivot views at run time.", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "GroupingBar" }, SampleCategory = "Common"
            });

            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo {
                    SampleView = typeof(BI.PivotGrid.Localization).AssemblyQualifiedName, Header = "Localization", Tag = Tags.None, Category = Categories.BusinessIntelligence, Product = "PivotGrid", HasOptions = false, SearchKeys = new string[] { "PivotGrid", "Grid", "Localization" }, Description = "This sample showcases the localization applied for PivotGrid control that supports specific culture", SampleCategory = "Common"
                });
            }

            SampleHelper.SetTagsForProduct("PivotGrid", Tags.None);
        }
Ejemplo n.º 17
0
        /// <summary>
        /// The event handler method is hooked when the radio button was clicked.
        /// </summary>
        /// <param name="sender">The radio button.</param>
        /// <param name="e">The event argument.</param>
        private void RelationalDataSource_Checked(object sender, RoutedEventArgs e)
        {
            RootLayout.Children.RemoveAt(0);
            pivotGrid = new SfPivotGrid {
                Margin = new Thickness(5)
            };
            if (DeviceFamily.GetDeviceFamily() == Devices.Mobile && pivotGrid.ConditionalFormats != null)
            {
                pivotGrid.ConditionalFormats.Clear();
            }
            pivotGrid.SetBinding(SfPivotGrid.ShowGroupingBarProperty, showGroupingBarBinding);
            pivotGrid.SetBinding(SfPivotGrid.EnableGroupingBarFilteringProperty, enableGroupingBarFilteringBinding);
            pivotGrid.SetBinding(SfPivotGrid.EnableGroupingBarRemovingProperty, enableGroupingBarRemovingBinding);
            pivotGrid.SetBinding(SfPivotGrid.EnableGroupingBarSortingProperty, enableGroupingBarSortingBinding);
            pivotGrid.SetBinding(SfPivotGrid.EnableRowHeaderAreaProperty, enableRowHeaderBinding);
            pivotGrid.SetBinding(SfPivotGrid.EnableColumnHeaderAreaProperty, enableColumnHeaderBinding);
            pivotGrid.SetBinding(SfPivotGrid.EnableFilterHeaderAreaProperty, enableFilterHeaderBinding);
            pivotGrid.SetBinding(SfPivotGrid.EnableValueHeaderAreaProperty, enableValueHeaderBinding);
            chk_EnableGroupingBarSorting.Visibility = Visibility.Visible;
            pivotGrid.SetBinding(SfPivotGrid.AllowMultiFunctionalSortFilterProperty, allowMultiFunctionalSortFilterBinding);
            chk_AllowMultiFunctionalSortFilter.Visibility = Visibility.Visible;
            busyIndicator.IsBusy = true;
            Task.Run(async() =>
            {
                var dispatcher           = CoreApplication.MainView.CoreWindow.Dispatcher;
                var taskCompletionSource = new TaskCompletionSource <bool>();
                await dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
                {
                    pivotGrid.ItemSource = vm.ProductSalesData;
                    // Adding rows to SfPivotGrid

                    pivotGrid.PivotRows.Add(new Syncfusion.PivotAnalysis.UWP.PivotItem()
                    {
                        FieldMappingName = "Product", TotalHeader = "Total"
                    });
                    pivotGrid.PivotRows.Add(new Syncfusion.PivotAnalysis.UWP.PivotItem()
                    {
                        FieldMappingName = "Date", TotalHeader = "Total"
                    });

                    // Adding columns to SfPivotGrid
                    pivotGrid.PivotColumns.Add(new Syncfusion.PivotAnalysis.UWP.PivotItem()
                    {
                        FieldMappingName = "Country", TotalHeader = "Total"
                    });
                    pivotGrid.PivotColumns.Add(new Syncfusion.PivotAnalysis.UWP.PivotItem()
                    {
                        FieldMappingName = "State", TotalHeader = "Total"
                    });

                    // Adding calculations to SfPivotGrid

                    pivotGrid.PivotCalculations.Add(new PivotComputationInfo()
                    {
                        FieldHeader = "Amount", FieldName = "Amount", Format = "C", SummaryType = SummaryType.DoubleTotalSum
                    });
                    pivotGrid.PivotCalculations.Add(new PivotComputationInfo()
                    {
                        FieldHeader = "Quantity", FieldName = "Quantity", Format = "#.##", SummaryType = SummaryType.Count
                    });

                    RootLayout.Children.Insert(0, pivotGrid);
                    taskCompletionSource.SetResult(true);
                    busyIndicator.IsBusy = false;
                });
                await taskCompletionSource.Task;
            });
        }
Ejemplo n.º 18
0
        private void UpdateLayout()
        {
            timer.Stop();
            IsShapes           = false;
            Value              = 0.0;
            DisplayContentMode = DisplayContentMode.Percentage;
            switch (ProgressType)
            {
            case ProgressTypes.SolidCircular:
            {
                Width    = 200.0;
                Height   = 200.0;
                FontSize = 30.0;
                timer.Start();
            }
            break;

            case ProgressTypes.SolidLinear:
            {
                if (DeviceFamily.GetDeviceFamily() == Devices.Mobile)
                {
                    Width = 300.0;
                }
                else
                {
                    Width = 500.0;
                }
                Height   = 40.0;
                FontSize = 20.0;
                timer.Start();
            }
            break;

            case ProgressTypes.SegmentedCircular:
            {
                Width    = 150.0;
                Height   = 150.0;
                FontSize = 30.0;
                timer.Start();
            }
            break;

            case ProgressTypes.SegmentedLinear:
            {
                if (DeviceFamily.GetDeviceFamily() == Devices.Mobile)
                {
                    Width = 300.0;
                }
                else
                {
                    Width = 500.0;
                }
                Height   = 40.0;
                FontSize = 20.0;
                timer.Start();
            }
            break;

            case ProgressTypes.Shape:
            {
                DisplayContentMode = DisplayContentMode.None;
                SetFillDirection();
                SetSize();
                IsShapes = true;
                timer.Start();
            }
            break;

            default:
                break;
            }
        }
 private void autoCompleteMode_Loaded_1(object sender, RoutedEventArgs e)
 {
     ((Windows.UI.Xaml.Controls.ComboBox)sender).ItemsSource   = Enum.GetValues(typeof(AutoCompleteMode));
     ((Windows.UI.Xaml.Controls.ComboBox)sender).SelectedIndex = DeviceFamily.GetDeviceFamily() == Devices.Mobile ? 3 : 2;
 }
        public SamplesConfiguration()
        {
            SampleHelper.SampleViews.Add(new SampleInfo()
            {
                Header       = "GettingStarted",
                Category     = Categories.DataVisualization,
                Product      = "HeatMap",
                SearchKeys   = new string[] { "HeatMap", "Basic" },
                SampleView   = typeof(GettingStarted1).AssemblyQualifiedName,
                Tag          = Tags.None,
                ProductIcons = "ms-appx:///Assets/HeatMap.png",
            });
            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header     = "ItemsMapping",
                    Category   = Categories.DataVisualization,
                    Product    = "HeatMap",
                    SearchKeys = new string[] { "HeatMap", "Basic", "ItemsMapping" },
                    SampleView = typeof(ItemsMapping).AssemblyQualifiedName,
                    Tag        = Tags.None,
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header     = "Legend",
                    Category   = Categories.DataVisualization,
                    Product    = "HeatMap",
                    SearchKeys = new string[] { "HeatMap", "Basic", "Legend" },
                    SampleView = typeof(Legend).AssemblyQualifiedName,
                    Tag        = Tags.None,
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header     = "Virtualization",
                    Category   = Categories.DataVisualization,
                    Product    = "HeatMap",
                    SearchKeys = new string[] { "HeatMap", "Basic", "Virtualization" },
                    SampleView = typeof(Virtualization).AssemblyQualifiedName,
                    Tag        = Tags.None,
                });
            }

            else if (DeviceFamily.GetDeviceFamily() == Devices.Mobile)
            {
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header     = "TabelMapping",
                    Category   = Categories.DataVisualization,
                    Product    = "HeatMap",
                    SearchKeys = new string[] { "HeatMap", "Basic", "TabelMapping" },
                    SampleView = typeof(ItemsMapping_Mobile).AssemblyQualifiedName,
                    Tag        = Tags.None,
                });
                SampleHelper.SampleViews.Add(new SampleInfo()
                {
                    Header     = "Legend",
                    Category   = Categories.DataVisualization,
                    Product    = "HeatMap",
                    SearchKeys = new string[] { "HeatMap", "Basic", "Legend" },
                    SampleView = typeof(Legend_Mobile).AssemblyQualifiedName,
                    Tag        = Tags.None,
                });
            }
        }
        /// <summary>
        /// Method is used to get the collection of samples are needs to included in SampleBrowser.
        /// </summary>
        public void CollectSampleView()
        {
            SampleHelper.SampleViews.Add(new SampleInfo
            {
                SampleView     = typeof(BI.PivotChart.Relational).AssemblyQualifiedName,
                Header         = DeviceFamily.GetDeviceFamily() == Devices.Desktop ? "Getting Started" : "Getting Started (Relational)",
                Tag            = Tags.None,
                Category       = Categories.BusinessIntelligence,
                Product        = "PivotChart",
                ProductIcons   = "Icons/PivotChart.png",
                HasOptions     = false,
                SearchKeys     = new[] { "PivotChart", "Chart", "GettingStarted" },
                Description    = "This sample showcases the PivotChart control bound to Relational data source along with drill down operations",
                SampleCategory = "Relational"
            });

            SampleHelper.SampleViews.Add(new SampleInfo
            {
                SampleView     = typeof(BI.PivotChart.Serialization).AssemblyQualifiedName,
                Header         = "Serialization",
                Tag            = Tags.None,
                Category       = Categories.BusinessIntelligence,
                Product        = "PivotChart",
                HasOptions     = false,
                SearchKeys     = new[] { "PivotChart", "Chart", "Serialization" },
                Description    = "This sample illustrates the serialization support available in the SfPivotChart control.",
                SampleCategory = "Relational"
            });

            SampleHelper.SampleViews.Add(new SampleInfo
            {
                SampleView     = typeof(BI.PivotChart.GettingStarted).AssemblyQualifiedName,
                Header         = DeviceFamily.GetDeviceFamily() == Devices.Desktop ? "Getting Started" : "Getting Started (OLAP)",
                Tag            = Tags.None,
                Category       = Categories.BusinessIntelligence,
                Product        = "PivotChart",
                ProductIcons   = "Icons/PivotChart.png",
                HasOptions     = false,
                SearchKeys     = new[] { "PivotChart", "Chart", "GettingStarted" },
                SampleCategory = "OLAP"
            });

            SampleHelper.SampleViews.Add(new SampleInfo
            {
                SampleView     = typeof(BI.PivotChart.KPI).AssemblyQualifiedName,
                Header         = "KPI",
                Tag            = Tags.None,
                Category       = Categories.BusinessIntelligence,
                Product        = "PivotChart",
                HasOptions     = false,
                SearchKeys     = new[] { "PivotChart", "Chart", "KPI" },
                SampleCategory = "OLAP"
            });

            SampleHelper.SampleViews.Add(new SampleInfo
            {
                SampleView     = typeof(BI.PivotChart.ChartTypes).AssemblyQualifiedName,
                Header         = "Chart Types",
                Tag            = Tags.None,
                Category       = Categories.BusinessIntelligence,
                Product        = "PivotChart",
                HasOptions     = true,
                SearchKeys     = new[] { "PivotChart", "Chart", "ChartTypes" },
                SampleCategory = "Common"
            });

            SampleHelper.SampleViews.Add(new SampleInfo
            {
                SampleView     = typeof(BI.PivotChart.LegendCustomization).AssemblyQualifiedName,
                Header         = "Legend Customization",
                Tag            = Tags.None,
                Category       = Categories.BusinessIntelligence,
                Product        = "PivotChart",
                HasOptions     = true,
                SearchKeys     = new[] { "PivotChart", "Chart", "Legend", "Customization" },
                SampleCategory = "Common"
            });

            SampleHelper.SampleViews.Add(new SampleInfo
            {
                SampleView     = typeof(BI.PivotChart.Adornments).AssemblyQualifiedName,
                Header         = "Adornments",
                Tag            = Tags.None,
                Category       = Categories.BusinessIntelligence,
                Product        = "PivotChart",
                HasOptions     = false,
                SearchKeys     = new[] { "PivotChart", "Chart", "Adornments" },
                SampleCategory = "Common"
            });

            SampleHelper.SampleViews.Add(new SampleInfo
            {
                SampleView     = typeof(BI.PivotChart.Annotations).AssemblyQualifiedName,
                Header         = "Annotations",
                Tag            = Tags.None,
                Category       = Categories.BusinessIntelligence,
                Product        = "PivotChart",
                HasOptions     = false,
                SearchKeys     = new[] { "PivotChart", "Chart", "Annotations" },
                SampleCategory = "Common"
            });

            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo
                {
                    SampleView     = typeof(BI.PivotChart.Localization).AssemblyQualifiedName,
                    Header         = "Localization",
                    Tag            = Tags.None,
                    Category       = Categories.BusinessIntelligence,
                    Product        = "PivotChart",
                    HasOptions     = false,
                    Description    = "This sample showcases the localization applied for SfPivotChart that supports specific culture",
                    SearchKeys     = new[] { "PivotChart", "Chart", "Localization" },
                    SampleCategory = "Common"
                });
            }

            SampleHelper.SetTagsForProduct("PivotChart", Tags.None);
        }
Ejemplo n.º 22
0
        /// <summary>
        /// Method is used to get the collection of samples are needs to included in SampleBrowser.
        /// </summary>
        public void CollectSampleView()
        {
            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo
                {
                    SampleView     = typeof(BI.PivotGauge.Relational).AssemblyQualifiedName,
                    Header         = "Getting Started",
                    Tag            = Tags.None,
                    Category       = Categories.BusinessIntelligence,
                    Product        = "PivotGauge",
                    ProductIcons   = "Icons/PivotGauge.png",
                    HasOptions     = false,
                    SearchKeys     = new[] { "PivotGauge", "Gauge", "GettingStarted", "Relational" },
                    SampleCategory = "Relational",
                    Description    = "This sample showcases the PivotGauge control bound to Relational data source",
                });
                SampleHelper.SampleViews.Add(new SampleInfo
                {
                    SampleView     = typeof(BI.PivotGauge.GettingStarted).AssemblyQualifiedName,
                    Header         = "Getting Started",
                    Tag            = Tags.None,
                    Category       = Categories.BusinessIntelligence,
                    Product        = "PivotGauge",
                    ProductIcons   = "Icons/PivotGauge.png",
                    HasOptions     = false,
                    SearchKeys     = new[] { "PivotGauge", "Gauge", "Getting Started", "OLAP" },
                    SampleCategory = "OLAP"
                });
            }
            else
            {
                SampleHelper.SampleViews.Add(new SampleInfo
                {
                    SampleView     = typeof(BI.PivotGauge.Relational).AssemblyQualifiedName,
                    Header         = "Getting Started (Relational)",
                    Tag            = Tags.None,
                    Category       = Categories.BusinessIntelligence,
                    Product        = "PivotGauge",
                    ProductIcons   = "Icons/PivotGauge.png",
                    HasOptions     = false,
                    SearchKeys     = new[] { "PivotGauge", "Gauge", "GettingStarted", "Relational" },
                    SampleCategory = "Relational",
                    Description    = "This sample showcases the PivotGauge control bound to Relational data source",
                });
                SampleHelper.SampleViews.Add(new SampleInfo
                {
                    SampleView     = typeof(BI.PivotGauge.GettingStarted).AssemblyQualifiedName,
                    Header         = "Getting Started (OLAP)",
                    Tag            = Tags.None,
                    Category       = Categories.BusinessIntelligence,
                    Product        = "PivotGauge",
                    ProductIcons   = "Icons/PivotGauge.png",
                    HasOptions     = false,
                    SearchKeys     = new[] { "PivotGauge", "Gauge", "Getting Started", "OLAP" },
                    SampleCategory = "OLAP"
                });
            }
            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                SampleHelper.SampleViews.Add(new SampleInfo
                {
                    SampleView     = typeof(BI.PivotGauge.Localization).AssemblyQualifiedName,
                    Header         = "Localization",
                    Tag            = Tags.None,
                    Category       = Categories.BusinessIntelligence,
                    Product        = "PivotGauge",
                    ProductIcons   = "Icons/PivotGauge.png",
                    HasOptions     = false,
                    SearchKeys     = new[] { "PivotGauge", "Gauge", "Localization" },
                    SampleCategory = "Common",
                    Description    = "This sample showcases the localization applied for SfPivotGauge that supports specific culture",
                });
            }

            SampleHelper.SetTagsForProduct("PivotGauge", Tags.None);
        }
Ejemplo n.º 23
0
        /// <summary>
        /// Operations on ListBoxSelectionChanged
        /// </summary>
        private void ListBoxSelectionChanged()
        {
            if (FrameNavigationService.CurrentFrame == null)
            {
                return;
            }
            var listBox = MainPage.NewListBox;

            if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
            {
                MainPage.NewSplitView.Content = FrameNavigationService.CurrentFrame;

                if (listBox.SelectedIndex == 0)
                {
                    MainPage.NewLayoutHeader.Text = "Main Page";
                    FrameNavigationService.CurrentFrame.Navigate(typeof(Item1), this);
                    if (MainPage.NewSplitView.IsPaneOpen)
                    {
                        MainPage.NewSplitView.IsPaneOpen = false;
                    }
                    MainPage.NewBackButton.Visibility = Visibility.Visible;
                }
                else if (listBox.SelectedIndex == 1)
                {
                    MainPage.NewLayoutHeader.Text = "Page with Tab";
                    FrameNavigationService.CurrentFrame.Navigate(typeof(Item2), this);
                    if (MainPage.NewSplitView.IsPaneOpen)
                    {
                        MainPage.NewSplitView.IsPaneOpen = false;
                    }
                    MainPage.NewBackButton.Visibility = Visibility.Visible;
                }
                else if (listBox.SelectedIndex == 2)
                {
                    MainPage.NewLayoutHeader.Text = "Page with ListView";
                    FrameNavigationService.CurrentFrame.Navigate(typeof(Item3), this);
                    if (MainPage.NewSplitView.IsPaneOpen)
                    {
                        MainPage.NewSplitView.IsPaneOpen = false;
                    }
                    MainPage.NewBackButton.Visibility = Visibility.Visible;
                }
            }
            else
            {
                if (listBox.SelectedIndex == 0)
                {
                    FrameNavigationService.Header.Text = "Main Page";
                    FrameNavigationService.CurrentFrame.Navigate(typeof(Item1), this);
                    if (MainPage.NewSplitView.IsPaneOpen)
                    {
                        MainPage.NewSplitView.IsPaneOpen = false;
                    }
                }

                else if (listBox.SelectedIndex == 1)
                {
                    FrameNavigationService.Header.Text = "Page with Tab";
                    FrameNavigationService.CurrentFrame.Navigate(typeof(Item2), this);
                    if (MainPage.NewSplitView.IsPaneOpen)
                    {
                        MainPage.NewSplitView.IsPaneOpen = false;
                    }
                }
                else if (listBox.SelectedIndex == 2)
                {
                    MainPage.NewLayoutHeader.Text = "Page with ListView";
                    FrameNavigationService.CurrentFrame.Navigate(typeof(Item3), this);
                    if (MainPage.NewSplitView.IsPaneOpen)
                    {
                        MainPage.NewSplitView.IsPaneOpen = false;
                    }
                }
                if (!MainPage.NewSplitView.IsPaneOpen)
                {
                    MainPage.NewSpiltViewPaneListBox.SelectedIndex = -1;
                }
            }
        }