Newbie + Blend + dark Noesis.App.Theme
Hello there.
I just start with NoesisGUI and know almost nothing. I'm trying to make a window in Blend with dark theme.
So, I created a new WPF project, then added Noesis.App.Theme
After that I added ResourceDictionary Source into my App.xaml
After that Blend shows me an error:
I just start with NoesisGUI and know almost nothing. I'm trying to make a window in Blend with dark theme.
So, I created a new WPF project, then added Noesis.App.Theme
Code: Select all
NuGet\Install-Package Noesis.App.Theme -Version 3.1.5
Code: Select all
<Application.Resources>
<ResourceDictionary Source="pack://application:,,,/Noesis.GUI.Extensions;component/Theme/NoesisTheme.DarkBlue.xaml" />
</Application.Resources>
How can I solve this?XDG0062 Could not load file or assembly 'Noesis.GUI.Extensions, Culture=neutral, PublicKeyToken=null'. The specified file cannot be found
Re: Newbie + Blend + dark Noesis.App.Theme
Use the NuGet package manager and install the Noesis.GUI.Extensions.
Re: Newbie + Blend + dark Noesis.App.Theme
Done. Now it shows:Use the NuGet package manager and install the Noesis.GUI.Extensions.
XDG0062 Cannot locate resource "theme/noesistheme.darkblue.xaml"
Re: Newbie + Blend + dark Noesis.App.Theme
Have you tried one of our examples? For example, the Gallery? You don't need to download it from GitHub, it is included in our C# SDK.
Re: Newbie + Blend + dark Noesis.App.Theme
No. Thank you, I'll try it.Have you tried one of our examples? For example, the Gallery? You don't need to download it from GitHub, it is included in our C# SDK.
Re: Newbie + Blend + dark Noesis.App.Theme
Same problem. Fresh project, following Unreal guide, everything else works.
-
-
sfernandez
Site Admin
- Posts: 2866
- Joined:
Re: Newbie + Blend + dark Noesis.App.Theme
I reproduced the steps explained in Unreal guide, Blend section:
- Create WPF (.NET Framework) application
- Install Noesis.GUI.Extensions nuget
- Set one of the Noesis themes in the App.xaml:
Code: Select all
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="GUI/MainPage.xaml"> <Application.Resources> <ResourceDictionary Source="pack://application:,,,/Noesis.GUI.Extensions;component/Theme/NoesisTheme.DarkBlue.xaml" /> </Application.Resources> </Application>
- Added a button to the MainWindow.xaml
Re: Newbie + Blend + dark Noesis.App.Theme
With your exact code I'm getting:
I just fixed it, posting it here for search engines.
Apparently there are two different types of Blend projects: WPF C# Application and WPF C# (.NET Framework) application. For NoesisGUI to work properly, you need to create the latter one,
Code: Select all
Inner Exception 1:
IOException: Cannot locate resource 'theme/noesistheme.darkblue.xaml'.
I just fixed it, posting it here for search engines.
Apparently there are two different types of Blend projects: WPF C# Application and WPF C# (.NET Framework) application. For NoesisGUI to work properly, you need to create the latter one,
-
-
sfernandez
Site Admin
- Posts: 2866
- Joined:
Re: Newbie + Blend + dark Noesis.App.Theme
Thanks for the update. I found that the assemblies generated for net5.0 and netcoreapp3.1 were not including the theme resources.
We fixed it in Noesis.GUI.Extensions 3.0.20 that is already uploaded.
Anyway, we still recommend creating .NET Framework projects to work with Blend because the designer and tools are more complete (you would be able to use Triggers and Data panels).
We fixed it in Noesis.GUI.Extensions 3.0.20 that is already uploaded.
Anyway, we still recommend creating .NET Framework projects to work with Blend because the designer and tools are more complete (you would be able to use Triggers and Data panels).
Re: Newbie + Blend + dark Noesis.App.Theme
On a related note, I saw you recommending a workflow with the Resources tab: viewtopic.php?t=2104#p11705
However, it doesn't seem like that feature is working in Blend for 2022 Visual Studio: https://developercommunity.visualstudio ... :-/1584204.
After fiddling with both Visual Studio 2019 and 2022 versions, I can say that the 2019 version works much better for the purposes of using Blend and NoesisGUI.
Considering all the samples use Resources.xaml and 2022 Visual Studio doesn't have an option to edit anything that's not included within the immediate XAML file visually, I think it would be good to recommend people to use the 2019 version in all of the Quickstart documentation for Noesis.
However, it doesn't seem like that feature is working in Blend for 2022 Visual Studio: https://developercommunity.visualstudio ... :-/1584204.
After fiddling with both Visual Studio 2019 and 2022 versions, I can say that the 2019 version works much better for the purposes of using Blend and NoesisGUI.
Considering all the samples use Resources.xaml and 2022 Visual Studio doesn't have an option to edit anything that's not included within the immediate XAML file visually, I think it would be good to recommend people to use the 2019 version in all of the Quickstart documentation for Noesis.
Who is online
Users browsing this forum: No registered users and 2 guests