/// <summary> /// Creates a manager for the drawing operations of a document viewer. /// </summary> internal RowHeaderCanvas() { // Indicates that the row can be selected. this.selectRow = new Cursor(Application.GetResourceStream(new Uri("/Teraque.TeraqueWindows;component/Controls/Resources/SelectRow.cur", UriKind.Relative)).Stream); // Indicates that a row is being resized. this.horizontalSplit = new Cursor(Application.GetResourceStream(new Uri("/Teraque.TeraqueWindows;component/Controls/Resources/HorizontalSplit.cur", UriKind.Relative)).Stream); // This cursor indicates that a row will be deleted if dropped. this.bigEx = new Cursor(Application.GetResourceStream(new Uri("/Teraque.TeraqueWindows;component/Controls/Resources/BigEx.cur", UriKind.Relative)).Stream); // The Row Popup is used for drag and drop operations that move the row from one place to another or removes it // from the report. this.headerPopup = new HeaderPopup(); this.headerPopup.PlacementTarget = this; this.headerPopup.Orientation = Orientation.Horizontal; // The Row Height Popup is used when resizing a row. It provides feedback about the proposed new size of the // row. this.rowHeightPopup = new RowHeightPopup(); this.rowHeightPopup.PlacementTarget = this; this.rowHeightPopup.HorizontalOffset = 2.0; // The Destination Popup displays two red arrows to indicate the destination location of a drag-and-drop operation for // a row heading. this.destinationPopup = new DestinationPopup(); this.destinationPopup.PlacementTarget = this; this.destinationPopup.Orientation = Orientation.Horizontal; this.destinationPopup.HorizontalOffset = 0.0; // These lists are used to manage the selection of rows. this.selectedRanges = new List <List <ReportRow> >(); this.headerCells = new List <ReportCell>(); // Command Bindings this.CommandBindings.Add(new CommandBinding(RowHeaderCanvas.FreezeRowHeaders, HandleFrozenHeader)); }
/// <summary> /// Creates a manager for the drawing operations of a document viewer. /// </summary> internal ColumnHeaderCanvas() { // Indicates that the column can be selected. this.selectColumn = new Cursor(Application.GetResourceStream(new Uri("/Teraque.TeraqueWindows;component/Controls/Resources/SelectColumn.cur", UriKind.Relative)).Stream); // Indicates that a column is being resized. this.verticalSplit = new Cursor(Application.GetResourceStream(new Uri("/Teraque.TeraqueWindows;component/Controls/Resources/VerticalSplit.cur", UriKind.Relative)).Stream); // This cursor indicates that a column will be deleted if dropped. this.bigEx = new Cursor(Application.GetResourceStream(new Uri("/Teraque.TeraqueWindows;component/Controls/Resources/BigEx.cur", UriKind.Relative)).Stream); this.sortOrder = new List <SortItem>(); // The Column Popup is used for drag and drop operations that move the column from one place to another or removes it // from the report. this.headerPopup = new HeaderPopup(); this.headerPopup.PlacementTarget = this; this.headerPopup.Orientation = Orientation.Vertical; // The Column Width Popup is used when resizing a column. It provides feedback about the proposed new size of the // column. this.columnWidthPopup = new ColumnWidthPopup(); this.columnWidthPopup.PlacementTarget = this; this.columnWidthPopup.VerticalOffset = 2.0; // The Destination Popup displays two red arrows to indicate the destination location of a drag-and-drop operation for // a column heading. this.destinationPopup = new DestinationPopup(); this.destinationPopup.PlacementTarget = this; this.destinationPopup.Orientation = Orientation.Vertical; this.destinationPopup.VerticalOffset = 0.0; // These lists are used to manage the selection of columns. this.selectedRanges = new List <List <ReportColumn> >(); this.headerCells = new List <ReportCell>(); }