コード例 #1
0
 public static void Initialize(MainWindow window)
 {
     LineAndAreaAexamples = new List<UserControl>
     {
         new BasicLine(),
         new BindingLine(),
         new MvvmLine(),
         new LazyDataLine(),
         new RotatedLine(),
         new CustomLine(),
         new ZoomableLine(),
         new UiElementsLine(),
         ////new PerformanceLine() // disabled by now
     };
     BarExamples = new List<UserControl>
     {
         new BasicBar(),
         new BindingBar(),
         new MvvmBar(),
         new RotatedBar(),
         new PointPropertyChangedBar(),
         new CustomBar(),
         ////new ZoomableBar(),
         ////new Performance()
     };
     StackedBarExamples = new List<UserControl>
     {
         new BasicStackedBar(),
         new BindingStackedBar(),
         new MvvmStackedBar(),
         new RotatedStackedBar(),
         new CustomStackedBar(),
         //new ZoomableStackedBar(),
         //new PerformanceBar()
     };
     PieExamples = new List<UserControl>
     {
         new BasicPie(),
         new BindingPie(),
         new MvvmPie(),
         new CustomPie(),
         //new ZoomablePie(),
         //new PerformanceBar()
     };
     ScatterExamples = new List<UserControl>
     {
         new BasicScatter(),
         new BindingScatter(),
         new MvvmScatter(),
         new Logarithmic(),
         new CustomScatter(),
         //new ZoomableScatter(),
         //new PerformanceScatter()
     };
     window.LineControl.Content = LineAndAreaAexamples.Count > 0 ? LineAndAreaAexamples[0] : null;
     window.BarControl.Content = BarExamples.Count > 0 ? BarExamples[0] : null;
     window.StackedBarControl.Content = StackedBarExamples.Count > 0 ? StackedBarExamples[0] : null;
     window.PieControl.Content = PieExamples.Count > 0 ? PieExamples[0] : null;
     window.ScatterControl.Content = ScatterExamples.Count > 0 ? ScatterExamples[0] : null;
 }
コード例 #2
0
 public static void Initialize(MainWindow window)
 {
     LineAndAreaAexamples = new List<UserControl>
     {
         new BasicLine(),
         new DynamicLine(),
         new MvvmLine(),
         new RotatedLine(),
         new CustomLine(),
         new ZoomableLine(),
         new IrregularLine(),
         new LogarithmicAxis(),
         new UiElementsLine(),
         ////new PerformanceLine() // disabled by now
     };
     BarExamples = new List<UserControl>
     {
         new BasicBar(),
         new BindingBar(),
         new MvvmBar(),
         new RotatedBar(),
         new PointPropertyChangedBar(),
         new CustomBar(),
         ////new ZoomableBar(),
         ////new Performance()
     };
     StackedBarExamples = new List<UserControl>
     {
         new BasicStackedBar(),
         new BindingStackedBar(),
         new MvvmStackedBar(),
         new RotatedStackedBar(),
         new CustomStackedBar(),
         //new ZoomableStackedBar(),
         //new PerformanceBar()
     };
     PieExamples = new List<UserControl>
     {
         new BasicPie(),
         new BindingPie(),
         new MvvmPie(),
         new CustomPie(),
         //new ZoomablePie(),
         //new PerformanceBar()
     };
     //MoreExamples = new List<UserControl>
     //{
     //    new RadarChartExample()
     //};
     window.LineControl.Content = LineAndAreaAexamples != null && LineAndAreaAexamples.Count > 0 ? LineAndAreaAexamples[0] : null;
     window.BarControl.Content = BarExamples != null && BarExamples.Count > 0 ? BarExamples[0] : null;
     window.StackedBarControl.Content =StackedBarExamples != null && StackedBarExamples.Count > 0 ? StackedBarExamples[0] : null;
     window.PieControl.Content = PieExamples != null && PieExamples.Count > 0 ? PieExamples[0] : null;
     window.MoreControl.Content = MoreExamples != null && MoreExamples.Count > 0 ? MoreExamples[0] : null;
 }