adonis-ui icon indicating copy to clipboard operation
adonis-ui copied to clipboard

AdonisUI Not Showing in Designer

Open CycloneRing opened this issue 3 years ago • 4 comments

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:

  1. Create a new WPF Project.
  2. Add AdonisUI .ClassicTheme nuget.
  3. 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>
  1. Compile, App has the theme but nothing is changed in designer.

CycloneRing avatar Dec 31 '21 00:12 CycloneRing

Added AdonisUI and AdonisUI.ClassicTheme in nuget ?

omertrans678 avatar Aug 16 '22 12:08 omertrans678

i think thats absolutely normal cause it is rendering at runtime. Adonis UI overwrites the default at start.

Steven-L-42 avatar Sep 28 '23 11:09 Steven-L-42

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.

alkhadher-dev avatar Jan 18 '24 07:01 alkhadher-dev

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?

Steven-L-42 avatar Jan 18 '24 13:01 Steven-L-42