Repaint Issue
See original GitHub issueHello,
I’ve found an issue where the RadioGroup-Control does not repaint correctly. Here is the code to reproduce it:
Application.Init();
Window window = new Window("Repaint Issue") {X = 0, Y = 0, Width = Dim.Fill(), Height = Dim.Fill()};
RadioGroup radioGroup = new RadioGroup(1, 1, new[] { "Short", "Longer Text --> Will not be repainted <--", "Short" });
Button replaceButton = new Button(1, 10, "Replace Texts above") {
Clicked = () => { radioGroup.RadioLabels = new string[] { "Longer than before", "Shorter Text", "Longer than before" }; }
};
window.Add(radioGroup, replaceButton);
Application.Top.Add(window);
Application.Run();
The “–> Will not be repainted <–” will not be repainted with “blanks”. I think there are more issues with repainting especially when replacing SubViews and so on.
Regards, Jens
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
15 common paint problems and how you can fix them
1. Blistering and flaking. Painting a wall is exciting, but it can be frustrating when it begins to blister and flake. · 2....
Read more >8 Common Paint Problems and How to Fix Them
Reasons for Failing Paint · 1. Cracking. If your paint has cracked, it means the paint was too thin or may have dried...
Read more >6 Common Paint Problems and How to Fix Them
6 Common Paint Problems & How to Fix Them · Share this story · Cracking, Flaking, and Clumping · Peeling · Blistering a.k.a....
Read more >10 Common Exterior Paint Problems and How to Fix Them
Here are the top 10 most common exterior paint problems—their causes and solutions, as well as ways to prevent them.
Read more >7 Common Paint Problems (And How to Fix Them)
3 Steps - Learn how to fix paint problems such as flaking, peeling, cratering, mildew, sagging, dripping, lap marks, and hatbanding using this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi,
thanks for the fix. When will this be available with the next nuget package? Currently I do have to call Application.Refresh to workaround it, which is really bad.
Regards, Jens
Hello, I am not sure whether it has something to do with this. I have encountered troubles when updating a certain Label within a ScrollView in time of a button handler execution. I have following ScrollView:
var infoView = new ScrollView(new Rect(1, 1, 40, 20)) { ContentSize = new Size(80, 40), ContentOffset = new Point(1, 1), ShowVerticalScrollIndicator = true, ShowHorizontalScrollIndicator = true };
Then added several labels. After updating one of the lablel’s text only the label text is shown and all other labels disappear including the ScrollView’s scroll bars itself. (The whole content appears again bu clicking to menu, which overrides the area of the ScrollView.)Updated: the manual call of the ScrollView’s SetNeedsDisplay() helped, but it seems to me to be just a workaround…