I have EmployeeList as a observableCollection of Employee Object.
The Employee object has Salary.
I want to display few values like average Salary of the Employees in XAML, and the UI field should be automatically updated when an item is added to the List or When Salary field is changed in any of the items updated.
This can be achieve...
I bind a TextBox`s Brush Property to an IsValid Dependency Property in a UserControl with a BoolToBrushConverter. My IsValid would need 4 states because I need 4 different brushes to return from the converter. Is there another way using strings? instead of bool, could that work?
...
I create my windows databainding infrastructure with MVVM pattern. I have method which return data for my DataGrid. Problem that I want some columns in DataGrid use Converter (IValueConverter) but I bind my DataGrid to the data directly. I can't strongly type columns specification in xaml because number of columns can be different. Also...
Hello everyone,
I'm trying to maintain someone else's code right now where that person is a WPF expert. I, on the other hand, am not. :)
The code uses the IValueConverter to convert a state enumeration into a boolean which governs whether or not a UserControl is displayed on the screen.
I've discovered a shortcoming that a single en...
I am using Blend 4. I am having a list item which i am binding to sample dataset VM using this approach, which works fine. The issue is with the IValueConverter applied to binding. Blend doesn't seem to process the converter in design time UI. Is it possible for Blend to process data using converters in design time?
...
I have a Silverlight 3 control where I am using an ItemsControl to display a list of items. I have implemented a "filter" or "search" textbox that allows the user to enter a search term in a textbox on the control that will limit the items displayed in the ItemsControl to ones that contain the string entered in the textbox. I have been...