binding

WPf : Binding with more than one property at a time

Hi, I have a list view in which I use binding to display my information. I use a simple data template. Is there a way to bind two data in one control. What I mean would to be replace something like : <TextBlock Text="{Binding LName}"/> <TextBlock Text=", "/> <TextBlock Text="{Binding NName}"/> to something like <TextBlock Text=...

jQuery Binding Woes

I have a function: function foo() { console.log('i run!'); } And a binding to a button: $(function() { $('#myButton').click(foo); }); I am almost positive that the console should not show 'i run!' until the button is clicked. I have no other #myButtons on the page (I have forple checked this), and yet foo continues to run when ...

Dynamic options dialog (using reflection)

Does anyone know of a good component (C# WinForms) which would allow creating an options (settings) form, given a custom class with a bunch of properties? I am not looking for something shiny, but something merely better than a property grid. I can easily take care of the visual part, but I simply don't want to lose time doing reflection...

GUI for Standard ML?

I started learning Standard ML recently out of curiosity. So what I know is that is has an efficient compiler (MLton) which allows us to freely use abstractions without worrying about performance. It would be perfect if I could do some GUI programming with Standard ML, too. Is there anything like Gtk, Qt, or WxWidgets binding for Standa...

BitmapFrame in WPF ComboBox

I have a dialog that lets the user pick a custom icon. Loaded icons are displayed in a combobox in which the user makes the selection. Here is the XAML code for the combobox: <ComboBox Style="{DynamicResource IconComboBox}" ItemTemplate="{StaticResource IconTemplate}" ItemsSource="{Binding Icons, RelativeSource={RelativeSource Fin...

Can't find al.exe for publisher policy in .NET 3.5

I am trying to create a publish policy for a .NET 3.5 DLL. I can't seem to make it work. I have tried using the Assembly Binding Log Viewer, it looks like it can't find the assembly in the GAC. I noticed however my AL.exe.config file says that is only supports .NET 2.0. Is there a 3.5 version of AL.exe? If so, where do I get it? I tried ...

Silverlight - Button Content does not refresh when binding to same instance but modified

I have a Button and the button content is binded to a custom class called MyClass Button button = new Button(); MyClass myClass = new MyClass() { A = 1, B = 2 }; button.Content = myClass; stackPanel.Children.Add(button); .... // later, on my running code Button button = (Button)stackPanel.Children[0]; MyClass myClass = (MyClass)button...

How to bind a WPF CollectionItem's element's Visibible state to it's collection index?

Assume that the below XAML is a style applied to a Path that is a visual element of an item data template for a collection, I want to bind to the collection in such a way that if this is the first element of a collection, the path is collapsed. How can I go about doing this? <Style x:Key="PathStyle" TargetType="{x:Type Path}"> <Styl...

css validation error moz binding?

Hi I'm a photoshop designer. I have some knowledge of css? Does anyone know what this validation error means? Am I missing something in the css? 38 marquee Property -moz-binding doesn’t exist : none URI : http://etcetc.co.uk /css/page.css 1085 input.postcode Lexical error at line 1081, column 2. Encountered: ”” (0), after : ”” } #si...

Binding a list of controls to a canvas

Is it possible to bind an OvservableCollection of Labels or and FrameworkElement to a canvas? If so how can this be implemented? ...

How to bind String to variable in Guice?

I'm new to Guice and here is a naive question. I learned that we could bind String to a particular value through: bind(String.class) .annotatedWith(Names.named("JDBC URL")) .toInstance("jdbc:mysql://localhost/pizza"); But what if I want to bind String to any possible charactors? Or I think it could be desribed this wa...

Binding to another control in Silverlight

Hi. Is there a way to bind to the instance of another control? Something like this: <Button x:Name="Foo" Content="Foo" /> <local:CustomControl OtherControl="{Binding Foo}" /> I've tried setting DataContext to "this" in the constructor of MainPage but it doesn't seem to work. CustomControl is defined something like this: class Custom...

Beginners Cocoa Binding Question

I just started with Cocoa Binding and I am working on my first application. Many samples and books use the NSArrayController but since I only want to bind a single Object and his properties to some Textfields I used the NSObjectController. I also don't have a document based application. My application is a simple one-window application....

WPF Combo Box Binding

Hello All I am trying to bind a combo box with some data. The problem is that I have the data in the combo box like this: <ComboBox> <ComboBoxItem>Item 1</ComboBoxItem> <ComboBoxItem>Item 2</ComboBoxItem> <ComboBo...

WPF ContextMenu with ItemsSource - how to bind to Command in each item?

Hi, I have a collection of objects (viewmodels) that represent menu items. Each of them have a command that I would like to execute when a MenuItem is clicked. If I wanted to do the menu statically, I do it like this: <ContextMenu> <MenuItem Header="{Binding Text1}" Command={Binding Command1}> <MenuItem Header="{Binding Text2}"...

jQuery Autocomplete: how to refresh list?

I have a form with a variable number of autocomplete fields that use the same select list. These fields are added and removed as needed. Whenever a parameter on the page is changed, I (try to) update the list for all the fields by first calling unbind() then autocomplete() with a new parameter added to the url. $('input.foo').unbind()...

JiBX binding - root object extends an object

Is even possible to bind an root object with super fields? I have quite complicated entity (entities) to bind. I am already lost with it :) This is my code situation: public class CoreRestWrapper { private Integer page; private Integer perPage; } public class UserWrapper extends CoreRestWrapper { private Collection<UserCV...

ASP.NET - ListView binding - Clarification

Hi, We have an ASP.NET application and using a ListView to display some user records from Database. Once we populate the ListView from database the user can edit few/more records of it. Now our requirement is that once the user edits a record we need post those changes to database but should not rebind the ListView (from database). ...

silverlight MVVM Viewmodel to view binding not working

I have a real simple example that works nicely without a viewmodel as i have a Item class that implements iNotifyPropertyChanged public class Item : INotifyPropertyChanged { private string _name; private string _desc; public string Name { get { retu...

WPF MVVM Routed Events

Hi everyone, There are a lot of discussions about M-V-VM and Command binding (RelayCommand) but not a lot has been covered on Routed Events binding to a handler in a M-V-VM pattern. I want to find what is the best approach. Here is an example of RoutedEvent binding using a custom event and a bound event handler to the VM. <Navigation:...