How can I know if am at the end of a page and insert a break? I\'m trying to p开发者_如何转开发rint a wpf document with repeated header.