Quantcast
Channel: User Sinatr - Stack Overflow
Browsing index pages (715 articles)
↧

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 Article


Comment 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 Article


Comment by Sinatr on Number of elements in Queue?

Related.

View Article

Comment 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 Article

Comment 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 Article


Comment 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 Article

Comment 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 Article

Comment by Sinatr on Missing properties and methods in Avalonia

Why not 12? I used this link, but info is removed it seems.

View Article


Comment 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 Article


Comment 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 Article

Comment 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 Article

Comment 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 Article

Comment 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 Article


Comment by Sinatr on Async interface, sync-only implementation: Which of...

Related.

View Article

Comment 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 Article


Comment 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 Article

Comment 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 Article


Comment by Sinatr on Binding C# defined content to a XAML-defined container

Use data templates. Use ItemsControl to bind collection of item viewmodels.

View Article

Comment 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 Article

Comment by Sinatr on .NET MAUI .NET 10 – project.assets.json missing targets...

When does it stop working? After which step?

View Article
Browsing index pages (715 articles)


Latest Images