binding

Silverlight: How to bind DataGridColumn.Visibility?

I have an issue similar to the following post: http://stackoverflow.com/questions/983272/silverlight-datagridtextcolumn-binding-visibility I need to have a Column within a Silverlight DataGrid be visibile/collapsed based on a value within a ViewModel. To accomplish this I am attempting to Bind the Visibility property to a ViewModel. ...

Is basicHttpBinding really required when exposing a WCF service as a Web Service for .NET 2.0 Target Client?

I have a WCF service and am hosting it in a Windows Service. I tried to add a reference for the service from a Windows Form client built on .NET 2.0. I could get the Web Reference by pointing to the httpGetUrl="http://localhost:8002/HBAccess/help/mex" but when I check the Reference.cs---It only contains a namespace with nothing in it. ...

MOSS 2007: 3 additional assembly binding redirects, where are they coming from

Hi, I have a web.config of a functioning MOSS server with our custom settings and a web.config of a freshly installed MOSS. Here's 3 redirects I don't know the source of: <dependentAssembly> <assemblyIdentity name="Microsoft.SharePoint.Portal.SingleSignon" publicKeyToken="71e9bce111e9429c" culture="neutral" /> <bi...

What KVO notifications does NSArrayController look for ?

I have an NSTableView that binds to an NSArrayController, which in turn binds to an object property that returns an NSMutableArray. This array is listening for events in a separate part of the application and updates itself internally. The model object that owns an instance of the array does not make any changes to the array. I know th...

WPF - Change a button's content in a style?

I'm trying to do something similar to this: <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <Grid> <Button> <Button.Style> <Style TargetType="{x:Type Button}"> ...

WPF - Binding and RenderTransform

Hello, I would like to bind a scaleTransform to a converter passing the ActualWidth or ActualHeight. Here what I want to do : <Canvas x:Name="Canevas"> <Canvas.RenderTransform> <TransformGroup> <ScaleTransform ScaleX="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UIElemen...

Updating items inside ListBox

I have a ListBox bound to an observable collection of DiceViewModel. Whenever I click a button to add a new item, the ListBox displays the new item like I expect. Everything so far is working well. <ListBox ItemsSource="{Binding Path=AllDice}" DisplayMemberPath="Value"/> However, I have another button to roll all existing dice. ...

How can I bind an ObservableCollection to TextBoxes in a DataTemplate?

I am trying to successfully TwoWay bind an ObservableCollection to TextBoxes in a DataTemplate. I can get the data to display properly, but I am unable to change the list data through the UI. I have a Model class named 'model' which contains an ObservableCollection named 'List'. The class implements the INotifyPropertyChanged interface. ...

Adding web reference on client when using Net.TCP

Hi everyone... I am trying to using Net.TCP in my WCF Service, which is self hosted, when i try to add this service reference through web reference to my client, i am not able access the classes and methods of that service, can any have any idea to achieve this... How I can add web references in this case. My Service has one method (Get...

BInding for Listbox In WPF

Hi, I have a Main window with textbox. I enter some text and click enter it popups a window with listbox and displays the items matching the text entered in the Mainwindow. On selecting the item from the ListBox the text gets set in my textbox of Mainwindow. I am following the MVVM Pattern. I am not able to set the binding for my lis...

WPF Validation on Binding - ComboBox SelectedItem won't validate

Hi, I tried to write my own Validation rule for a ComboBox, the rule is attached to the binding for SelectedItem - However it dosn't work. I've got similar rules working on the Text property ... <ComboBox VerticalAlignment="Top" ItemsSource="{Binding Animals}" DisplayMemberPath="Name" > <ComboBox.SelectedItem> <Bin...

Adding a custom dependency property to a Control Template in XAML

Hi all, I have managed to get further with my read only check box after a bit of a break and now have the functionality I want in a reasonably elegant form. The problem is I have used a bit of a hack to make it work, although this is not a disaster it would be nice to do it better. To recap: I want a regular looking checkbox that does ...

Silverlight DataGrid.Celltemplate Binding to ViewModel

Hi. I am in the process of implimenting the MVVC pattern and am having trouble binding a property in the viewmodel from within a DataTemplate within a datagrid. If I have a textblock outside the DataTemplate in the column it works fine (since I am directly referencing the datacontext of the UserConrol, i.e. the VM) however from within t...

WPF ComboBox How to bind the selected item in code ?

I have a combo box which is populated on selection's from two other combo'. No problem I have this working. Problem is I only want to activate the Selected Item binding after this has happened. Here is my combo <cuc:ComboBox Name="GopLenTypeCombo" Width="240" Height="24" IsSynchronizedWithCurrentItem="True" ...

Multi Silverlight databinding

Does anyone know if its possible to do a binding and (if not how to achieve the same effect) on the same property using more than one binding in sort of a template ie A textblock that has Text bound in the expression "{Binding Path=Contact.Title} {Binding Path=Contact.Firstname} {Binding Path=Contact.Surname}" all in one text propert...

How to bind a Child collection element to a Parent command class through addChild convenience method (Spring MVC)

Hi, I have a domain class named Parent as follows public class Parent { public List<Child> childList = new ArrayList<Child>(); public void setChildList(List<Child> childList) { this.childList = childList; } public List<Child> getChildList() { return childList; } public void addChild(Child ch...

WPF : Define binding's default

Hi, In WPF, I would like to be able to template how my bindings are applied by default. For instance, I want to write : Text="{Binding Path=PedigreeName}" But it would be as if I had typed : Text="{Binding Path=PedigreeName, Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, Valid...

WPF - Binding in simple User Control

My problem is certainly right on my face but I can't see it... I am building a very simple user control - a 3D ellipse - and I expose two properties: LightColor and DarkColor. I need to bind these properties to the gradient in my user control, but it is not showing any color at all. Here's my code: <UserControl xmlns="http://schemas.mi...

.NET MVC Multiple Versions of Same form on One View

I have a section of my site where users can add addresses to their account. They may add as many as they need (shipping, billing, etc). I set things up so that after an address is added, the users sees the address in an update form with a "save" and "delete" button. The user can adjust any of the addresses they have added. The proble...

Form binding a HashMap using annotation based controller in Spring 2.5

Hello, I have been hitting a brick wall with this problem for some time and no amount of searching and reading has turned up an answer. I have posted on the Spring forums, but to no avail. Maybe someone here can help? I have a bean containing a HashMap which I have bound to form using the Spring:form taglib and Spring:bind. Binding to ...