コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MainViewModel"/> class.
        /// </summary>
        public MainViewModel()
        {
            this.bannerImage = new BitmapImage();
#if WinUI_Desktop
            bannerImage.UriSource = new Uri("ms-appx:///syncfusion.demoscommon.winui/Assets/BannerImageDesktop.png");
#else
            bannerImage.UriSource = new Uri("ms-appx:///syncfusion.demoscommon.winui/Assets/BannerImageUWP.png");
#endif
            _ = new DemoInfoDataSource();
            InitiateDefaultValues();
            this.SelectedRootMenuItem = this.RootMenuItems.FirstOrDefault(x => (x as BrowserModel).Name == Constants.AllControlsName);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MainViewModel"/> class.
 /// </summary>
 public MainViewModel()
 {
     _ = new DemoInfoDataSource();
     InitiateDefaultValues();
     this.SelectedRootMenuItem = this.RootMenuItems.FirstOrDefault(x => (x as BrowserModel).Name == Constants.AllControlsName);
 }