ivalueconverter
How to implement WPF ValueConverter that needs data from viewmodel?
i am writing an application that has a viewmodel and a usercontrol that displays data from this viewmodel. The viewmodel contains an entity \"Appointment\", and those[详细]
2023-02-12 22:59 分类:问答WPF grid IsEnabled using ValueConverter
I have a WPF window with a Grid and a TreeView. The datacontext for the Grid is bound to the selected item on the treeview. However, because not all treeviewitems are applicable, I want to disable the[详细]
2023-02-09 15:50 分类:问答Prism v4: Does it already include a way to handle value converters (as singletons)?
I found this little snippet of code on the web: public abstract class ConverterExtension<T>: MarkupExtension, IValueConverter[详细]
2023-02-05 20:59 分类:问答IValueConverter data binding
I am teaching myself some .NET programming and I’m currently trying to build a tag cloud control in WPF. The aim is to have 2 listboxes on a window with the first listbox displaying a list of “Conta[详细]
2023-02-04 07:31 分类:问答workflow 4 activity designer IValueConverter
Lets say i have an activity with InArgument<int> ProductId I\'d like to expose in the activity designer a combobox to show all Products and the user can select a product.[详细]
2023-02-04 01:09 分类:问答using IValueConverter with current DataContext in two-way binding
I\'m having issues with a converter i\'m using to convert between a string and our timeformat. The converter itself works fine and is implemeneted like this:[详细]
2023-01-30 10:09 分类:问答IValueConverter - Get source object at Convert method
Is there a way to get the source object in the Conv开发者_开发问答ert method of a Converter class. I know how to get the converted property but is it possible to get the object that the property belon[详细]
2023-01-29 22:44 分类:问答Binding ObservableCollection<> to a TextBox
I have data comming back from web service in the form of a ObservableCollection<string> I want to bind the collection to a read-only TextBox so that the user can select and copy the data to the[详细]
2023-01-28 03:02 分类:问答How to Bind to TextBox Background color
I have a text box for user to enter 6 character hex color value, a validator & a converter attached to it. Up to here, everything works fine. But I want to bind a textbox\'s Background color to th[详细]
2023-01-23 12:37 分类:问答How to only use Converter when input is valid
I have a text box for entering hex values for specifying color. I have a Validator that validates that the string is a valid hex color value. And a converter that converts a string like \"FF0000\" to[详细]
2023-01-23 02:04 分类:问答