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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
samples/RenderDemo/Pages/TextFormatterPage.axaml.cs
|
|
|
@ -78,7 +78,7 @@ namespace RenderDemo.Pages |
|
|
|
_defaultProperties = defaultProperties; |
|
|
|
} |
|
|
|
|
|
|
|
public TextRun? GetTextRun(int textSourceIndex) |
|
|
|
public TextRun GetTextRun(int textSourceIndex) |
|
|
|
{ |
|
|
|
if (textSourceIndex >= _text.Length * 2 + TextRun.DefaultTextSourceLength) |
|
|
|
{ |
|
|
|
@ -107,7 +107,7 @@ namespace RenderDemo.Pages |
|
|
|
public Control Control => _control; |
|
|
|
public override Size Size => _control.DesiredSize; |
|
|
|
public override double Baseline => 0; |
|
|
|
public override TextRunProperties? Properties { get; } |
|
|
|
public override TextRunProperties Properties { get; } |
|
|
|
|
|
|
|
public override void Draw(DrawingContext drawingContext, Point origin) |
|
|
|
{ |
|
|
|
|