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

Comment by Sinatr on Localization with binding

Property in ViewModel could simply provide translated text. You will need to monitor for language changes and rise notification for all such properties.

View Article


Comment by Sinatr on Serial Port received "previous" bytes again and again

"plugin device1 app read data of device1, then plugin device2 app read data of device1 again" - this is unclear. We don't know what you call "plugin device", how it's connected, what serial port is...

View Article


Comment by Sinatr on Why is C# calling this overload instead of a more...

I find the setup confusing, can you show minimal reproducible example please? Did I replicate the case correctly? I find confusing that abstract class knows about ihnerited concrete class.

View Article

Comment by Sinatr on Getting System.IO.InvalidDataException during PDF...

"read a pdf file using DeflateStream" - I suspect ChatGPT idea? Why not using a proper PDF-parsing library (e.g. iTextSharp)?

View Article

Comment by Sinatr on Custom JSON convertor in C# failing to read a property...

The json is invalid. Paste it into any online json validator. You have ,} which is not allowed.

View Article


Comment by Sinatr on WPF : Binding error when scrolling a datagrid vertically

@CodingNinja, you may ask your own question then. From other resource dictionary you can't use ElementName, but using proxy is possible.

View Article

Comment by Sinatr on WinForms ComboBox items filtering by Text

The error should be related to minimal reproducible example (with stacktrace, not just link to sources where it is thrown), moreover you need to add exact steps needed to reproduce the error. I...

View Article

Comment by Sinatr on How to make that object's properties are suggested by...

"Reflection and nameof() in C# seems OK" - please add examples of working and not working as expected cases. I can imagine what you might expect and how it works with nameof, but I have no idea what...

View Article


Comment by Sinatr on How to detect barcodes when they are arranged...

Preprocess image? Detect regions with barcodes (either one per region or with same orientation - barcode is a set of lines, line detection should exits), split image, supply each to library and get...

View Article


Comment by Sinatr on How to Implement rotateLeft rotateRight in tree based on...

Language-agnostic related post.

View Article

Comment by Sinatr on After use of Obfuscator application doesn't run

WPF application is not just an assembly, it contains bamls (compiled xaml) and needs mork (haha, funny typo, mork = more work). Either look for wpf obsfucator or do not fiddle with classes used in...

View Article

Comment by Sinatr on How to keep the set background color of a TabControl's...

Clearly Chat-GPT answer, unless you learned to perfectly mimic its way of speaking. Code-block format makes it barely readable. And the last - have you tested this solution? I wouldn't even start...

View Article

Comment by Sinatr on Trying to access a void of a script gives a null error

Are you sure it's this line and not something inside Use()? Post complete error with stack trace.

View Article


Comment by Sinatr on How to fix headers both left and top in a grid with...

ScrollViewer can only have 1 children, shown xaml is invalid. Without some screenshots it's kind of hard to imagine what you want. "If you want to see the bar you have to scroll all the way to the...

View Article

Answer by Sinatr for XMLWriterTraceListener produces wall-of-text instead of...

Postprocessing is one possibility.You need to close listeners with Trace.Close(), then read/format/write "Trace.xml" file.The method could looks like this (credits to this answer, but you can take...

View Article


Comment by Sinatr on On an extension method, how can I have two overloads,...

Related.

View Article

Comment by Sinatr on Invoking ICollectionView.Refresh() from non-UI thread

Why UI should update? To update binding you need to rise notification.

View Article


Comment by Sinatr on Binding Datagird ComboboxColumn Event using xaml behaviors

Related - you need to put behavior inside CellTemplate.

View Article

Image may be NSFW.
Clik here to view.

Answer by Sinatr for How to fix headers both left and top in a grid with...

To get you started, I've played a bit with my idea and it worked, but I made it only for horizontal ScrollBar.You need 3 ScrollViewer (for left/top headers and content) and 2 ScrollBar. I simulate...

View Article

Image may be NSFW.
Clik here to view.

Answer by Sinatr for How do I make a smooth transition in the slider switch?

I am not sure if using multiple storyboards with FillBehavior=Stop nor the layout is the best, but anyway to fix your code, you may need to cancel other storyboard.Give names to storyboards and use...

View Article
Browsing all 601 articles
Browse latest View live


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