Comment by Sinatr on Is it possible to override an attribute in a method to...
Is it a custom attribute which you use in your code elsewhere? Then sure, you need to handle conflicts like this, because you allow them.
View ArticleComment by Sinatr on How to share data through ViewModels in a WPF MVVM project?
I'd made serializable (and likely singleton) model Settings, instance of which both viewmodel have and monitors for changes. Change Settings properties from anywhere and they both update its views.
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 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 Remove Specific Word From String
Can you please show expected output? Several possible input strings would help too.
View ArticleComment by Sinatr on Understanding multiple consecutive await statements
I bet this was an failed interview question. ;)
View ArticleComment by Sinatr on Async while drawing in Windows Forms
What is the intent/problem you are trying to solve by using asyn? Are you performing some kind of animation?
View ArticleComment by Sinatr on Does the WPF Renderer limit control inputs per second?
What is expected output? The problem is not quite clear. The Debug.WriteLine implies you haven't tried Release configuration to rule out debugger overhead? WPF is not game engine, nor it's optimized...
View ArticleComment by Sinatr on Enum flags OR ways and their compilation result
It's the last operation inlined. flags |= MyFlags.B | MyFlags.C | MyFlags.D produces 1 | 0xE because flags had value 1 and on the right side several flags were combined to 0xE. And flags|= MyFlags.D;...
View ArticleComment by Sinatr on Why do I get CS8603 (Possible null reference return)...
Some time ago, since it's IEnumerable, I'd suggest to use pattern matching ip.FirstOrDefault() is string ip1, but collection decomposition or what is ip is [string ip1, _] (note string) is more modern.
View ArticleComment by Sinatr on Whats the best way to implement page navigation with WPF...
The best way is to somehow utilize MVVM, namely having view models for each navigatable view and data templates to load corresponding views. As for top control the TabControl might be the good starter:...
View ArticleComment by Sinatr on How to identify an specific Beep frequency on audio...
If beep stand out clearly (like on screenshot), you can use aplitudes array to find the time when it starts/ends, just find a piece of array where ABS(amplitude[i]) > min and test if it's a beep....
View ArticleComment by Sinatr on Is there anyway to make a 7-segment digital display...
It certainly possible to do and should be a great fun. Where it starts being not good enough?
View ArticleComment by Sinatr on Unable to capture exception in task
Wrong assumption, set breakpoints and debug. Btw, on exception you don't close connection. Perhaps using finally block is a good idea?
View ArticleComment by Sinatr on How to define preprocessor symbols using devenv.com...
deven.com /Build - Builds a solution or project using a specified solution configuration file. msbuild.exe - can include several switches to specify various aspects of the process. I don't think you...
View ArticleComment by Sinatr on Sending back an acknowledgement to the websocket client
What is stream? And "at the end of the receive code" without mistakes, sure?
View ArticleComment by Sinatr on JsonSerializer.Serialize causes out of memory exception...
What happens if you deep copy that 7th entity first?
View ArticleComment by Sinatr on How to decompile corrupted .NET assembly that is missing...
Why silverlight tag? The latter content looks like xaml-resource (could be wpf?), which could be easily visible with hex-editor, but extracting IL is another story. I would be very surprized if you can...
View ArticleComment by Sinatr on How to define preprocessor symbols using devenv.com...
"convoluted .csproj" - I read this as you are working alone and using same pc for development and deployment. Once you are in team and have dedicated build server you will see how "convoluted .csproj"...
View Article