Comment by Sinatr on AOP Custom Attributes in C# ConsoleApp without PostSharp
Related. You serverly miss M in MCVE (minimal reproducible example) and I doubt you have rough estimation of required programming without using Postsharp or similar libraries. Writing attribute and...
View ArticleComment by Sinatr on Minimize UWP programmatically on Windows 11
Define "stopped to work"? Can you still use that API? What infos and resourceInfos contain?
View ArticleComment by Sinatr on How to disable TAB key in ContextMenuStrip?
I'd try to handle Control.PreviewKeyDown and suppress TAB.
View ArticleComment by Sinatr on Read and Write to the same image file C#
"The image file read is working" is an interesting statement. Hint: always prove your first step, before doing the next. If you try to display such "string-image" you would realise problem yourself and...
View ArticleComment by Sinatr on Why does a method call affect the object but assignment...
2) You can introduce a wrapper to hold reference and everywhere use that wrapper. Pass wrapper instance as ref and set its member to null.
View ArticleComment by Sinatr on Adding serialize class to list using custom Inspector
AFAIR you need editors for all your behaviors.
View ArticleComment by Sinatr on How do I make a WPF DataGridColumn a bound, editable...
I don't quite understand, why changing Craig favorite color from "blue" to "bluegreen" should affect Bob's favorite color? Because you changed color at lets say index 0 and they both use color at index...
View ArticleAnswer by Sinatr for How to disable TAB key in ContextMenuStrip?
To disable Tab-key in menus you need to handle PreviewKeyDown and set e.IsInputKey, this seems to prevent selection logic from running.There is a problem with sub-menus, because each drop-down has its...
View ArticleComment by Sinatr on Return 404 instead of 403 to fix security vulnerability...
Please include the code as text, see helpful meta-topic.
View ArticleComment by Sinatr on Perform time consuming disposal asynchronously
"Visual Studio tells me ..." - what it tells you?
View ArticleComment by Sinatr on Can the Garbage Collector move a struct during a call?
Method remarks mention this: This method can be useful if part of a managed object represents a fixed array.
View ArticleComment by Sinatr on How to create custom mask for TextBox control?
So you want to insert space as you type after pairs of characters? And backspacing first character in pair should remove such space? Handing keyboard events is the first solution what comes in mind,...
View ArticleComment by Sinatr on BackgroundWorker and TreeView, stuck form when I expand...
Combination of BackgroundWorker and Invoke is rather funny than useful. You are not using different thread.
View ArticleComment by Sinatr on Access .SQL files located in another project
The unit test project have access to tested assembly codebase and resources. To run sql-files they needs to be available, e.g. put into resources. What do you want to test? Public methods or sql-files?
View ArticleComment by Sinatr on Getting Item in hierarchical TreeView
It's not clear what you have at hand, but maybe (treeViewItem.DataContext as ItemViewModel).Text will do? Who will be changing Text and why?
View ArticleComment by Sinatr on WPF, .NET. PropertyChanged Event does not trigger UI...
Where do you set DataContext? I expect to see some binding errors. d:xxx properties are only used at design time.
View ArticleComment by Sinatr on Problem in Unity's navigation system - getting stuck and...
Unity DOTS? To example with this library (from this reddit topic)
View ArticleComment by Sinatr on Runtime localisation for .NET WPF Application
Reloading is an easy option: set flag, close main window, in custom App.xaml.cs organize a loop to check flag and recreate window instead of exiting. Or simply call...
View ArticleComment by Sinatr on How to discard property being written from json converter?
@Cleptus, what is your idea? Which attribute and where to apply?
View Article