benruehl / adonis-ui

Lightweight UI toolkit for WPF applications offering classic but enhanced windows visuals
https://benruehl.github.io/adonis-ui/
MIT License
1.69k stars 143 forks source link

AdonisUI Not Showing in Designer #179

Open CycloneRing opened 2 years ago

CycloneRing commented 2 years ago

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>
  4. Compile, App has the theme but nothing is changed in designer.
omertrans678 commented 1 year ago

Added AdonisUI and AdonisUI.ClassicTheme in nuget ?

Steven-L-42 commented 9 months ago

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

alkhadher-dev commented 5 months ago

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.

Steven-L-42 commented 5 months ago

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?