Comments (8)
Ok, I'll update my code to be sure that the custom palette is always inialized.
Thanks
from standard-toolkit.
Which version of the toolkit are you using?
Did you try other versions, and if so was the error present as well ?
Can you please provide a simple sample project that demonstrates the error?
from standard-toolkit.
<TargetFrameworks>net8.0-windows</TargetFrameworks>
Not really, the project is huge and integrates Krypton at many levels with my other framework (ModernUI) and I've faced that error on integrating the canary version (due to all the breaking changes introduced..)
I can modify the code once is released don't worry.
Here the sample "palette designer" application behaviour with ModernUI form and theme and color with all the krypton controls styled accodingly (slow - debug)
Regards,
Angelo
from standard-toolkit.
Which Canary version of the toolkit are you using?
from standard-toolkit.
I grab the version from GitHub yesterday, based on your label v90.24.4.113-beta
from standard-toolkit.
The above video does not show anything going wrong.
The current code actually does null checking and that code is also present in the master branch. So earlier versions will act the same.
So we need some more info about how & what exactly is happening?
private void SetPalette(PaletteBase basePalette)
{
if (basePalette != _basePalette)
{
Debug.Assert(_basePalette != null);
// Unhook from current palette events
if (_basePalette != null)
{
_basePalette.PalettePaint -= OnPalettePaint;
_basePalette.ButtonSpecChanged -= OnButtonSpecChanged;
_basePalette.BasePaletteChanged -= OnBasePaletteChanged;
_basePalette.BaseRendererChanged -= OnBaseRendererChanged;
}
// Remember the new palette
_basePalette = basePalette;
// Make sure the redirector passes requests onto the base palette
_redirector.Target = _basePalette;
// Update the color table we inherit from
ToolMenuStatus.BaseKCT = _basePalette.ColorTable;
// Hook to new palette events
if (_basePalette != null)
{
_basePalette.PalettePaint += OnPalettePaint;
_basePalette.ButtonSpecChanged += OnButtonSpecChanged;
_basePalette.BasePaletteChanged += OnBasePaletteChanged;
_basePalette.BaseRendererChanged += OnBaseRendererChanged;
}
}
}
from standard-toolkit.
No, because I've added this on the method:
private void SetPalette(PaletteBase basePalette)
{
if (basePalette == null)
{
basePalette = new KryptonCustomPaletteBase();
}
....
Commenting it out I have:
But, as I said, is up to you ...
Angelo
from standard-toolkit.
I see, but: basePalette is not nullable and should be a valid param to a palette.
from standard-toolkit.
Related Issues (20)
- [Bug]: Toolkit Nightly Alpha - KryptonHeaderGroup doesn't disappear HOT 17
- [Bug]: Clean get of alpha branches results in multiple build errors HOT 1
- [Bug]: A Clean get of the alpha branch does not build in latest VS HOT 1
- [Bug]: Latest alpha does not build in 17.10 or 17.11ps VS HOT 3
- [Bug]: KMessageBox (and "Deprecated") using Error Icon plays the wrong sound
- [Bug]: Exclamation Mark shows up in the Toolkit references. HOT 3
- [Bug]: KryptonRibbon QAT KeyTips null reference exception HOT 2
- [Bug]: The Krypton.Navigator does not work when the Windows Form project is only compiled against 'net7.0-windows' HOT 6
- [Bug]: `Docking Perstence` demo application is broken with recent changes made in Canary and nughtly builds HOT 10
- [Other Issues]: Revise Theme Selector Controls HOT 9
- [Bug]: ButtonSpec does not open assigned context menu when clicked
- [Bug]: DOT NET 8, Visual Studio 2022 ( 17.10.1 ) Cannot add or drag items to KryptonGroup or KryptonGroupBox in WinForms Designer HOT 9
- [Question]: Where does "Krypton.Toolkit.dll" get placed whe I build my project ( .NET8, VB 2022 )
- [Bug]: UpdateEnabled HOT 1
- [Bug]: Theme Office 2010 Black Dark Mode causes a crash. HOT 4
- [Bug]: Components are drawn differently between designer and executed app HOT 10
- [Other Issues]: Control Designers & Action Lists Checkup-Up HOT 2
- [Other Issues]: Check ThemeManager & KryptonManager for the use of hard coded theme indexes HOT 3
- [Feature Request/Discussion]: Add custom preprocessor symbols for code or feature testing
- [Bug]: `KryptonListView` does not have proper back colours applied to it
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 standard-toolkit.