I would be surprised if this is possible, you may be able to kludge it using visibility based on group but I doubt it. I'd look into sub grids or two collections, one for groups and another for the sub elements and maybe template based on the group type!
Never underestimate the power of human stupidity
I created a control template inside of the xaml file where the control was. It worked. When I moved the control template and styles to the generic.xaml, they stopped working and I get an error "key attribute can be used only on a tag contained in an idictionary type property". I am fairly new to WPF and the code I am posting was modified from something that Blend created.
I'd appreciate some help getting it to work. Specifically, how do I add it to the generic.xaml and then how do I reference it in another file.
I need to convert a byte array generated from PDF into image and show it in the UI. I dnt want to store the image file anywhere in the disk.Conversion should be using in-built memory. I tried to convert byte into bitmap image using the following code. But image is not rendered in the UI.
using (MemoryStream ms = new MemoryStream(bytes, 0, bytes.Length))
BitmapImage im = new BitmapImage();
this.pdfImage.Source = im;
Is there anyother way to do this? Tools are also acceptable.
You can't convert a PDF into an image simply by converting it into a byte array. Without the conversion to an image, the BitmapImage identifies that it cannot display the byte array, so it doesn't attempt to display it. You might want to try this[^] library for the actual conversion (there's even a small sample on saving a PDF to a png file).
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
Even in asp .net i am unable to add the dlls. I have added libpdf dll and tried to run the code. I got the following error. Could not load file or assembly 'libpdf.DLL' or one of its dependencies. The specified module could not be found.
I am trying to create a basic Silverlight application that user can access via IE. The SL application will read some local registry settings (e.g. OS installed, ). Any direction/example will be greatly appreciated.
Last Visit: 31-Dec-99 18:00 Last Update: 10-Jul-14 19:28