Ejemplo n.º 1
0
        public Localization()
        {
            //Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = "de";
            this.InitializeComponent();
            var datacontext = new OrderInfoViewModel();

            this.DataContext = datacontext.OrdersDetails;
        }
Ejemplo n.º 2
0
        public ColumnSizerDemo()
        {
            this.InitializeComponent();
            var datacontext = new OrderInfoViewModel();

            this.DataContext        = datacontext;
            this.sfGrid.ItemsSource = datacontext.OrdersDetails;
        }
Ejemplo n.º 3
0
        public CustomValidations()
        {
            this.InitializeComponent();
            var datacontext = new OrderInfoViewModel();

            this.DataContext        = datacontext;
            this.sfGrid.ItemsSource = datacontext.OrdersListDetails;
        }
        public AlternativeRowStyle()
        {
            this.InitializeComponent();
            var datacontext = new OrderInfoViewModel();

            this.DataContext                      = datacontext;
            this.SfDataGrid.ItemsSource           = datacontext.OrdersListDetails;
            this.SfDataGrid.AutoGeneratingColumn += OnAutoGeneratingColumns;
        }
        public DropDownAndReadOnlyColumns()
        {
            this.InitializeComponent();
            var datacontext = new OrderInfoViewModel();

            this.DataContext        = datacontext;
            this.sfGrid.ItemsSource = datacontext.OrdersListDetails;
            this.sfGrid.CurrentCellRequestNavigate += OnSfDataGridCurrentCellRequestNavigate;
        }
Ejemplo n.º 6
0
        public AddNewRow()
        {
            this.InitializeComponent();
            var datacontext = new OrderInfoViewModel();

            this.DataContext           = datacontext;
            this.sfGrid.ItemsSource    = datacontext.OrdersListDetails;
            this.sfGrid.RowValidating += OnRowValidating;
        }
Ejemplo n.º 7
0
        public Paging()
        {
            this.InitializeComponent();
            this.OrientationComboBox.SelectionChanged += OnOrientationChanged;
            var datacontext = new OrderInfoViewModel();

            this.DataContext        = datacontext;
            this.sfDataPager.Source = datacontext.OrdersListDetails;
        }
        public IntervalGroupingDemo()
        {
            this.InitializeComponent();
            var datacontext = new OrderInfoViewModel();

            this.DataContext        = datacontext;
            this.sfGrid.ItemsSource = datacontext.OrdersListDetails;
            this.sfGrid.GroupColumnDescriptions.CollectionChanged += GroupColumnDescriptions_CollectionChanged;
        }
Ejemplo n.º 9
0
        public ClipboardOperation()
        {
            this.InitializeComponent();
            var datacontext = new OrderInfoViewModel();

            this.DataContext = datacontext;
            this.PasteList.SelectionChanged += PasteList_SelectionChanged;
            this.CopyList.SelectionChanged  += CopyList_SelectionChanged;
            this.CopyList.Loaded            += CopyList_Loaded;
            this.PasteList.Loaded           += PasteList_Loaded;
            this.SfDataGrid.ItemsSource      = datacontext.OrdersListDetails;
        }
Ejemplo n.º 10
0
        public CellMerge()
        {
            this.InitializeComponent();
            var datacontext = new OrderInfoViewModel();

            this.DataContext = datacontext;
            this.sfGrid.QueryCoveredRange  += OnSfDataGridQueryCoveredRange;
            this.sfGrid.ItemsSourceChanged += OnSfDataGridItemsSourceChanged;
            OrdersListDetails       = datacontext.OrdersListDetails.Take(36).ToList <OrderInfo>();
            this.sfGrid.ItemsSource = OrdersListDetails;
            PrepareCoveredData();
        }
Ejemplo n.º 11
0
        public AutoCellMerge()
        {
            this.InitializeComponent();
            var datacontext = new OrderInfoViewModel();

            this.DataContext                     = datacontext;
            OrdersListDetails                    = datacontext.OrdersListDetails.Take(200).ToList();
            this.sfGrid.ItemsSource              = OrdersListDetails;
            this.sfGrid.QueryCoveredRange       += OnSfGridQueryCoveredRange;
            sfGrid.CurrentCellEndEdit           += OnSfGridCurrentCellEndEdit;
            sfGrid.AutoGeneratingColumn         += OnAutoGeneratingColumns;
            this.sfGrid.ItemsSourceChanged      += OnSfGridItemsSourceChanged;
            this.sfGrid.CurrentCellValueChanged += OnSfGridCurrentCellValueChanged;
        }