Comment by Sinatr on How to change display modes smoothly between duplicate...
"WPF app that displaying in full screen" - maximized WPF window? Its kind of hard to imagine what happens with /extend` - could you record a demo, provide minimal reproducible example or find something...
View ArticleComment by Sinatr on Is it possible to reference .NET Framework 4.8 libraries...
NetMQ supports .NET 8 via .NET Standard 2.1
View ArticleComment by Sinatr on Why does Visual Studio suggest using collection...
It's bug. Should be fixed (no idea when we get the fix, repro still triggers IDE0306 for me).
View ArticleComment by Sinatr on How to get unity to export reticle data in a CSV file
Do you have problems with code formatting or is it find enter code here (appears multiple times in very inappropriate places) game?
View ArticleComment by Sinatr on Should I use ReadOnlySpan as Key, in...
Show how you will create an instance of ReadOnlySpan<char> key.
View ArticleComment by Sinatr on How to not forget add using or dispose when work with...
Write unit tests as and use other tests if they fit. The static analysers are good, but not that good anyway.
View ArticleComment by Sinatr on How to get JsonPropertyName string and concatenate with...
Related. Another option - pack all strings as constants into some class and reuse it for attributes and for query.
View ArticleComment by Sinatr on Getting Out of memory exception in Windows Forms
See minimal reproducible example, creating one is almost always a good idea when asking questions here. I suspect file is corrupt, so a single line Image.FromFile("bla.jpg") should reproduce the...
View ArticleComment by Sinatr on How can I see if Microsoft Excel 16.0 Object Library is...
See this answer in linked thread, in addition to referencing assembly (dll) you need to specify namespace when accessing types from it. Using using directive once is more convenient.
View ArticleComment by Sinatr on What might cause this improvement in Garbage Collector...
It's naive to think that the same code behaves similarly in different frameworks (versions of the same framework including, it's major version btw). You call many library methods and those gets...
View ArticleComment by Sinatr on Problem installing NuGet packages (System.Memory) C#
Google for error, you may find someone with same/similar issue and there could be a solution/workaround. Here is one.
View ArticleComment by Sinatr on WPF C# Data bindings on custom controls
The proper "custom control' would have a style with control template, then you use TemplateBinding to access control dependency properties. In WPF you rarely need to create custom controls, rather use...
View ArticleComment by Sinatr on Change auto generated parameter names for events C#
"Redundant" = useless. It's not useless, if OP rises event how he does he should get exception.
View ArticleComment by Sinatr on Interface calculated getters
If you want to have some logic in interface, then maybe use static members? See this fiddle.
View ArticleComment by Sinatr on transparent window when It should be colored
Which turorial you follow? Start here. I recommend you to use proper IDE (e.g. Visual Studio), create avalonia solution from template and then changing background color of MainWindow should be a...
View ArticleComment by Sinatr on .NET 9 projects aren't working after processor...
Major changes to PC hardware may require reinstalling OS/software to have proper environment. Start with reinstalling IDE (I presume it's VS2022?). Create new project, your aim is to be able to run new...
View ArticleComment by Sinatr on Simple and Lightweight Collision Detection (and...
I'd go and learn Unity, unless aim is a hidden mini-game inside About window. Currently the game loop is poorly organized using System.Windows.Forms.Timer, it runs in UI thread. For optimal performance...
View ArticleComment by Sinatr on C# - Derived class that can inherit either one class OR...
There is a trick: you can access non-public members from nested type. E.g. class A { class B { } } - here B can access any member of injected A instance. Not sure how to deal with 2 classes though.
View ArticleComment by Sinatr on How to copy Windows Apps in C:\Program Files\WindowsApps
You best bet is to ask question on super user, make sure it's on-topic. Maybe it's something about security, but definitely not a question about programming.
View Article