valueconverter
Is the 'Self' construct useful in Silverlight/MVVM?
I\'ve inherited a Silverlight project with dubious code quality overa开发者_运维知识库ll, and there is one construct that I\'m not sure whether I should touch it:[详细]
2023-03-25 05:47 分类:问答Access Datacontext And A Property In Code Behind At The Same Time
I am using MVVM/WPF and trying to do something seemingly simple, but cant find a clean solution. I want to do the following:[详细]
2023-03-21 18:27 分类:问答How do you apply a ValueConverter to a convention-based Caliburn.Micro binding?
How do you apply a ValueConverter to a convention-based Caliburn.Micro binding? or do you need to use the {Binding} syntax?[详细]
2023-03-17 03:40 分类:问答WPF ValueConverter - Standard return for unconvertible value
Over the course of the last year or so I have seen many different value converters for many different purposes, from many different authors.One thing that sticks out in my mind is the wide variance of[详细]
2023-03-05 22:48 分类:问答How to deal with XAML valueconverter class explosion
As I write my WPF and Silverlight apps, one thing that is 开发者_JAVA技巧starting to bother me is the sheer number of ValueConverters that I seem to have to write to do my binding. Many of the convert[详细]
2023-02-19 22:09 分类:问答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 分类:问答Combining ValidationRule and Value Converters for a textbox
I have a simple problem that I just cant find a good solution for. I have a textbox bound to a double property value. The user can enter values into the textbox, but I only want to allow values betwee[详细]
2023-02-12 01:16 分类:问答Value Converter. Force WPF to call it only one time
let\'s say I have following code : <ContextMenu IsEnabled=\"{Binding Converter={StaticResource SomeConverterWithSmartLogic}}\">[详细]
2023-02-09 22:31 分类:问答Why do these two methods of loading images from SQL CE into a WPF Image produce different results?
In a ValueConverter, I was trying to convert a System.Data.Linq.Binary (SQL CE image) to a BitmapImage. This method works (image is show correctly on the form):[详细]
2023-02-06 10:07 分类:问答ResourceDictionary as ContentProperty in a ValueConverter
To convert Enums to Icons I use a value converter like that: public class IconConverter : IValueConverter[详细]
2023-02-05 01:01 分类:问答