binding

Binding a Converter to background border in order to alternate background listviewitem

Hi! I want to alternate the background of the listviewitems by binding a converter to the background border of each listview item. listview.xaml: <l:cBackgroundConvertor x:Key="myConverter"/> <Style x:Key="{x:Type ListViewItem}" TargetType="ListViewItem"> <Setter Property="SnapsToDevicePixels" Value="true"/> <Setter Propert...

Silverlight 4 RelativeSource FindAncestor binding

Will there be RelativeSource FindAncestor, AncestorType... in Silverlight 4? ...

temporarily disabling jquery events attached via other functions/plugins

Is there a way to temporarily unbind event handlers that were bound via a 3rd party (ie, I didn't bind them myself) and then restore them? For example, I'm using jQuery UI's tabs. I'd like to disable all the tabs default bindings until a certain point that I'd then like to bind them back up. So, for instance: jquery UI creates the ...

WPF Binding with invalid value for source

I have a textbox that binds to an integer property. What can I do so that when there is nothing no valid text in the textbox that the property gets set to 0. Really I think this can be extended so that if the binding fails then we set the source to default(T). I need a nudge in the right direction. TargetNullValue is the opposite o...

How can I make a control lose focus if the user clicks on something that's not focusable?

I've got an ItemsControl filled with dozens of items; each item is a bound text box and a couple of buttons. Because I want the user to be able to tab from text box to text box, the buttons have Focusable set to False. This works just fine. The only problem is that since the text boxes aren't losing focus, their binding isn't updating...

[Flex 3] Updating runtime created arraycollections, they all have the same source

Hello. I have a source collection (now a simple Array). At run-time I create ArrayCollections using the same array as the source (each collection show the same source, but they are differently filtered). My problem is, when a new item added to the source, the already created arraycollections wont updated if one of the property of this n...

WPF Binding issue (UNIQUE CONSTRAINT violation on UPDATE) how to reject changes?

ok please be gentle, I am new to WPF and LINQ - I have a strange problem here. I have a search screen and an add/edit screen. I have the add/edit screen bound to a 'CompanyContact' object and a search screen bound to a collection (CompanyContacts). I have a 3 column unique constraint (FirstName, LastName, CompanyId) on the CompanyConta...

HTTP 'System.InvalidOperationException' exception

Help. I get the exception below when I try to run my service. I tried running the CMD LINE fix netsh http add iplisten ipaddress=127.0.0.1:8439 to fix the problem. Problem is I get an IP address successfully added message but I still get the error below when I run my application. Any idea how I can deal with this please? An unhandled...

how update an image dynamically using data binding, need example/help

Hi all, new to developing with flex3/as3. I have a main.mxml application that lays out my application, it contains a "browse and upload" button. And contains an image to view the users uploaded image like so: <mx:Application <mx:Script> <![CDATA[ import model.myModel; import control.myControl; // Create data model ...

jQuery: multiple live event bindings

How do I do the live event (for when new content is injected) with the new way of doing multiple jQuery events: $('.foo', this).bind({ click: function() { //do thing }, mouseover: function() { //do other thing }, mouseout: function() { //do other other thing }, focus: function() { ...

Workflow Services Duplex Binding

Is Duplex Binding supported in windows Workflow Services and WCF integration? Can an activity "register" with a WCF service and then can a WCF service raise an event to the registered activity in the workflow when it needs to? ...

JiBX binding DTD schema in Eclipse

I have warnings in binding xml files: No grammar constraints (DTD or XML schema) detected for the document. I have done as is written in the answer here: http://stackoverflow.com/questions/982263/jibx-how-do-i-keep-using-interfaces-in-my-code (answer which is not accepted). But now I have an error in binding xml file: Referenced file...

How to bind form fields to model properties with different names?

Hello. I've got a search form that I want to use short query string parameters for (e.g. ?q=value&s=whatever&c=blah) and I'd like to use MVC model binding to get those parameters into my controller action. I can create a type that mirrors these short names, but I'd rather have a type that has more sensible names (e.g. q = Query, s = Sor...

Programming language decision for C++ legacy project workflow

I have quite a lot of C++ legacy code modules from my colleagues, each doing different jobs. Unfortunately they are poorly written and yes, all GNU C++ code running under Linux. I want to write a controller program to make singular C++ module a workflow for a very urgent demo. Also I need to write a front-end web-app allowing clients s...

Binding Super Header Columns to DataGrid Column Width in Code

I've created a grid of super headers that bind to a datagrid. The super headers stay positioned over their respective datagrid columns during resizing of datagrid columns. The XAML binding is great and everything works fine. The only problem however, is that I need to be able to construct this dynamically in C# code. Tried a number of...

How to get binded ListboxItems from ListView in WPF

Hi all. I'm pretty new to WPF so excuse me for any dumb question... I have a ListView with three columns that is binded to a XmlDataProvider source like the following: <XmlDataProvider x:Key="Properties" XPath="/Info"> <x:XData> <Info xmlns=""> <Property Name="Text" Value=""/> ...

Problems with Clearing InputText in a JSF Datatable

I'm trying to reset some input text fields, inside of a data table, using a cancel button. The issue I'm having is that, if I attempt to cancel it, but there are validation errors, it does not allow me to do so because it does validation first, finds and error, and outputs the error before it can rerender itself. The obvious solution is...

How can I get child tree nodes to appear in a WPF TreeView when binding to an ObservableCollection?

What do I have to change in the following code to make the "A Child Section" node appear as a child of the First Section and Second Section: The following code gives me a XamlParseException. XAML: <Window x:Class="TestTr32322.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.mic...

Use DataContext as CommandParameter in WPF

I want to pass the current DataContext (which is an instance of a ViewModel) as a CommandParameter on a WPF Button. What would be the syntax I should use? <Button x:Name="btnMain" Command="infra:ApplicationCommands.MyCommand" CommandParameter="{Binding ???}" /> ...

jQuery how to execute event only on the inner element

Is there is a smooth way to only let the inner element of a listitem do something? I read something here that using live complicates things. Summation: I have list elements that can contain a elements with a certain class. The inner a elements are bound to a live click event handler. The list items themselves have also a click event h...