".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
I have a wpf datagrid which I am using with the grouping feature. Is there any way to show different columns within the grid based on the grouping property. So if I have groups A and B, can i show columns 1,2,3 for group A and columns 4,5,6 for group B?
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.
My program has a ListView, which is connected to an ObservableCollection.
If I add values to the ObservableCollection, I can see them in the ListView.
But if I change an object in the ObservableCollection, the change is not seen in the ListView. The modification is made by changing the name in the textbox side and clicking the "CAMBIA"