Comment by Sinatr on Monogame says I don't have an XNB file, when I do
"when I added a 12th image" - could it be you added it diferently? Compare project settings with working images. I guess missing file leads to same exception and you simply need to output this file.
View ArticleComment by Sinatr on Why does IsWindow() function (winuser.h) not recognize...
WindowPtr returns GLFW window handle. It's not WINAPI window handle, but something different (used to identify window in opengl world?). To get WINAPI window handle (also known as HWND) you have to use...
View ArticleComment by Sinatr on Deserialize from Json using existing sub objects
It's not quite clear what is the problem. What garbage generation? What is usage (deserialization? serialization?) ? If you are not going to use data, then don't serialize it. As for your specific...
View ArticleComment by Sinatr on Is there any ways to put photo on winform when making...
Make gif from png files and add it as PictureBox.Image.
View ArticleComment by Sinatr on Understanding multiple consecutive await statements
I bet this was an failed interview question. ;)
View ArticleComment by Sinatr on .NET 8 Core WPF: DragMove() work only on TextBox not on...
Try using PreviewMouseDown event? Or maybe you just need to <Border Background="Transparent" ... />.
View ArticleComment by Sinatr on Button is taking focus even when TabStop is set to false
Another approach would be to remove the button and use hotkey (similar to handling arrow keys) to perform its action.
View ArticleComment by Sinatr on How to Create a Unified Functional Header Column in...
Creating such control is non-trivial task and I doubt StackOverflow is suitable for such requests, as it's many small tasks in one question. E.g. here is a suitable question related to filtering.
View ArticleComment by Sinatr on Remove Specific Word From String
Can you please show expected output? Several possible input strings would help too.
View ArticleComment by Sinatr on How to create a unified functional header column in a...
Creating such control is non-trivial task and I doubt StackOverflow is suitable for such requests, as it's many small tasks in one question. E.g. here is a suitable question related to filtering.
View ArticleComment by Sinatr on Dynamically generate Products and Batch: Combobox,...
Your requirement is specific, but you didn't show an attempt, nor explained the problem. What you don't know exactly? Or what is the problem to try following the approach in linked article?
View ArticleComment by Sinatr on Is there any way to check if file is .TXT based on...
Why do you need to know if it's a text?
View ArticleComment by Sinatr on How to add item to List with MVVM Pattern in WPF
Having non-synchronized terminals and Terminals doesn't make sense. Just remove terminals field. If you want to have Terminals public setter (to set a whole new collection from other VM?), then it...
View ArticleComment by Sinatr on always focused and top windows in WFA C#
This looks like XY problem. Explain what is X, maybe there is a better solution, because what you ask is pretty harmful to the user. I would NOT expect any software to constantly deactivate other...
View ArticleComment by Sinatr on Newtonsoft.Json don't support FrozenDictionary. Can I...
Since you introduce a second property, I'd make it private (only for serializaing other property) and avoid converter as a whole, do conversion in getter/setter (example).
View ArticleComment by Sinatr on On button hover, textblock needs to display some text in c#
Bind TextBlock.Text to a string property in view model of the view, where it's added. You didn't show much, so it's yet a question how to optimally set its value depending on button hover. Do you have...
View ArticleComment by Sinatr on WPF Datagrid Coloring Rows and Columns
If you set cell style for specific column like here, then cell background is drawn on top of row background. You may need to use DataTrigger to color cell (or not) to achieve needed (example), not sure...
View ArticleComment by Sinatr on MouseEnter sometimes not works on WPF C#
What @DenisSchaf means, is that you will have issues with mouse events if Button.Static.Background is set to {x:Null}. Set it to Transparent.
View ArticleComment by Sinatr on C# TreeView NodeMouseclick or Click function shows...
In the event handler use argument to get clicked node, rather than TreeView.SelectedNode property.
View Article