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...
Will there be RelativeSource FindAncestor, AncestorType... in Silverlight 4?
...
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 ...
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...
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...
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...
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...
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...
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
...
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() {
...
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?
...
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...
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...
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...
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...
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=""/> ...
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...
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...
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 ???}"
/>
...
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...