binding

How Do I Bind a "selected Item" in a Listbox to a ItemsControl in WPF?

LowDown: I am trying to create a Document Viewer in WPF. It will allow the user to preview selected documents and if they want, compare the documents in WPF. So they can view them side by side. The layout is this: Left side is a full list box. On the right side is a Collection or an Items control. Inside the items control will be a co...

Are there any open source C# libraries for binding the properties from one class to another?

I don't remember which blog I was reading, because it seemed academic at the time, but there was a library being discussed where you could take a two concrete classes and bind the properties together if the names matched. Think ASP.NET MVC model binding. ...

WPF and LINQ to XML databinding to a listbox problem

Hi, I'm having trouble correctly binding a listbox to an XML datasource (text .xml file). I'm learning how to use WPF and LINQ to XML by following the Microsoft example with the books list, which binds to an inline XML source, shown here... http://msdn.microsoft.com/en-us/library/bb669149.aspx What I am trying to do is change this a...

Binding View Model from a form post with inner complex types.

Ok, i got a viewmodel as follows: public class PageViewModel { public Item Item { get; set; } ... public PageViewModel { } public PageViewModel(Item itemWebPage) { ... } } I use a form to edit this Item using a route like: /Controller/Edit/43 The controller uses this code: [AcceptVerbs("GET")] p...

WPF MVVM: how to bind GridViewColumn to ViewModel-Collection?

In my View I got a ListView bound to a CollectionView in my ViewModel, for example like this: <ListView ItemsSource="{Binding MyCollection}" IsSynchronizedWithCurrentItem="true"> <ListView.View> <GridView> <GridViewColumn Header="Title" DisplayMemberBinding="{Binding Path=Title}"/> <GridViewColumn Header="Name" Display...

wpf textbox tootip binding itself value

<Style TargetType="{x:Type TextBox}"> <Setter Property="Margin" Value="1"></Setter> <Setter Property="Background" Value="{x:Null}"/> <Setter Property="BorderThickness" Value="0"/> <Setter Property="ToolTip"> <Setter.Value> <DockPanel Background="Gray"> <TextBlock Text="{Binding Source={...

[Actionscript] How to make bindable property in Actionscript Project

I have seen a lot of codes regarding how to bind property in Flex project. Such as this code in Flex Help: var watcherSetter:ChangeWatcher = BindingUtils.bindSetter(updateMyString, myTI, "text"); However, I am creating Actionscript class within Actionscript Project, and I cannot import mx.binding.uti...

Binding a Style DataTrigger to a custom ICommand's status property

I have a custom implementation of WPF's ICommand, that executes its bindings in a BackgroundWorker, so that the UI stays responsive. I would like to display a custom effect while the bindings are being executed. For now, the effect is simplified to setting command source's IsEnabled property to False. Later, our designer will come up wi...

Why does this textbox binding example work in WPF but not in Silverlight?

Why is it in the following silverlight application that when I: change the default text in the first textbox move the cursor to the second text box (i.e. take focus off first textbox) click the button that inside the button handler, the property InputText still has the old value "default text"? What do I have to do to get the bindin...

Is there a performance hit to binding a relative source vs a direct object?

I'm currently working on my first WPF application, and I'm curious as to whether I'll hit a snag down the line with performance by doing something like this: Dim binding As New Binding("PropertyOnObject.Property1.Property2.Value") binding.Source = Object vs doing Dim binding As New Binding("Value") binding.Source = Object.PropertyOnO...

Android Service onBind -> onStart

Hello, I have a comprehension question about Android Services. I have a Service that performs background http operations and a Activity that should display the current state of these http operations. So I implementet the Binder interface and so on. I can call the bindService method and onServiceConnected of my ServiceConnnection is ge...

Accessing E4X nodes having special characters in name without breaking binding chain in flex.

I am using E4X to bind some values from xml in flex 3. There is a problem when xml tag's (or attribute's) name has special character in it: having xml content var xml:XML = <tag> <special-name att="val" /> </tag> special-name could not be accessed using xml.special-name.@att because it is interpreted as subtraction, on the other ...

WPF - Correct Syntax for Using Coverter with Current Binding

Hi, I have a collection of hex strings that represent colours and I am binding a combobox's ItemsSource to that collection. The combobox items are templated to have a filled rectangle with the relevant colour. I therefore need to use a converter to convert the hex value to a string. Easy enough. However, Blend is telling me that this ...

Bind enabled of NSButton to selection in NSTextView

I have a button that does something to the selected text in NSTextView. If nothing is selected then nothing happens when the button is pressed... so can the enabled property of a button be bound to whether or not some text is selected? ...

Save Jquery Object without losing its binding

Hi I have object created using jquery where each object has it's own binding. function closeButton(oAny){ var div = create_div(); $(div).attr("id","btn_"+$(oAny).attr("id")); var my_parent = this; $(div).html("<img src='"+ my_parent._base_url +"/assets/images/close.gif'>"); $(div).click(function(){ alert("do some action here")...

Symfony form values missing

Hi, I was writing a simple login form, everything works fine (validation etc.) but I can't get the values, there's my code: public function executeIndex(sfWebRequest $request) { $this->getUser()->clearCredentials(); $this->getUser()->setAuthenticated(false); $this->form = new LoginForm(); if ($request->isMet...

common-lisp: difference between binding and symbol

What's (in simple terms) the difference between setting a binding (LET) and symbols (=variables) in common lisp? ...

How to use a specific IP to access specific sites by?

My Company registered in certain services on the Web and are relying on the company's IP to use these services, Director asked me to allow some staff to enter these sites from outside the company, after authorized staff enter to comany's site. How could they use the company's IP to allow them to browse services sites? Do I need to use...

How to get rid of annoying HorizontalContentAlignment binding warning?

I am working on a large WPF project and during debug my output window is filled with these annoying warnings: System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid > fallback value exists; using default instead. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is...

WinSock client ports and router port forwarding

I have a server application that binds to a port and listens on it. I've set up the router to forward the data on this port to the server. Now, on the client side, I don't actually bind() the socket to any port, and I usually end up with a different port everytime. In that case, how can I prepare the router to forward that port to the c...