tagged [converters]
use of boolean to color converter in XAML
use of boolean to color converter in XAML I am working on WPF application.I have bound my textblock to my button. I want to set foreground of my textblock to black color when its associated button's i...
- Modified
- 21 Dec at 05:46
Converting JSON to XML
Converting JSON to XML I trying to convert JSON output into XML. Unfortunately I get this error: > JSON root object has multiple properties. The root object must have a single property in order to cre...
- Modified
- 22 May at 04:32
WPF ImageSource binding with Custom converter
WPF ImageSource binding with Custom converter I have a simple template for a combobox structured in this way: ```
- Modified
- 17 May at 13:2
Use converter on bound items in combobox
Use converter on bound items in combobox i have a combobox which is bound to a datatable column like this: The IDNr in the Column always starts with 4 letters followed with the ID Number (ex. BLXF1234...
- Modified
- 6 Aug at 13:55
Using enum in ConverterParameter
Using enum in ConverterParameter I am building an application that can be used by many users. Each user is classified to one of the next Authentication levels: Some controls (such as buttons) are expo...
- Modified
- 29 Jul at 16:13
How Convert VB Project to C# Project
How Convert VB Project to C# Project I have a project written in VB, and I need to convert the whole project to C# project. I don't want to do it file by file, I found some online converters, but they...
- Modified
- 27 Dec at 03:27
WPF Data Binding and IValueConverter
WPF Data Binding and IValueConverter Why is it that when I use a converter in my binding expression in WPF, the value is not updated when the data is updated. I have a simple Person data model: My bin...
- Modified
- 6 Oct at 17:44
IValueConverter with MarkupExtension
IValueConverter with MarkupExtension Recently I read about an `IValueConverter` which also inherits from `MarkupExtension`. It was something like: ``` internal class BoolToVisibilityConverter : Markup...
- Modified
- 13 Feb at 14:1
'InlineAssignHelper' is not declared When Converting C# To VB.Net
'InlineAssignHelper' is not declared When Converting C# To VB.Net Here is my code in C#: ``` ListBox l = new ListBox(); foreach (string[] s in Regex.Matches(new WebClient().DownloadString("http://...
- Modified
- 12 Nov at 18:21
Equivalent in C# of Python's "struct.pack/unpack"?
Equivalent in C# of Python's "struct.pack/unpack"? I am a seasoned Python developer and have come to love a lot of its conveniences. I have actually known C# for some time but recently have gotten int...
- Modified
- 29 Jan at 21:50
How to Implement a BoolToVisibilityConverter
How to Implement a BoolToVisibilityConverter In my app I would like to toggle the visibility of an item in a StackPanel. My Stackpanel contains an Image and a TextBlock. How would I properly use a Boo...
- Modified
- 3 Dec at 07:19
Automapper custom many-to-one conversion
Automapper custom many-to-one conversion # Automapper Many To One conversion How to convert values of many properties from the source object to a single type in destination object? Can I use in this c...
- Modified
- 27 Nov at 20:34
Converting RGB to CMYK , Using ICC Profile
Converting RGB to CMYK , Using ICC Profile I'm about to converting RGB color to CMYK for printing purpose. scale of this conversion is Adobe Photoshop `( Image -> Mode -> CMYK color )` I tried 2 solut...
- Modified
- 23 May at 10:31
Custom JsonConverter WriteJson Does Not Alter Serialization of Sub-properties
Custom JsonConverter WriteJson Does Not Alter Serialization of Sub-properties I always had the impression that the JSON serializer actually traverses your entire object's tree, and executes the custom...
- Modified
- 8 May at 20:37
C# convert csv to xls (using existing csv file)
C# convert csv to xls (using existing csv file) i believe here are lot a discussion with this matter. but i read all post and try but it never work with c#. my goal is simple that i have existing csv ...
- Modified
- 5 Feb at 11:0