I 'd like to creatre a gallery control just like the built-in gallery in Windows Phone 7. I put a listbox in the grid to show the thumail image, but it cost many memory. And crashed soon after I loaded more than 80 pics(640*480). Could anyone give me a help?
In opinion it is not rocket sience but it does not work. I can set a breakpoint within the Converter(TelegramGroupStateToColor) and it will be hit and the correct color will be returned, but the backround remains transperent.
Has anybody an idea what I am doing wrong?
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