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(); }
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(); }
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(); }