ivalueconverter
Moq + Unit Testing - System.Reflection.TargetParameterCountException: Parameter count mismatch
I\'m tring to use a lambda with a multiple-params function but Moq throws this exception at runtime when I attempt to call the mock.Object.Convert(value, null, null, null); line.[详细]
2023-04-12 04:15 分类:问答Accessing user control properties in IvalueConverter | silverlight 4
I am trying to write a custom silverlight control which represents a water tank. It has two dependency properties, liquidLevel and liquidCapacity, and I want to pass both of these parameters into a co[详细]
2023-04-11 22:14 分类:问答Can a value converter execute on different thread?
If my Binding.IsAsync = true, then why doesn\'t my ValueConverter execute on the same\"supposingly non-UI\" thread? 开发者_开发技巧[详细]
2023-04-11 03:43 分类:问答Binding boolean DependencyProperty to a button's Visibility property in Generic.xaml
I have a class called CarSystemWindow that descends from Window, and it has a CanPinWindow boolean dependency property:[详细]
2023-04-10 00:27 分类:问答ConverterParameter -- Any way to pass in some delimited list?
Basically, if I have: <TextBlock Text=\"{Binding MyValue, Conv开发者_运维百科erter={StaticResource TransformedTextConverter},[详细]
2023-04-05 17:35 分类:问答Apply static resource style to UIElement created in converter
I am binding the ItemsSource of an ItemsControl to a Textbox and then using a converter to create UIElement objects based on the Text property of the Textbox.I also have a static resource style tha开发[详细]
2023-04-03 01:50 分类:问答WPF - Return image from converter using pack URI
I would like to create a WPF converter to return a ce开发者_如何转开发rtain image depending on a boolean value.[详细]
2023-03-29 11:30 分类:问答Get the Source value in ConvertBack() method for IValueConverter implementation in WPF binding
I am binding a dependency property to textboxex in WPF. The property is a string that has some values separated by \'/\' (example: \"1/2/3/4\" ). I need to bind individual values to separate textboxes[详细]
2023-03-28 08:04 分类:问答Bind a Converter defined in the code behind
As part of the solution refactoring I had to move the Converter in to a Dependency Injected UI service. Now my ValueConverter is present inside an Instance. Earlier I had defined a local resource and[详细]
2023-03-28 02:08 分类:问答WPF DataBinding Very Slow when I use Convert to format a date
I\'m writing a simple app to display some data on a DataGrid.The data is just a measurement (float) and a timestamp.The timestamp a uint and is in seconds since 2000.[详细]
2023-03-28 00:38 分类:问答