Closed McTopaz closed 3 years ago
Unfortunately, your solution raises a build error for me:
Could not load file or assembly 'file:///C:\<directory of the app>\WPF\packages\Fody.6.1.1\netclassictask\FodyIsolated.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
I tried
But nothing works.
So only by looking at your code I can say:
TextBlock
instead if you only want to display text and not label another control.5
which is why there were spaces before. Adonis UI removes these paddings because it tries to establish unified spacing throughout the app instead.VerticalAlignment="Center"
to center them. They might have appeared to be centered before because of the default padding of labels which pushed the text downwards. That's just a guess though as I cannot verify this without running the app.Strange about the PropertyChanged/Fody bug...
I'm now on a different computer and got it working without any problem by:
I run:
This should run at your site as well. Strange...
Thanks for the tips anyway!
With that I managed to fix the appearance satisfactory.
You're right, it's strange. I found a stackoverflow thread discussing the issue. The accepted answer suggests to not run the project on a network drive, but I don't even have one.
I'm glad your question is answered now, though. I will close this issue.
I have a WPF-application where I have done all the steps to enable switching between dark and light themes.
When I add the boilerplate code of Adonis to be able to switch between dark and light schemes, the layout in my MainWindow is changed.
When I say "add the code to be able to switch between dark and light schemes"; I mean implementering the Introduction - Quick start steps in the documentation.
When the Quick start procedure is not implemented; my application looks like this:![OK Layout](https://user-images.githubusercontent.com/8076594/90730036-bd44e680-e2c7-11ea-852d-2687376126b2.png)
When I implement the Quick start procedure; my application looks like this:
This picture show the light scheme. As that is the default scheme in my application.
The "blue section" in my application is my own UserControl. For some reason the layout of my UserControl has changed when enabling light or dark scheme.
The other controls in my application (a Button, a TextBox and a Groupbox) are also affected.
I have narrowed down to the boilerplate code in the App.xaml which cause the layout problems. Here is my App.xaml code. (Unfortunately I cannot seem to get the code well structured in with GitHub's code section regarding XML-code. You have to believe me that the code is the same as the boilerplate code example).
` <Application x:Class="Main.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Main" xmlns:adonisUi="clr-namespace:AdonisUI;assembly=AdonisUI" StartupUri="MainWindow.xaml">