When the menu opens, the CanExecute is called with a command parameter == null! However it is called with the expected parameter immediately before executing the command. But as I want to have the CanExecute return value to depend on the command parameter (enable or disable the menu item), I need the correct parameter also when opening the menu.
Following is a test application to show the bad behavior (see program output for the passed parameter). I would be happy if somebody could help me. By the way, when I directly bind the parameter in MenuItem, everything works fine, but I don't want this because I want to dynamically build the menu using MVVM later.
I have a ListBox which is bound to an ObservableCollection, using some (complex) ItemTemplate to display the data. It is guaranteed that there is a fixed number of items within the ItemsSource.
Every time, the ObservableCollection changes (e.g., an item is replaced), a new ItemTemplate is generated. Can I somehow avoid this and instead reuse the existing template object and simply bind this to the new data?
I've bind an XML file to a ListBox.
Everything's working right..but the XML file is read as a resource for now...what I would like is being able to read it from the users/appdata/roaming folder! (that's where user's data are saved..so I would like to be able to read from there too!)
So, how should I adapt that 'Source=""' part to reference the users/appdata/roaming folder?
Amazing, it would never have occurred to me to bind and xml file directly to the UI, I would automatically have loaded the file into a collection in the viewmodel (or code behind) and then bound the collection to the listbox.
I should also note I never use xml!
Never underestimate the power of human stupidity
Hi, I'm using Silverlight. Used Charts to display the values. I have applied Styles e.g FontStyle=Normal; for all reports. But while running the program, i'm getting text in Italic. Could anyone help me to resolve this.?
are you developing your app on vs studio or blend any way just check at text properties if checked embedded. I hade the same issue ı just embedded which font ı want so your silverlight forsing to use your choosed font to your clients
In beginners tongue, You might need to create a new variable that will act as the connector, so that if the value of the radio button is changed, the value of the variable changes and so the corresponding tab is activated.
Last Visit: 31-Dec-99 19:00 Last Update: 28-Jan-23 22:54