-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PrintHelper + Code printing #485
Conversation
Hi @deltakosh, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! The agreement was validated by .NET Foundation and real humans are currently evaluating your PR. TTYL, DNFBOT; |
Add documentation for PrintHelper (#485)
Conflicts: docs/helpers/PrintHelper.md
LGTM but there are conflicts @deltakosh |
Unfortunately there is XamlReader in UWP :( |
Should be good now |
@deltakosh sorry but we still having conflicts here :) |
lol everytime I merge other PR I add more conflicts here :) |
@IbraheemOsama should be good now |
// Set-up "printable area" on the "paper" | ||
var stateBag = new PrintHelperStateBag(); | ||
stateBag.Capture(element); | ||
_stateBags.Add(element, stateBag); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when changing the page orientation from portrait to landscape, the preview hangs and in debug mode we get this error
An exception of type 'System.ArgumentException' occurred in mscorlib.ni.dll but was not handled in user code
Additional information: An item with the same key has already been added. Key: Windows.UI.Xaml.Controls.StackPanel
fixed! Thanks @hermitdave |
LGTM |
PrintHelper allows developer to print a XAML control per page (no page break).
You can easily create any kind of xaml (like textboxes, rich text or even images) and send them to the printer with a few lines of code:
This PR also includes a Print button to print code samples (Fixes #450)
Documentation will come in another PR