binding

Silverlight Command Binding a button dynamically? MVVM

Not sure I'm designing this correctly (guidence is appreciated!), but I have a search view which is called from many places. Search screen has has it's own ViewModel. When a user selects something from the search screen (after searching :), I need to send the selection to whatever view requested the search to take place (search screen ...

[Objective C: "Bindings"] How can I bind an NSTableView with 2D data at the backend ?

Hello there, I am new to mac, and I am in trouble. I need to bind NSTableView to 2D data at the back end so that I can have dynamic update of data at the front end. I have 5*10 data at the back end that I want to bind it to NSTableView. I have tried almost every approach, read every article, implemented examples from the internet but it ...

jQuery: method works correctly through .click, but not when run direct from document.ready

Hi folks, I have a piece of jQuery code which - in theory - scrolls down to a specific part of the window depending on what's after the hash in the URL tag (myaddress.html#wheretoscroll). The code called is this: $(document).ready(function() { anchor = unescape(self.document.location.hash.substring(1)) if (anchor) { $....

Can somebody please explain this common binding pitfall to me? (using the wrong bindable event name)

I refer to this site link text Using the wrong event name in the [Bindable] tag can cause your application to not bind your property, and you will not even know why. When you use the [Bindable] tag with a custom name, the example below looks like a good idea: public static const EVENT_CHANGED_CONST:String = "eventChan...

Binding Menu ItemsSource to a recursive data structure

I have a simple data structure (the properties are of course Dependency Properties): class MenuData{ public string Header {get; protected set;} public ObservableCollection<MenuData> Items { get; protected set; } } ObservableCollection<MenuData> Menus {get; protected set;} I want to bind the Menus property as Menu element Item...

binding texbox with list of items

Hi guys, i am a very beginner in WPF. I am trying to create my first app for Windows Phone 7. I have a Detail View and the .cs class associated to the view. In my view i have : <StackPanel Grid.Row="0" Grid.Column="0"> <TextBlock Name="textBlock1" Text="..."/> </StackPanel> In the .cs: ... listAgences = new List<Agence>(...

ASP.NET, what is a datagrid bound to after postback?

I have a gridview full of telephone numbers. To populate the gridview I bind the gridview's datasource to a List<> of telephone numbers. I do this when the page is first loaded, but not on postbacks. I want the user to be able to delete some of the telephone numbers, and then, if they want, click a Save button, and this will update th...

populate jQuery UI accordion with xml, binding problem

Hi, I am populating jQuery accordion from simple xml file, I can get my data and append it as html to simulate accordion markup. Then I call for accordion, it won't work! I guess the problem is binding newly created data to DOM, I have tried .live() and .delegate with no success. How should I proceed? Here is simplified example of my...

WPF MVVM formated Text Binding

I'm Using MVVM in WPF (.Net 3.5) and I need a control that supports formatted text, bold & italics, and I can bind to easily. When I say easily I mean something like Text ="{Binding FormattedText}" and that's it. RichTextBox blows for binding. Any Ideas? thanks ...

WPF Binding Formatexception

Hi, In a C# Wpf application I have an XML Binded datasource. I want to update some xml like this: loop.Innerxml = "false" This value is binded (as a boolean) to a control. However when doing this, a formatexception comes up saying that a string is not a valid boolean (logical). However if the false is not entered as a string, I can't...

Data binding in DataGridView

I've created a database (which contain some tables) in SQL Server 2005. In the Server Explorer of Visual Studio 2010 I have connection with this database. And I've added to form DataGridView object. In the DataGridView Task I've chosen the Data Source. Visual Studio screenshot: http://img221.imageshack.us/img221/8573/snapshot4c.png ...

Simple problem with OneWay Binding in WPF

Hi, I have simple class with one property, this class implements interface INotifyPropertyChange. public class SomeClass : INotifyPropertyChanged { private string _iD; public event PropertyChangedEventHandler PropertyChanged; private void NotifyPropertyChanged(string info) { if (Prop...

WPF Ivalueconverter empty values

Hi, I use a Ivalueconverter to convert a string to a boolean using an xml datasource. This works fine until I manually change the xml like so: myelement.InnerXml = "true" I then receive a formatexception saying the string is not a valid boolean, I check the value that goes in to my converter and it is equal to "" Here is my converter...

Search databinded listboxitem from XmlNode

Hi, I'm working on a c# wpf app in which I databind a listbox control to an xml datasource. Now I know that I can find the XmlNode that is linked to a listboxitem using datacontext. But now I want to go the other way around: Find the associated listboxitem when I have an xmlnode.. Any advice? ...