Hi,
I have a custom combo box control derived from existing WPF combo box. This custom combo has a DP called AssociatedEnum, once set it evaluates the enum menbers and adds them to Items collection..
However all this enumerating over available values, is done in Combo's loaded event
Is it reasonable to assume that all the bindings on De...
Hi,
How can i invoke a control with parameters? I've googled this up, but no where to find!
invoke ui thread
This is the error i get:
Additional information: Parameter count mismatch.
And this happens when i do a simple check whether the text property of a textbox control is empty or not. This works in WinForms:
if (this.textboxlin...
ys,
I need help understanding why a field is not being updated:
I have two sample class both deriving from Observable that simply implements INotifyPropertyChanged.
public class ClassA : Observable
{
string p1;
public string Property1
{
get { return p1; }
set
{
...
I have a list of tuples pairing two pieces of data... I'd like to bind the list to a data grid. For display, it works fine... but if I try and modify an entry, it says "A TwoWay or OneWayToSource binding cannot work on the read-only property 'Item1'"... presumably Tuples are immutable in .NET 4.0. Is there an easy way to bind to pairs ...
I am receiving an error message "Recursive call to Automation Peer API is not valid" when loading a datagrid with a datatemplatecolumn containing a combobox column. The error ends up caught in our unhandled exception code. This seems to be an issue on my machine, and google has provided no source of guidance on resolving the issue. The i...
I have the following ListView:
<ListView Name="listView">
<ListView.View>
<GridView>
<GridView.ColumnHeaderContainerStyle>
<Style TargetType="{x:Type GridViewColumnHeader}">
<Setter Property="Visibility"
...
I have a wpf datagrid with 2 columns (ProductID and Description). ProductID column is a combobox and the Description is a Textbox. On the SelectionChanged event of the ProductID, I want to assign a value to the Description column. I need to know how to assign the value to the Description textbox for the row of the combobox that fired ...
I found myself using a lot of individual bindings to my App class for storage of properties and this led me to a untracable stackoverflow exception. I've now decided I would move those properties to a separate singleton ApplicationInfo class but I am having some issues with the binding.
If I bind directly to a member property of my cla...
Hello.
Is there a way to modify a UIElement's contents?
I have something like this:
System.IO.FileStream rdr = System.IO.File.OpenRead(xamlFilePath);
System.Windows.UIElement uie = (System.Windows.UIElement)System.Windows.Markup.XamlReader.Load(rdr);
And when I run the debugger and add uie to the "Watch" window, it gives me the foll...
Hi All,
I am using WPF PropertyGrid (http://www.codeplex.com/wpg) in my project.
But i have some problems with this component.
1) I can show my IList collections in a ComboBox. But i can't retrieve selected value. How can i get selected value?
2) Enums are automatically shown in combobox, but i can't retrieve selected value like #1.
...
I created a form in WPF and it looked great. When I opened it in Visual Studio 2010, it look alot different than what I created.
Any ideas why this would happen? Should I ignore how it shows up in VS? This makes me wonder if either is how the user will actually see it.
Any suggestions?
Thanks again!
Eroc
...
Hi,
I'm working on a c# wpf app in which I want to do something with audio. the irrklang audio library provides me with a pcm decoded 16 bit byte array.
I want to create a timeline control which shows the waveform along the timeline with an overlaying rectangle which the user can drag and click/drag the left and right side to increase...
I am invoking a webservice I can see the service invoked successfully in fiddler and it also returns XML. But for some reason on the .NEt side the returned object is always null. Anyone else face similar issues?
...
Hi,
I'm working on a c# wpf app. I'm looking into a control with two rectangles: one inside the other. I want the user to be able to drag the inner rectangle, resize it and if possible rotate it as well within the bounds of the outer rectangle. The values should be bindable so I can store the values in my datasource when updated.
Are t...
I need to apply grouping to rows in a DataGrid that is nested in a TabControl. Both the DataGrid and the TabControl are databound. The outermost control is bound to a ViewModel that exposes a collection of pages that is bound to the TabControl. Each page exposes a collection of lines that is bound to the Grid.
I am tried to follow patt...
For example, say I am maintaining an inventory of the different produce my friends have and want the following table:
| People | Fruit | Vegetables |
| | Apple | Orange | Berry | Carrot | Lettuce |
| Adam | x | | x | x | |
| Bob | x | x | | | ...
I have a WPF application and I need to know how to center the wain window programatically (not in XAML).
I need to be able to do this both at startup and in response to certain user events. It has to be dynamically calculated since the window size itself is dynamic.
What's the simplest way to do this? Under old Win32 code, I'd call the...
How to seperate between items BY Lines in ListView control in WPF ?
...
Hi there
I would like to design a light "members listing/editing" app in one and only window.
My guess was that the best and simplest way to achieve this would be to have the "listing" part (mostly a datagridview and some search stuff) on a panel, and the "editing" (new member or modify member) on another, each panel hiding the other d...
I am using the ValidatesOnExceptions=true method of WPF validation. This involves throwing an exception in the source's property setter method. It works but the debugger always breaks when the exception is thrown. I am guessing that this is because the exception is not caught directly in my user code but it is caught in the WPF validatio...