Browse Source

Remove render base calls, add inlining methodimpl

pull/324/head
Ionite 12 months ago
parent
commit
1bb3c6913a
No known key found for this signature in database
  1. 3
      StabilityMatrix.Avalonia/Controls/AdvancedImageBox.axaml.cs
  2. 2
      StabilityMatrix.Avalonia/Controls/LineDashFrame.cs

3
StabilityMatrix.Avalonia/Controls/AdvancedImageBox.axaml.cs

@ -1354,6 +1354,7 @@ public class AdvancedImageBox : TemplatedControl
InvalidateVisual();
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void RenderBackgroundGrid(DrawingContext context)
{
var size = GridCellSize;
@ -1387,8 +1388,6 @@ public class AdvancedImageBox : TemplatedControl
public override void Render(DrawingContext context)
{
base.Render(context);
var gridCellSize = GridCellSize;
if (ShowGrid & gridCellSize > 0 && (!IsHorizontalBarVisible || !IsVerticalBarVisible))

2
StabilityMatrix.Avalonia/Controls/LineDashFrame.cs

@ -82,8 +82,6 @@ public class LineDashFrame : Frame
/// <inheritdoc />
public override void Render(DrawingContext context)
{
base.Render(context);
var width = Bounds.Width;
var height = Bounds.Height;

Loading…
Cancel
Save