コード例 #1
0
        public CustomPrinting()
        {
            this.InitializeComponent();
            var datacontext = new CountryInfoViewModel();

            this.DataContext        = datacontext;
            this.sfGrid.ItemsSource = datacontext.CountryDetails;
        }
コード例 #2
0
ファイル: Styling.xaml.cs プロジェクト: WangHengXu/uwp-demos
        public Styling()
        {
            this.InitializeComponent();
            var datacontext = new CountryInfoViewModel();

            this.DataContext        = datacontext;
            this.sfGrid.ItemsSource = datacontext.CountryDetails;
            this.sfGrid.Loaded     += OnSfDataGridLoaded;
            this.sfGrid.Unloaded   += OnSfDataGridUnloaded;
            this.Unloaded          += Styling_Unloaded;
        }