valueconverter
Value converter is not triggered within user control if used as list box item
To display a WPF list box, I use a user control (MessageRowTemplate) as list box item. The user contrul uses a value converter (MessageTypeToBrushConverter). For some reason, the value converter is on[详细]
2023-02-01 18:19 分类:问答How to bind a ConvertorParameter
I am trying to bind the value of a ConverterParameter.Currently finding it too tricky... Codebehind public static readonly DependencyProperty RecognitionProperty = DependencyProperty.Register(\"Reco[详细]
2023-01-22 06:12 分类:问答Updating an Observable Collection Based on a combobox selection
So I have an ObservableCollection of items called \"Class1\" and Class1 has a property named \"ID\". I use a datagrid from the WPFToolkit and bind to this collection.[详细]
2023-01-21 15:27 分类:问答IDataErrorInfo with ValueConverter
I\'m somehow doing it wrong, but I can\'t figure it out: I have a model like this: public class Person : IDataErrorInfo {[详细]
2022-12-24 11:43 分类:问答CultureInfo on a IValueConverter implementation
When a ValueConverter is used as part of a binding, one of the parameters to the Convert function is a System.Globalization.CultureInfo object.[详细]
2022-12-23 16:00 分类:问答WPF Value Converter Trigger Reconvertion at custom event?
Is there any way to force 开发者_如何学Pythonwpf to run the value converter again on a specific event?You can force WPF to update a binding by calling BindingExpression.UpdateTarget (and, for certain[详细]
2022-12-23 01:56 分类:问答When to use value converters in a mvvm application?
If one is implementing a WPF application using the MVVM design pattern, is there any situation in which to use value converters? It seems to me that value converters do exactly the same what the view[详细]
2022-12-19 14:52 分类:问答Displaying a custom value type in WPF without using a Value Converter
The system I\'m working on uses a large number of custom value types internally.I\'m working on a prototype UI using WPF.WPF does not know how to display the custom types.I know that I can write a cus[详细]
2022-12-18 11:03 分类:问答is it a bad idea to have static wpf value converters?
Instead of declaring the converter in the Resources, i can do something like IsEnabled={Binding Path=SomeProp, Converter={x:Static namespace:Conve开发者_如何学JAVArter.Instance}}\"[详细]
2022-12-16 06:48 分类:问答WPF binding to another property's binding in a style
I\'m not sure the best way to ask this question (sorry for the ambiguous question title), but essentially I\'d like to set the MaxLength property on a TextBox using a value converter that is passed in[详细]
2022-12-12 05:03 分类:问答