Comments (3)
So it seems like the designer fails to evaluate this statement in the default style of ScrollViewer
:
<Setter Property="Padding" Value="{adonisUi:Space 0.5}"/>
I don't know why it fails here. Interesting that your call of SetSpace(8, 8)
makes it work.
Before I take a deeper look at this, can you please make sure that you are using the current version of Visual Studio with the latest XAML Designer?
The designer received a major update a few months ago which might eliminate this issue.
from adonis-ui.
I'm using 2 Version, the current Community Edition 16.5.4, and the Preview 3 Edition 16.6. both of them raise same problem
yes, I think the new designer is broken, and unfortunately there's no option to use legacy designer.
from adonis-ui.
I experimented a lot with the SpaceExtension
but whenever I had a promising idea it turned out to have no effect on the errors. I was able to reproduce the exact same error you got but sometimes it just disappeared after changing absolutely nothing.
So I still have no clue what causes the error.
But I found out that changing
<Setter Property="Padding" Value="{adonisUi:Space 0.5}"/>
to
<Setter Property="Padding" Value="{adonisUi:Space 0.5, 0.5}"/>
... seemed to make the error disappear. Although the error sometimes did not re-appear when reverting this change. It's crazy, I know.
So I created a PR for this and we will see in the next release if it changes anything for you.
The PR contains another change as well that made sense to me but seemed to not have any effect. I included it anyways because it does no harm and might be useful to prevent similar errors.
I am not really satisfied with this solution but currently it is the best I have. Let's see how it performs. Feel free to re-open this issue when v1.16.0 is out in case you still receive the error.
from adonis-ui.
Related Issues (20)
- Ribbon control
- RippleHost causing MemoryLeaks HOT 1
- About the select page
- Change accent color at runtime
- center window don't work HOT 1
- MessageBox result closes application HOT 3
- Remove red border around button content when using data validation HOT 4
- AdonisWindow // Hide all buttons property
- Text wrapping for watermark
- AdonisWindow not getting garbage collected HOT 2
- Adonis UI alternative for Avalonia? HOT 1
- Questions HOT 2
- Extend style of control styled with Classic Theme? (.NET 7) HOT 1
- Setting ResizeMode "CanResizeWithGrip" on the window removes Adonis title bar
- Resource not found; ResourceKey='TargetType=AdonisUI.Brushes ID=Layer0BorderBrush'
- visual studio 2022 xaml designer not showing adonisControls:AdonisWindow HOT 2
- Cannot add AdonisUI Custom Components from Toolbox or it's not seen xaml code?
- Add Expander control style HOT 1
- [Support request] AdonisUI styling not applying to codebehind-generated control? HOT 1
- Memory leak to AdonisWindow from HandleTitleBarActualHeightChanged
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adonis-ui.