Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#373 Focus issues fixes #627

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 8 additions & 19 deletions src/UraniumUI.Material/Controls/InputField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,32 +197,21 @@ private void InitializeBorder()
return;
}

border.Content = null;
this.Remove(border);
border = new Border
border.Padding = 0;
border.Stroke = BorderColor;
border.StrokeThickness = BorderThickness;
border.Background = InputBackground;
border.BackgroundColor = InputBackgroundColor;
border.StrokeDashOffset = 0;
border.StrokeShape = new RoundRectangle
{
Padding = 0,
Stroke = BorderColor,
StrokeThickness = BorderThickness,
Background = InputBackground,
BackgroundColor = InputBackgroundColor,
StrokeDashOffset = 0,
StrokeShape = new RoundRectangle
{
CornerRadius = CornerRadius
},
Content = rootGrid
CornerRadius = CornerRadius
};
#endif

border.StrokeDashArray = new DoubleCollection { calculatedFirstDash * 0.9 / BorderThickness, space / BorderThickness, perimeter, 0 };

#if WINDOWS
this.Add(border);
#endif

UpdateState();
border.StrokeThickness = BorderThickness;
}

protected virtual void UpdateState()
Expand Down
48 changes: 0 additions & 48 deletions src/UraniumUI.Material/Controls/TextField.FocusingWorkaround.cs

This file was deleted.