コード例 #1
0
        public Window1()
        {
            InitializeComponent();

            // show Excel-style marquee
            _flex.ShowMarquee         = true;
            _flex.CursorBackground    = null;
            _flex.GridLinesVisibility = GridLinesVisibility.All;

            // use custom cell factory to generate Excel-style row and column headers
            // (columns labeled A, B, C, etc, rows labeled 1, 2, 3, etc)
            _flex.CellFactory = new ExcelCellFactory();

            // start with blue color scheme
            ColorSchemeManager.ApplyColorScheme(_flex, ColorScheme.Blue);

            // start in bound mode
            PopulateGrid(true);

            // give grid the focus when the app loads
            Loaded += MainPage_Loaded;
        }