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

Comment by Sinatr on How to do a double indexer for an own class object in C#

What are going to do with mymatrix[index1][index2] ? Is it just a value or you intend to access mymatrix internals? Consider to return a wrapper from indexer, which takes current main instance and...

View Article


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 Retrieving inline with formatting from textblock and...

Do you have xaml to show that inline-part? Is that β an actual content and instead of it you rertieve b of what are those β and b?

View Article

Comment by Sinatr on How to enforce specific implementation of an interface,...

Train: IVehicle<CanalInfo> first what comes in mind. But do you really need to couple TrackInfo into vehicles? Why not use manager, which knows vehicles types and stuff?

View Article

Comment by Sinatr on Context menu integration only for image type file...

Or is the problem multiple files ?

View Article


Comment by Sinatr on C# .NET : is "lock" required around ImmutableList...

"I guess ...", yes, it's about atomicity. The reading of the pointer value, which points to either old or a new collection is safe, but ensuring writing/reading pointer is atomic require lock. From my...

View Article

Comment by Sinatr on How can I open the shell context menu

Sounds like XY Problem, why would you want to open original menu, read its items and then create another one? Either you want to modify existing (please tell us what are you trying to achieve) or mimic...

View Article

Comment by Sinatr on Deserialize JSON to already filled class in C#

You can't avoid having to manually write code to add any data of one MyCLASS instance to another , but if you will be more specific we can try to help you to minimize it.

View Article


Answer by Sinatr for How to serialize properties into separate Json using...

You can use json converters to customize produced json and perform custom steps (creating separate json-files in your case).Just to get you started, here is a converter:public class XConverter :...

View Article


Comment by Sinatr on How to limit the amount of identical logs in an endless...

"adding a log entry on a certain places" - I guess you need to fix those places individually, so they can't spam. Throttle technique may do: "this error has occured 12938 times since".

View Article

Comment by Sinatr on How can I define precompiler constants across projects?

I'd expect web project related compiler stuff to be only there. Otherwise you need to compile core for each project individually, which you can also do.

View Article

Comment by Sinatr on WPF Test Validation Rule with Data in BindingExpression

You shouldn't test interactions in unit tests imho. Refactor your validation rule to have simple logic you test in unit tests and let the rest to be tested by integration tests.

View Article

Comment by Sinatr on How to do a double indexer for an own class object in C#

What are going to do with mymatrix[index1][index2] ? Is it just a value or you intend to access mymatrix internals? Consider to return a wrapper from indexer, which takes current main instance and...

View Article


Comment by Sinatr on How to customize the options of AvaloniaUI app on the...

Try to customize NativeMenu of main window or rather application. Here is bug report with code and screenshots.

View Article

Comment by Sinatr on C# - Form shows differently at runtime compared with...

The form layout is different during run-time. Do you use localization of forms? There will be more than one form resouce file, with localization culture in name, storying different layout there. As...

View Article


Comment by Sinatr on Is there a way to print 2 characters in one space within...

You have to reserve the space for character to be or not to be. Old approach (used in old PCs, like ZX-Spectrum, to save video RAM) was pseudographics to draw more than one pixel inside character, like...

View Article

Comment by Sinatr on C# - How can I (de)serialize internal classes (from)to...

Related.

View Article


Comment by Sinatr on Where to store nonhashed passwords on windows

Where? On a fingerprint-protected USB stick, but otherwise in user profile. Is you question rather how ?

View Article

Comment by Sinatr on How to ensure Image and MediaElement with...

Layout in WPF is made for rectangles. If you need something more shape-oriented, then you need to do all the math yourself or apply some tricks. Try adding margin to a Grid or ViewBox.

View Article

Comment by Sinatr on Why does my Image and MediaElement not fit in Border...

Layout in WPF is made for rectangles. If you need something more shape-oriented, then you need to do all the math yourself or apply some tricks. Try adding margin to a Grid or ViewBox.

View Article
Browsing all 601 articles
Browse latest View live


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