binding

WPF Binding, OneWayToSource, "Property Get method was not found."

I have a public CLR property defined in the code behind of a WPF Window. This property only has a setter defined. public SomeCustomType SomeProperty { set { someValue = value; } } I also have a ComboBox defined in the XAML of this WPF Window. This ComboBox has two ComboBoxItem objects defined. The Content properties of...

c# wpf binding listbox item change

Suppose I have a listbox with a couple of items, in my case audio recording inputs. I want to show the list of available inputs - each input is an item in the listbox. The inputs should be updated realtime, so each item in the listbox has an indicator of the recorded audiolevel in realtime. How would I go about databinging my listbox to...

wpf datagrid - binding a custom column

I have a datagrid with 4 columns. Build Defintion, command, arguments, and a delete button. I am building a ObservableCollection of a class called monitor which is the dynamicresource for the datagrid. The monitor contains the build definition, command, and arguments. All are string types. The command and arguments are simple as they are...

Data binding of an abstract class in spring-mvc

I've went thru Spring documentation and source code and still haven't found answer to my question. I have these classes in my domain model and want to use them as backing form objects in spring-mvc. public abstract class Credentials { private Long id; .... } public class UserPasswordCredentials extends Credentials { private ...

binding gridview to objects

My C# app contains a Data Object like this: public class Data { public class a {get;set;} public class b {get;set;} } public class a { public int first {get;set;} } public class b { public int second{get;set;} } I initialize my data when the application starts and my data changes evey time the app is running. I have...

Beginner - confused about binding and resources in WPF

Hi, I'm trying to learn WPF but I find it very difficult to understand bindings, the "resources" thing, and object creation. My background is in C++/MFC and C#-Winforms. My questions: Most of the examples I see in XAML (in MSDN and in two other WPF books I've read) use StaticResource in the binding expression. Are these related in an...

XAML binding on click

Continuing from my last question, I'd like to know how can I bind when a button is clicked (can this be done through pure XAML?) - or more simply, how can I do XAML-like binding through C# code? EDIT: The previous question containing info: I want to create a listbox that'll be bound to XPath, relative to the other listbox's currently s...

How to bind with dynamic resource and specifying a path

I want to bind to a resource (DynamicResource) and access properties on that resource, but is there a way to do that? (I want to visualize the default values from constructor in the xaml editor in visual studio. Those cannot be seen when referencing an object through DataContext nor through a property added on my Window class...) Not...

WPF : How to refresh model data values only when binding is active?

Hello everybody, I'm working on a application which is communicating by network to monitor another application's variables. The remote application has loads of variables, and I want to transfer only the variables that I'm currently watching on my user interface, to avoid overloading the network. I try to keep the architecture of my a...

PropertyChangedEventHandler PropertyChanged is null

i am implementing PropertyChangedEventHandler PropertyChanged and it's always null. property string is right donno where is the problem here is the code i am using public event PropertyChangedEventHandler PropertyChanged; protected virtual void OnPropertyChanged(string propertyName) { PropertyChangedEventHan...

Silverlight MVVM - Twoway binding not fired on Listbox click

Hi, In a Silverlight MVVMLight 4.0 application I have a listbox, a textbox and a checkbox. The listbox's ItemsSource is bound to a list of objects in the viewmodel. The listbox's SelectedItem is two-way bound to an object (SelectedActivity) in the viewmodel. Both the textbox's Text and the checkbox's IsSelected properties are two-way b...

XAML - Convert Value to Specific String?

Hey all, This should seem to be a fairly straightforward question, but I'm struggling a bit. I have a collection of objects that's I've bound to a Grid aling with a Series of GridViewColumns for each property of the object I'd like to display. One of the columns, however, is currently displaying as an int and I'd like to convert it ove...

Execute a usercontrol command from a viewmodel

I have a usercontrol with a command, what I would like to do is execute this command from the containing view's ViewModel. This would be easy to accomplish in the code behind, as I could just go "UserControl.MyCommand.Execute", but of course I want to be able to do this in the ViewModel. In theory, what I would like to do is bind the U...

DataBinding to classes

Possible Duplicate: Binding GridView to Objects My C# app contains a Data Object like this: public class Data { public class a {get;set;} public class b {get;set;} } public class a { public int first {get;set;} } public class b { public int second{get;set;} } I initialize my data when the application starts a...

WPF ComboBox DataBound Event?

I use ComboBox.ItemsSource=[some data collection] to bind data to the control. I want to hookup an event handler to the combobox so that whenever its data updated (or first time bound), I can do somthing. The problem is I can't find an appropriate event for it. The close guess is DataContextChanged. But that is not invoked when the ite...

WPF MVVM: TextBox needing format and Button with IsDefault set to True.

I have found this link about similar problem, except mine has the added twist of the textbox needing to have a formatted value after focus is lost. <TextBox Text="{Binding Value}" MaxLength="{Binding MaskLength}"/> <Button Command="{Binding ExecuteCommand}" IsDefault="True"/> After the user enters text into the textbox I would like to...

WPF - Bind DisplayMemberPath to a Function?

Hey all, Is there a way I can bind the DisplayMemberPath of combobox to a function? The object with which I am currently working has three properties I wish to use for presentation; FirstName, LastName, and MiddleName. I wrote a static method in a Formatting class to handle it. This method is called FullName and accepts three string ...

C++: Binding class functions in DLLs

I'm relatively new to DLL importing and function binding. Let's say I have a C++ project which is a GUI library written fully in OOP aiming to be used in games. My game project however is written in Delphi. I now want to bind Delphi functions to the ones in the DLL. I would know how to do this with simple functions, without classes lik...

subclassing a StreamWriter in vb.net

I'm trying to create a subclass of StreamWriter to write .CSV files, where no linebreaks are allowed in the fields. Amongst other things i replace the newline character and delimit stuff. This goes fairly well untill I try to end a line. I don't override or shadow StreamWriter.writeLine() As soon as I call writer.WriteLine() I end up...

bindingConfiguration not being read properly

I have a WCF service that returns a lot of data. So much so that I needed to increase the maxBufferSize and the maxReceivedMessageSize. My endpoint and binding look like so: <endpoint address="" binding="basicHttpBinding" bindingConfiguration="ExtendedBinding" contract="NAThriveExtensions.INableAPI" /> <bindings> <b...