Skip to content

There is no Theme.xaml file #25

@alexislom

Description

@alexislom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions