clean postbuild script

clean warnings
This commit is contained in:
Alex Bezdieniezhnykh
2025-04-28 10:20:06 +03:00
parent 47aa8b862b
commit babcbc0fc7
12 changed files with 56 additions and 51 deletions
+5 -4
View File
@@ -178,12 +178,13 @@ namespace Azaion.Annotator.Controls
void ForceUpdateText()
{
_fText = new FormattedText(_text,
CultureInfo.InvariantCulture,
FlowDirection.LeftToRight,
Font,
FontSize,
Foreground);
Foreground, 1.0);
IsChanged = true;
}
@@ -207,7 +208,7 @@ namespace Azaion.Annotator.Controls
Visual _child = null!;
public virtual Visual Child
public virtual Visual? Child
{
get => _child;
set
@@ -228,7 +229,7 @@ namespace Azaion.Annotator.Controls
}
// cache the new child
_child = value;
_child = value!;
InvalidateVisual();
}
@@ -295,7 +296,7 @@ namespace Azaion.Annotator.Controls
}
}
protected override Visual GetVisualChild(int index)
protected override Visual? GetVisualChild(int index)
{
return Child;
}