Comment by Sinatr on Passing command line parameters with Visual Studio C#
In VS2022 the green "Start Debugging" button in "Standard" toolbar is combobox with drop-down menu and "Configure Debug Properties" menu item, which opens "Launch Profiles" dialogue directly, skipping...
View ArticleComment by Sinatr on Transform T4 Template during Build: Method not found...
After facing same issue and trying to deal with it I also gave up. There is an alternative: specify TextTransformCore.exe tool (part of VS 2022) to run as a prebuild step.
View ArticleComment by Sinatr on In Avalonia,how to set the position of the control
I doubt Canvas is the right container, you may provide AI with 0 requirements. Otherwise Canvas obviously should occupy all place, where its children (e.g. Button) will appear. It could be a whole...
View ArticleAnswer by Sinatr for How to run TextTransform.exe from VS 2015 on PC without...
There is a new official toolTextTransformCore.exe (all arguments are the same as TextTransform.exe), which is much easier to copy (all required files are there) and use (just copy required files and...
View ArticleComment by Sinatr on Why the result is 0 but i think it should be 1?
num1 is 4, so it's true, so it's 0.
View ArticleComment by Sinatr on c# winformchart symmetric majorgrid
Please refer to minimal reproducible example, you have to show your exact case. I was hoping the provided help would be enough for you to continue on your own.
View ArticleComment by Sinatr on In Avalonia,how to set the position of the control
foo.Bar = value is a syntax to call Bar property setter on foo instance. Attached properties are not normal properties and their syntax is different, because they need one more parameter (one is...
View ArticleComment by Sinatr on Can I get a high resolution project on the screen even...
You can create complex layout which will support any resolution. In winforms it's using TableLayoutPanel and FlowLayoutPanel. Another option is to create different form for different resolution/aspect...
View ArticleComment by Sinatr on C# How can detect print button press of a digital scale
For what? Maybe you don't need to detect the button? Certain balance can be configured to send weight only after pressing button. When you are polling for values there will be nothing unless someone...
View ArticleComment by Sinatr on CollectionChanged Event doesn't trigger
Can't reproduce. Works as expected at my place. Please refer to minimal reproducible example, you need to share exact code and more details: what project type it is and possible dependencies (e.g....
View ArticleComment by Sinatr on How to use ILogger in a C# extension method?
Normally ILogger instance have to be injected, but I really like global using to just call LogError() anywhere in project. Anyway consider doing codereview.
View ArticleComment by Sinatr on How to implement the rendering of an object so that part...
You could have 2 objects as platform (sprites?) which should never overlap, and render both partially, depending on where ray is now.
View ArticleComment by Sinatr on Match and delete substrings of duplicate characters and...
@YaroslavParkhomenko, type @ and then first letter from user name to use prompt with complete user name. Changing name and adding "Mr." in front of it is rather strange, likely just wrong.
View ArticleComment by Sinatr on WPF ComboBox Display list of selected values
@IvanSerdukov, didn't noticed that issues. Try the fix.
View ArticleComment by Sinatr on Why are registrations disappearing from UnityContainer?
Single line of code worth thousands of characters, which forms the sentence explaining it.
View ArticleComment by Sinatr on How to evaluate the condition of the...
Microsoft.Build.Evaluation ?
View ArticleComment by Sinatr on System.Threading.ThreadStateException in WinFrom .NET 6...
You don't need to invoke if you copy text first into variable. Related.
View ArticleComment by Sinatr on exception handling for using/StreamReader/var block
Not throwing FileNotFoundException at start, but anything during reading? Hmm..
View ArticleComment by Sinatr on How to replace symbols of one keyboard layout with...
Punto Switcher did that in old good times. I guess it simply monitors for entered text, try convert it to another layout and check dictionary if such word exists and then replaces text somehow (by...
View Article