I'm having trouble filtering hierarchical data that's being displayed in nested xaml templates.
I've got a ObservableCollection<Foo> Foos, that I'm displaying in XAML.
Lets say Foo looks like:
class Foo
{
public ObservableCollection<Bar> Bars;
}
class Bar
{
public ObservableCollection<Qux> Quxes;
}
I'm displaying Foos with ...
I have a /Register [GET] Action in the controller that pre-poluates a view-model with a string and an integer and returns: return View(myModel);
I can see the string being populated in the textarea and the id being populated in a hidden input. Yet when the form gets POSTed, the string value is null and the int value is 0. I verified tha...
Hi,
I am trying to bind a dictionary's key to a row of the grid in a listbox, and bind the dictionary's value to another row of the grid. key's type is Book, a class thati wrote and the value's type is int.
i want to write the elements of the class and the integer value in grid.
Can you help me on this? I'm quite confused on determining...
I have a quite simple question:
I have a People property whose type is List< Person > and a Person has a Name and Surname.
I want to show the Name on my listBoxPerson and ı want to make bindng operations in code behind -dont want to use ItemsSource property-
Here is my code snippet:
Binding userBinding = new Binding();
userBin...
Imagine I have a TextBox that it's Text should be equal to the number of running processes in the machine.
How to make it to update without using timers? Is there a way using Dependency Property or Bindings?
...
I have a simple application which uses a BindingList<(Person)>, people, to store information about employees (Windows Forms). Person has several properties such as Name, DateOfBirth, etc and implements INotifyPropertyChanged.
The BindingList<(Person)>, people, is bound to a binding source. A DataGridView control is bound to this source,...
I am working on an NSOutlineView that I populate by bindings to an NSTreeController. The NSTreeController contains objects of my own type. Everything is working as expected (getting the correct number of rows and disclosure indicators in the right places) expect that the titles for each row are coming up blank. I have overridden
-(NSSt...
I have not been using "model binding" in my MVC application -- that is, I haven't tried the thing of "mapping" form inputs to one or more classes in the Action parameter list, in the manner that is described in many places. Instead, I just send over parameters for each individual form field, or use FormCollection.
I was thinking I might...
I have a combobox (ItemsSource="{Binding Path=AvailableDrives}").
The AvailableDrives property is defined like this:
public List<DriveInfo> AvailableDrives
{
get
{
return DriveInfo.GetDrives().Where(x => x.DriveType == DriveType.Removable).ToList();
}
}
It works OK, but i would like that i...
Hi.
I didn't find a solution for this but I think it should be doable.
I have a number of items in a collection and want to select some of them. Each item has a CanInclude property containing the elements that can be selected if itself is already selected.
Item1 CanInclude: Item4, Item5
Item2 CanInclude: Item3, Item4
Item3 CanInclude:...
Hi to all,
I want to bind taskid to createTask and onTaskChanged activity that are inside my replicator activity configured to run in parallel mode.
I have bound it to a workflow field created by me but it seems to have some concurrency problem because I have bound a different parallel block of code to the same field.
What is the cor...
When applying a binding redirect in the app.config of the test project. The runtime refuses to obey the redirect command and keeps searching for the old version of the assembly
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Msdcc.Common" publicKeyToken="9d9c15...
I have a control whose binding is set as OneWay.
How can I force the value to be re-evaluated in code?
...
Hi !
I have a property of type boolean presented with checkbox.
I want to change that to two radiobuttons that bind on the same property presenting the value true/false.
How can i do that ?
thanx
...
I'm trying to set a data grid's cell's tooltip to be equal to the text inside of a TextBlock in that cell. What I have so far is this:
<Style x:Key="CellStyle" TargetType="{x:Type DataGridCell}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="DataGridCell">
...
I have written some Python bindings for a third party library written in C++. When I use the library in Python it sends data over the network but it does not receive anything (it does both in C++). If I run the same test program in two different C++ processes it crashes because they are both trying to bind a socket to the same port.
Bu...
I am struggling with this duplex WCF service which makes calls to the service to get large amounts of data.
I am using wsDualHttpBinding which works but is very slow. I profiled and most time is being used by Serializers and authentication process. So I decided to use Binary Encoding and change the Security to Transport and since it is a...
I have a Usercontrol with a Button and TextBlock in it.
I would like to set the Background of both Button and TextBlock with the Background of the Usercontrol.(ie, I am trying to Bind to the usercontrol's Background property).
Please let me know how can I do this in XAML.
Is there any difference for this in Silverlight and WPF?
...
Hi
mount
/project on /mount_1 type none (rw,bind)
/project on /mount_2 type none (rw,bind)
/project on /mount_3 type none (rw,bind)
How to check with ruby(not shell!!) if some dir is mounted on /mount_X?
Is there something easier then opening /proc/mounts and looking for /mount_X there?
...
Hi,
I have Windows Identity Foundation based WCF service. I have issues with interoperability because it seems to be kind of hard to implement PHP or Perl client for such service due to all WS-* protocols.
Currently it works like this:
Client authenticates at STS (using username and password) and receives SAML token containing requir...