Skip to content

AvaloniaEdit -> TextEditor fails to load (with no exception) when there is no style sheet in the App.xaml file! #511

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

Open
glowysourworm opened this issue May 12, 2025 · 0 comments · May be fixed by #514

Comments

@glowysourworm
Copy link

Steps to reproduce: (this was a headache to find)

  1. Follow the basic (getting started) on the readme for this project
  2. Do not install the theme (using app.xaml)
  3. Run a basic window with just text editor

Result: No text editor will be present.

Fix: Make sure the following is in your App.xaml file

<Application xmlns="https://github.com/avaloniaui"

...

<Application.Styles>
	<FluentTheme />

	<!-- AvaloniaEdit Themes -->
	<StyleInclude Source="avares://AvaloniaEdit/Themes/Fluent/AvaloniaEdit.xaml" />
</Application.Styles>

...

mgarstenauer added a commit to garstenauer/AvaloniaEdit that referenced this issue May 12, 2025
@mgarstenauer mgarstenauer linked a pull request May 12, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant