コード例 #1
0
        private void AlternateRowCount2(object sender, RoutedEventArgs e)
        {
            var pa = PrintAppendixes();

            var printer = new Printer(pa, _mcv.CollectionToPrint);
            printer.IsAlternatingRowColor = true;
            printer.AlternatingRowColors = new List<SolidColorBrush> { Brushes.Red, Brushes.Orange, Brushes.Green };
            printer.PreviewDocument();
        }
コード例 #2
0
        private void AlternateRowCount1(object sender, RoutedEventArgs e)
        {
            var pa = PrintAppendixes();

            var printer = new Printer(pa, _mcv.CollectionToPrint);
            printer.IsAlternatingRowColor = true;
            printer.PageOrientation = PageOrientation.Landscape;
            printer.PreviewDocument();
        }
コード例 #3
0
        private void AlternateRowCount1(object sender, RoutedEventArgs e)
        {
            var pa = PrintAppendixes();

            var printer = new Printer(pa, _mcv.CollectionToPrint);

            printer.IsAlternatingRowColor = true;
            printer.PageOrientation       = PageOrientation.Landscape;
            printer.PreviewDocument();
        }
コード例 #4
0
        private void AlternateRowCount2(object sender, RoutedEventArgs e)
        {
            var pa = PrintAppendixes();

            var printer = new Printer(pa, _mcv.CollectionToPrint);

            printer.IsAlternatingRowColor = true;
            printer.AlternatingRowColors  = new List <SolidColorBrush> {
                Brushes.Red, Brushes.Orange, Brushes.Green
            };
            printer.PreviewDocument();
        }