adonis-ui
adonis-ui copied to clipboard
AdonisUI Not Showing in Designer
Describe the bug AdonisUI is not getting applied in designer and this makes design in this theme hard.
To Reproduce Steps to reproduce the behavior:
- Create a new WPF Project.
- Add AdonisUI .ClassicTheme nuget.
- Add this to the window code :
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/AdonisUI;component/ColorSchemes/Dark.xaml"/>
<ResourceDictionary Source="pack://application:,,,/AdonisUI.ClassicTheme;component/Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Window.Style>
<Style TargetType="Window" BasedOn="{StaticResource {x:Type Window}}"/>
</Window.Style>
- Compile, App has the theme but nothing is changed in designer.
Added AdonisUI and AdonisUI.ClassicTheme in nuget ?
i think thats absolutely normal cause it is rendering at runtime. Adonis UI overwrites the default at start.
Hello I encountered a similar issue and was able to resolve it by following these steps:
Locate the following files in your AdonisUI installation:
AdonisUI.ClassicTheme.dll
AdonisUI.dll
Copy these files to your output directory, which in my case is:
D:\Data\Random Sources\myWPFapplication\bin\Debug\ (for debugging)
D:\Data\Random Sources\myWPFapplication\bin\Release\ (for release)
Paste the copied files into the respective output directories.
By doing this, I was able to resolve the issue, and my application worked as expected. This workaround should help you get past the problem as well. If you have any further questions or encounter additional issues, feel free to ask for assistance.
Hello
I encountered a similar issue and was able to resolve it by following these steps:
Locate the following files in your AdonisUI installation:
AdonisUI.ClassicTheme.dll AdonisUI.dll
Copy these files to your output directory, which in my case is:
D:\Data\Random Sources\myWPFapplication\bin\Debug\ (for debugging) D:\Data\Random Sources\myWPFapplication\bin\Release\ (for release)
Paste the copied files into the respective output directories.
By doing this, I was able to resolve the issue, and my application worked as expected. This workaround should help you get past the problem as well. If you have any further questions or encounter additional issues, feel free to ask for assistance.
This solves the issue where we cant display AdonisUI theme on Designer but on .exe?