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...
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...
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...
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 ...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 ...
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...
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...
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...