mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:16:30 +00:00
clean postbuild script
clean warnings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user