The design I've come up with for filtering is awkward at best, and buggy at worst. The idea is to have a base class to support a pick list, and let subclasses add on additional filtering logic as needed.
What is particularly confusing to me is how to trigger the view to filter as various filtering criteria change (see _ApplyFiler(), bel...
I've been doing some work in WPF, and I for the most part have my bindings working, but I need a scope clarification here. I've run into some seemingly simple operations that require silly binding workarounds and I believe a lot of it has to do with scope.
Example #1 - Out of visual tree, binding to parent.
<ComboBox x:Name="Combo1" It...
I have a databound WPF ListBox with a custom itemtemplate -> datatemplate. Part of that template is also a ListBox.
On certain event I'd like to loop through all textboxes in the ListBox and retreive their values.
Is this possible?
...
I need to learn prism (for evaluation to use at my work).
I am confused on the version I should be using to learn with. I see from the site that there is a version 4.0 that is having active drops. I also see that the previous version is 2.2.
Which version should I learn on? I don't want to learn 2.2 if 4.0 is a drastic change. Howe...
Guys,
Anyone know why Shift+Tab not working on WPF TreeView?
I'm desperate, couldn't find anywhere a clue on how to solve this?
Is this unsolveable?
Forward navigation works just fine :-(
PLS HELP...
Gili
...
I have used an ObservableCollection with WPF for binding and this works well. What I really want at the moment is a Dictionary like one, that has a key that I can use, so effectively like "ObservableCollection".
Can you suggest the code that could be used to provide such an ObservableCollection? The goal is to have a Dictionary like s...
I'm using a WPF data grid to bind to an object (i.e. not a database). I have the horizontal alignment on Stretch. I currently have it within a Border, which is within a Grid.
However when I run the application the DataGrid has a blank column and grid showing. That is say I have 5 columns & 5 rows, then there is a blank 6th column and...
I have Visual C# 2008 Professional and have developed the first half of a C# application (console mode) with the second half in progress now (GUI).
I'm looking for an easy path to creating an installer for it. What are the steps that need to be taken to produce a professional installer?
There's a similar question here regarding the Exp...
Is it possible to pass a parameter to the ViewModel constructor? I would then use this parameter to initialise a property and/or do other operations in the ViewModel.
With WinForms I could do
public MyForm(MyParamType myParam) {
MyFormProperty = myParam;
//etc.
}
How do I go about doing something similar in the MVVM pattern ...
I am binding a WPF application DataGrid to an ObservableCollection via the DataGrid's "ItemSource". Initially the DataGrid does come up with headings and values, however the upgrades made to the ObservableCollection are not reflected? (i.e. when I come back programmatically and increase the "Total" value) The ObservableCollection I a...
I have a populated telerikGridView:RadGridView. I am dragging nodes from a Treeview into this radgridview. How to I get (capture) the row & column of the cell where the node is being dragged into? the source is a telerikNavigation:RadTreeViewItem (i would extract the header text of course) and the target is just a telerikGridView:RadG...
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 have a WPF list view that is bound to a list of objects. One of the items to be displayed is a calculated property (read-only, returns a string) that takes a small amount of time to calculate. When the window initially loads (or anytime the UI is updated with a Notify event) the UI will hang as this data binding occurs. What I was w...
I'm trying to ensure that my error adorners don't get clipped by my scrollviewer's bounds. I have a series of textboxes that are at the edge of a fixed width scrollviewer (no horizontal scrolling, only vertical). I then have adorners that flag textboxes with errors.
The problem is that the adorners get clipped at the edge of the scroll...
I have a weird issue with DataGrid in WPFToolkit (.NET 3.5) and the built in version in .NET 4.0:
When creating a keyed DataGrid-style with an explicit setter for CellStyle to another keyed style it works as suspected. But when also creating an keyless style for DataGridCell it will override the explicit CellStyle-setter in the DataGrid...
Hello
I work on a WPF application that has multiple canvases and lots of buttons. The user cand load images to change the button background.
This is the code where I load the image in the BitmapImage object
bmp = new BitmapImage();
bmp.BeginInit();
bmp.CreateOptions = BitmapCreateOptions.IgnoreImageCache;
bmp.CacheOption = BitmapCache...
I need to change the string format of the DatePickerTextBox in the WPF Toolkit DatePicker, to use hyphens instead of slashes for the seperators.
Is there a way to override this default culture or the display string format?
01-01-2010
...
Hi Experts,
I have a user control which is having a listview inside it. The SelectionChanged event of this list view is handled inside the user control. The code for the same is as follows:
private void lstvMyView_SelectionChanged(object sender, SelectionChangedEventArgs e)
{...}
I want to call this handler again fro...
Hi, I am searching for a design pattern, open source platform or what can else use to develop widget for wpf applications. I need to develop a host application that could load predefined or custom widget and this widget could interact with host application or could communicate with other widgets. User could add new widget without quiting...
Hi,
I want to bind a List to a WPF combobox in xaml. Wondering what is the simplest way to do it.
(The reason behind is I want to maintain the years as integer rather than doing the type conversion from string to int. I get a list of years(2009,2010,2011) from the DB and want to be able to bind this to the combo and get the selected ...