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

There is no Theme.xaml file #25

Open
alexislom opened this issue Nov 13, 2019 · 0 comments
Open

There is no Theme.xaml file #25

alexislom opened this issue Nov 13, 2019 · 0 comments

Comments

@alexislom
Copy link

alexislom commented Nov 13, 2019

There is no such theme in AvalonStudio.Shell/Themes/ folder

which is needed in ShellExampleApp/App.paml for example.

Another problem is when I tried to customize platform-specific window (from this advice AvaloniaUI/Avalonia#776)

  1. I added AvalonStudio.Shell 0.9.0-preview7 package

  2. Added styles in App.xaml
    <StyleInclude Source="avares://AvalonStudio.Shell/Themes/BaseDark.xaml"/> <StyleInclude Source="avares://AvalonStudio.Shell/Themes/Accents/DarkAccent.xaml"/> <StyleInclude Source="avares://AvalonStudio.Shell/Icons/Icons.xaml"/> <StyleInclude Source="avares://AvalonStudio.Shell/Controls/MetroWindowTheme.paml" /> <StyleInclude Source="avares://AvalonStudio.Shell.Extensibility/Controls/ControlTheme.paml" /> <StyleInclude Source="avares://AvalonStudio.Shell/Styles/GlobalStyles.xaml" />

  3. And derived MainWindow from AvalonStudio.Shell.Controls.MetroWindow

This is work on window, but doesn't work on mac
dotnet App.dll
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at AvalonStudio.Shell.Controls.MetroWindow..ctor()
at App.Views.MainWindow..ctor() in \Projects\App\Views\MainWindow.xaml.cs:line 9
at App.App.OnFrameworkInitializationCompleted() in \Projects\App\App.xaml.cs:line 14
at Avalonia.Controls.AppBuilderBase1.Setup() at Avalonia.Controls.AppBuilderBase1.SetupWithLifetime(IApplicationLifetime lifetime)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode)
at NTS.Desktop.Program.Main(String[] args) in \Projects\App\Program.cs:line 12
Abort trap: 6

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

No branches or pull requests

1 participant