Comment by Sinatr on Override value from data binding through attached property
One cheap way is to use parent containers to avoid multibindings, e.g Grid1-Grid2-Button will not change layout at all, but you have 3 visibilities (logical AND) to bind now. A better practice...
View ArticleComment by Sinatr on How to work around memory limitations on arrays of large...
I would ask question on Software Engineering first, to discuss architecture and what yes and what not. If you are confident at what you are doing, then post exception with the call stack and enough...
View ArticleComment by Sinatr on Bind DataGridColumn property to ViewModel property
Related. Just use DisplayIndex="{Binding ColumnOrder[0]}". The relative search is needed for bindings inside template.
View ArticleComment by Sinatr on C# Clipboard.GetData leaves image from mspaint corrupted
If you have an answer, then post it as the answer (see help) rather then editing the question.
View ArticleComment by Sinatr on A DependencyProperty with a CoerceValueCallback is...
I've checked what Slider does with its Value. Coercing is not your problem, you may ignore my comment if you implementing similar control.
View ArticleComment by Sinatr on .NET MAUI - Dependency Injection - Constructor is never...
There is a documented way: the view should have vm injected and set its BindingContext; and popup view is typically based on ContentView, not Popup (maybe it's possible but I don't know this way). I...
View ArticleComment by Sinatr on Missing properties and methods in Avalonia
Why not 12? I used this link, but info is removed it seems.
View ArticleComment by Sinatr on How to bind an entire control instead of individual...
Even if this "works for you", it's not the right way. Looks like XY problem. Try asking question explaining what you need (here or maybe even on software engineering).
View ArticleComment by Sinatr on Bind an entire control instead of individual properties...
Even if this "works for you", it's not the right way. Looks like XY problem. Try asking question explaining what you need (here or maybe even on software engineering).
View ArticleComment by Sinatr on Check two T values for inequality/current...
Don't reinvent the wheel. I am personally a big fan of reactiveUI (it provides you with lots of QoL), it has AOP attributes (utlizing source generators to write for you boilerplate code), check syntax...
View ArticleComment by Sinatr on Inheriting a user control from another user control
Related. TLDR: not directly possible. I was using styles to apply same "basic" stuff to multiple user-controls.
View ArticleComment by Sinatr on Limit visibility of a struct to a single file, yet use...
I wonder from where requirement comes too. From other programming language perhaps?
View ArticleComment by Sinatr on Why do these two loops not work the same?
@PanagiotisKanavos, disagree, continue is fine to skip loop iterations. Can you show refactored version on fiddle what you think is the best?
View ArticleComment by Sinatr on Why do these two loops not work the same?
You have to invert condition of if when you kind of moving it from "excluding items" into "including items" category.
View ArticleComment by Sinatr on Visual Studio 2022 Winforms - Elevated Admin Permissions...
Go through questions asking opposite - how to request admin rights (1, 2, etc.) and see if any answers is applied in your project. The modern way is feeding project to AI agent and asking him. For a...
View ArticleComment by Sinatr on Binding C# defined content to a XAML-defined container
Use data templates. Use ItemsControl to bind collection of item viewmodels.
View ArticleComment by Sinatr on Chinese vertical text renders incorrectly after rotation...
As @JonasH found out, the expected output is a transformed horizontal text. Get rid of DirectionVertical.
View ArticleComment by Sinatr on .NET MAUI .NET 10 – project.assets.json missing targets...
When does it stop working? After which step?
View Article