binding

let and flet in emacs lisp

Greetings. I wonder if there is an emacs lisp veteran out there - I don't know if you would call it the canonical formulation, but to bind a local function I am advised by the GNU manual to use 'flet': (defun adder-with-flet (x) (flet ( (f (x) (+ x 3)) ) (f x)) ) However, by accident I tried (after having played in Scheme for a...

ASP.NET MVC - EntityFramework and Binding to a List

I am currently using the EntityFramework to bind my ASP.NET MVC project to a MySQL database and one of my entities, Product, has an Images property containing a collection of ProductImages. I have built a form to allow the user to modify a given Product and this form includes fields for editing all of the images associated to that Produc...

Edit Request.Form before Binding

Is there a way to edit the Request.Form before the action method binds to the parameters? I already have a reflection call to enable editing of Request.Form. I just can't find a point of extensibilty where I can alter it before binding occurs. UPDATE: So it looks like I was editing the Request.Form and didn't realize it. I was verif...

Why does the cursor keep jumping to the end of my TextFieldView while typing?

I have a sproutcore 1.0 page with SC.ListView items and a SC.TextFieldView bound to the same property of a model. When I type at the end of the TextFieldView everything works as expected. If I position the cursor in the middle and start typing the cursor jumps to the end. What could be causing this? I suspect that the jumping is happen...

How do I bind programatically in the view subclass of my NSCollectionView?

I've successfully created an NSCollectionView and added a label to the view prototype in IB, bound to a property of my represented object. I now want to programatically create an NSButton and NSTextField with the NSTextField bound to a property of my represented object. When the button is clicked I want to show and hide the NSTextField...

WPF Grid data binding

I have a grid with just 1 row. I would like the amount of columns to be determined by the data context of the grid. For instance, if I have a list of names exposed in an ObservableCollection property called 'Names' that return "Fred", "Joe", and "Anne", I would like three columns in the grid, each with a textbox bound to each name. ...

How to toggle a WPF Grid column visibility

I'm having some trouble getting this to work in a WPF app I'm working on. Basically, what I'm after is something like the Task pane in an MMC: The app has three columns in the main part of the display. I need a column on the right side which is resizable. I presume this means using a Grid with a GridSplitter but anything that works ...

Sort WPF ListView with a DataTemplate instead of DisplayMemberBinding

I am working an a sortable WPF ListView and I made a lot of progress already. It's not so hard since there is a lot of stuff on the internet already. But there is a little bit of information I am still missing. With a Colum like that: <GridViewColumn Width="200" Header="Fahrzeugname" DisplayMemberBinding="{Binding Name}"> I can sort ...

Can I use WCF duplex binding to relay message?

I have a Client Application, a server and another client, lets call it third party. I have a callback interface as part of my contract that is implemented both by the third party and the client. The third party will call a server operation(method) then the server will trigger a callback but instead of calling the callback of the third ...

How to bind list to dataGridView?

Hi everyone, I seem to be running around in circles and have been doing so in the last hours. I want to populate a datagridview from an array of strings. I've read its not possible directly, and that I need to create a custom type that holds the string as a public property. So I made a class: public class FileName { privat...

WPF Binding Question

Here's the situation: Using WPF I have an object set to the DataContext of a window. A listview on this window is bound to display a list of users which corresponds to a property in the DataContext(Users). Whenever a A User is chosen I set the CurrentDisplayedUser to this user to the selected object. I have another list box that's...

How does my View know about its Presenter without DataContext?

In XAML, I'm displaying all my presenters as tab items: <TabControl.ContentTemplate> <DataTemplate DataType="x:Type views:SmartFormAreaPresenter"> <views:SmartFormAreaView/> </DataTemplate> </TabControl.ContentTemplate> I've noticed that each View has access to its respective Presenter's properties even without me ever...

jQuery Bind event firing the event

I'm calling the first function below to bind the second function to the onClick event. The strange thing is that calling the first function results in firing the second function. The LinkName parameter in the first function is a name of a table td element - probably not relevant. function EnableExpand(LinkName, i) { $(LinkName).ad...

Linq to Sql binding problem.

Hello I have a problem for binding to gridview... Assume I have two table : Album and Photo each has 'Name' column (Assume they are the same name). When I bind the Photo using Linq to Sql, I can reference the data like this DataBinder.Eval(Container.DataItem, "Name"); but if I want to have the Name of the Album is it possible to fetch ...

How do I elegantly handle using a PasswordBox in WPF?

I'm aware that you can't Bind to PasswordBox.Password in WPF. How do I handle a form that contains one? All other controls on the form are bound to properties on a business object, but I have to manually set and retrieve a password property whenever the input changes. I know that others have created custom controls that allow binding to...

WPF Binding Help

I haven't used WPF that much so the solution to this is probably pretty easy. In the ide I'm developing it will have multiple controls(text editor) each being hosted in a tab, much like VS does for each source file. When the user clicks new the "host" creates a new EditorWindow(a usercontrol), creates a new tab, and tells the tab to di...

UserControl with Exposable Command on WPF

Hi, I'm creating a Toolbar with some buttons, and I want each button to execute an different command according to the ViewModel attached to it's DataContext, so I created if like this: public readonly DependencyProperty NewCommandProperty = DependencyProperty.Register( "NewCommand", typeof(ICommand), typeof(VirtueGridToolbar)); ...

Condition Binding Attribute Not Working?

I've been struggling with this code for some time now and can't seem to find any complete answers to my question. I've created a small sample to illustrate the problem: <ListView > <ListView.ItemsPanel> <ItemsPanelTemplate> <StackPanel Margin="0,0,20,0" IsItemsHost="True" /> </ItemsPanelTemplate> </ListView....

What does bind and unbind mean in jquery?

What does bind and unbind mean in jquery in idiot slow learner terms? ...

WPF Binding when a button is pressed (Explicit binding) has always BindingExpression at null?

I have a textbox that contain a string that must be binded only when the user press the button. In XAML: <Button Command="{Binding Path=PingCommand}" Click="Button_Click">Go</Button> <TextBox x:Name="txtUrl" Text="{Binding Path=Url,UpdateSourceTrigger=Explicit, Mode=OneWay}"></TextBox> In the code-behind: private ...