示例#1
0
 protected override void CreateResources()
 {
     base.CreateResources();
     _textLayout = new TextLayout(TextFontFamilyName, TextFontSize, Text, Size.Width, Size.Height);
     _textLayout.SetTextAlignment(DWriteTextAlignment.Center);
     _textLayout.SetParagraphAlignment(DWriteParaAlignment.Center);
 }