kachnitata
kachnitata
I am out of office right now, but looking at the description above, it seems the `.Enabled` is being evaluated at the time of dark theme application. If the control...
hi, I came across this conversation. I think the reason is obvious in the code below: ...e.Graphics.DrawString(radio.Text ... ``` if (control is Label) { control.GetType().GetProperty("BackColor")?.SetValue(control, control.Parent.BackColor); control.GetType().GetProperty("BorderStyle")?.SetValue(control, BorderStyle.None); control.Paint +=...
I looked into the refactored code of `Label.OnPaint()` and found this: ` e.Graphics.DrawString(this.Text, this.Font, brush, (RectangleF) rectangle, stringFormat); ` and ` internal virtual StringFormat CreateStringFormat() => ControlPaint.CreateStringFormat((Control) this, this.TextAlign, this.AutoEllipsis,...
actually, depending on the settings they use also `TextRenderer.DrawText` instead of `Graphics.DrawString` etc. I have no idea what details we will have to go into within DarkModeCS. The whole method...
I am having the same issue. I think you @BlueMystical made two mistakes: `using (Graphics g = e.Graphics)` would cause `Disopose()` of `e.Graphics` which probably leads to the errror what...
also I am not sure if we can ``` e.Graphics.Clear(control.Parent.BackColor); e.Graphics.SmoothingMode = SmoothingMode.HighQuality; ``` maybe we should create new Grephics instance for it....
Hi, I haven't noticed any issues myself. btw @BlueMystical I think we really have to deal with the line `e.Graphics.SmoothingMode = SmoothingMode.HighQuality;` either get rid of it, or create a...
I use a couple of `Treeview`s that change dynamically but i have never had this issue. Are you sure you don't interfere with the style in your code? Would you...
Actually... I realized I always deselect the current node before changing the tree and then select it again. That's probably why i never run into this issue.
Another difference might be that my changes to the tree are always synchronously triggered from the UI, never by any other thread. Are you using `Invoke` when updating the tree?