This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace XamlConsolePrinter | |
{ | |
using System.Printing; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Threading.Tasks.Schedulers; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Xps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace XamlConsolePrinter | |
{ | |
using System.Printing; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Threading.Tasks.Schedulers; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Xps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace NAMESPACE | |
{ | |
public enum WindowsMessage | |
{ | |
WM_NULL = 0x0000, | |
WM_CREATE = 0x0001, | |
WM_DESTROY = 0x0002, | |
WM_MOVE = 0x0003, | |
WM_SIZE = 0x0005, | |
WM_ACTIVATE = 0x0006, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://stackoverflow.com/questions/11572636/set-value-to-fontdialog-in-wpf/11572921#11572921 | |
// http://blogs.msdn.com/b/text/archive/2006/11/01/sample-font-chooser.aspx | |
// 微软官方博客的字体选择器例子 | |
//WPF | |
System.Windows.Forms.FontDialog fontDialog = new System.Windows.Forms.FontDialog(); | |
if (fontDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) | |
{ | |
FontFamilyConverter ffc = new FontFamilyConverter(); | |
this.textAnnotation.FontSize = fontDialog.Font.Size; |
NewerOlder