Wpf/Home/HomeViewModel.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Globalization;
using System.Windows.Controls;
using System.Windows.Data;
using Geared.Wpf.Intro;
using DynamicAxisUnitView = Geared.Wpf.DynamicAxisUnit.DynamicAxisUnitView;
using FinancialSeriesView = Geared.Wpf.FianancialSeries.FinancialSeriesView;
using HistogramView = Geared.Wpf.Histogram.HistogramView;
using MultipleSeriesView = Geared.Wpf.MultipleSeriesTest.MultipleSeriesView;
using ScatterView = Geared.Wpf.Scatter.ScatterView;
using ScrollableView = Geared.Wpf.Scrollable.ScrollableView;
using SpeedTestView = Geared.Wpf.SpeedTest.SpeedTestView;
using StackedSeriesView = Geared.Wpf.StackedSeries.StackedSeriesView;
using TestingGearedView = Geared.Wpf.Testing_Geared.TestingGearedView;

namespace Geared.Wpf.Home
{
    public class HomeViewModel: INotifyPropertyChanged
    {
        private UserControl _content;
        private bool _isMenuOpen;

        public HomeViewModel()
        {
            IsMenuOpen = true;
            Samples = new ObservableCollection<SampleVm>
            {
                new SampleVm
                {
                    Title = "Intro",
                    Content = typeof(IntroView)
                },
                new SampleVm
                {
                    Title = "Testing Geared",
                    Content = typeof(TestingGearedView)
                },
                new SampleVm
                {
                    Title = "Multi-thread speed Test",
                    Content = typeof(SpeedTestView)
                },
                new SampleVm
                {
                    Title = "Multiple Series",
                    Content = typeof(MultipleSeriesView)
                },
                new SampleVm
                {
                    Title = "Scrollable",
                    Content = typeof(ScrollableView)
                },
                new SampleVm
                {
                    Title = "Histogram",
                    Content = typeof(HistogramView)
                },
                new SampleVm
后面还有 66 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。