You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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)
I added AvalonStudio.Shell 0.9.0-preview7 package
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" />
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.AppBuilderBase
1.Setup() at Avalonia.Controls.AppBuilderBase
1.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
The text was updated successfully, but these errors were encountered: