Quantcast
Channel: User Sinatr - Stack Overflow
Browsing all 599 articles
Browse latest View live
↧

Comment by Sinatr on How to get WPF to reinspect the CanExecute of a Button...

What is RelayCommand? MVVM Light?

View Article


Comment by Sinatr on C# WPF - How to update all items in a List based on one...

You could use a container, which does the math to measure/arrange its childrens and have its own bounds. Btw, all properties need to rise event.

View Article


Comment by Sinatr on Is it possible to deconstruct safely, e.g. with named...

I often refactor methods arguments, so I may do similar to what method returns. Also deconstructing of records doesn't have much support from intellisense, the method help just shows Bla and not Bla(a,...

View Article

Comment by Sinatr on Low level mouse hook handles mouse scroll in Windows,...

I am using AutoHotkey tool to rebind control keys in many console-oriented games (read, poorly implemented for PC, with hardcoded keys, etc). It works with all games. In script file you can rebind...

View Article

Comment by Sinatr on Calling a Method in View's CodeBehind from ViewModel?

@JunaidPathan, "So here VM knows about View" - what VM knows about View other than that View is using its event? Yes, its valid MVVM: any View can use this VM event. For scenarios with single View for...

View Article


Comment by Sinatr on simulate method call mechanism of inheritance

There are other methods to register class somewhere similar to virtual tables: static constructors (to do something with type once), interface with static members (whole Hashing can be implemented...

View Article

Comment by Sinatr on Different between Curly braces{} and brackets[] while...

It's easy, curly braces - { } - collection initializer - Add method, square bracers - [ ] - collection expression - Create method.

View Article

Comment by Sinatr on Function definition with prototype vs without prototype

Related topic, but I can't dig the clear answer to my question out of it.

View Article


Comment by Sinatr on Function definition with prototype vs without prototype

@JohnBollinger, I've rolled back the wrong statement. Please don't discuss here 1 and 2. There are dozens of topics already, really! ;)

View Article


Comment by Sinatr on Function definition with prototype vs without prototype

Thanks for explanation, learned something new. My decision is simple: use 2 and 4 always.

View Article

Comment by Sinatr on How do I implement a scheduled task for file transfer...

Please provide more details regarding operating system, type of C# application, etc.. Otherwise you get dozens of "the best way is ..." answers, which may be the "worst" for you.

View Article

Comment by Sinatr on Rotating bitmap and keeping track of location on new...

Related and this one.

View Article

Comment by Sinatr on Validation gets lost on tab change

TabControl uses virtualization for its pages, switching page will wipe out all uncommited into ViewModel changes. Either disable virtualization or use a validation method, which stores invalid state in...

View Article


Comment by Sinatr on Low level mouse hook handles mouse scroll in Windows,...

I am using AutoHotkey tool to rebind control keys in many console-oriented games (read, poorly implemented for PC, with hardcoded keys, etc). It works with all games. In script file you can rebind...

View Article

Comment by Sinatr on How can I check that Excel is ready for the next call...

Related.

View Article


Comment by Sinatr on C# Console Window Program - How to set font & lock...

I hope it's not xy problem. What's the role of that app? For a typical console application, the fonts doesn't really matter. I don't know what is "text base hangman design", are you making a hangman game?

View Article

Comment by Sinatr on How to get Startup apps in .NET? Windows 10, 11

There are planty of similar questions on StackOverflow and the programming language is not very relevant here. But none of them is canonical or comprehensive enough. I found this post on reddit, it...

View Article


Comment by Sinatr on Can't load stuff in Listbox

Where and how do you set DataContext of the view? It could be typical beginner mistake, always check Output window for binding errors.

View Article

Comment by Sinatr on What the best way to disable all outgoing internet...

Going through "your own application" and refactoring it is the way. Not sure why you need a reflection, perhaps you want to go through a codereview or ask about better architecture.

View Article

Comment by Sinatr on Avalonia/ReactiveUI command doesn't execute. Did I miss...

Debug.WriteLine ?

View Article
Browsing all 599 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>