Browse Source

Merge pull request #8719 from workgroupengineering/fixes/Samples/RenderDemo

fix RenderDemo Null Annotation
pull/8724/head
Max Katz 4 years ago
committed by GitHub
parent
commit
12a6318f65
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      samples/RenderDemo/Pages/TextFormatterPage.axaml.cs

4
samples/RenderDemo/Pages/TextFormatterPage.axaml.cs

@ -78,7 +78,7 @@ namespace RenderDemo.Pages
_defaultProperties = defaultProperties; _defaultProperties = defaultProperties;
} }
public TextRun? GetTextRun(int textSourceIndex) public TextRun GetTextRun(int textSourceIndex)
{ {
if (textSourceIndex >= _text.Length * 2 + TextRun.DefaultTextSourceLength) if (textSourceIndex >= _text.Length * 2 + TextRun.DefaultTextSourceLength)
{ {
@ -107,7 +107,7 @@ namespace RenderDemo.Pages
public Control Control => _control; public Control Control => _control;
public override Size Size => _control.DesiredSize; public override Size Size => _control.DesiredSize;
public override double Baseline => 0; public override double Baseline => 0;
public override TextRunProperties? Properties { get; } public override TextRunProperties Properties { get; }
public override void Draw(DrawingContext drawingContext, Point origin) public override void Draw(DrawingContext drawingContext, Point origin)
{ {

Loading…
Cancel
Save