Comments (2)
I am not sure if I understand you correctly. To me this looks like an issue with the XAML Designer but you said it happens "when AdonisUI.Demo is run". Could you please clarify if the error occurs in the Visual Studio Designer or at runtime in the application?
Regarding the error you received:
Using the designer I can reproduce the error in some situations. It occurs because the designer cannot handle the usage of MarkupExtensions in style setters. It works for some hard-coded types like Binding
and DynamicResource
but custom extensions like the SpaceExtension
do always raise this error. As this is not the first case where the designer has problems dealing with the SpaceExtension
, I will try to find an alternative that does not rely on custom MarkupExtensions.
Regarding the styles not being applied in the designer:
Besides the error, the designer seems to fail to load resources that reside in App.xaml
. This is not an issue with the library though. If you want the designer to make use of the styles you can include them explicitly in the window's resources in addition to the app's resources. For me, the designer is able to find the resources in that case. This might have performance implications though as the ResourceDictionaries are instantiated multiple times in that case. So my advice would be to just accept that some styles might not be applied in the designer as it is not a perfect copy of the application anyways.
from adonis-ui.
The error only occurs in XAML Designer. The app works in run time except not inheriting the Window style. But now your comments clarified to me where I went wrong. I close the issue now.
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.