Ask a questionAsk a question
 

QuestionWPF and custom XMP attributes

  • Wednesday, July 29, 2009 12:36 AMc.glasgow Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    Hi all.

    I'm attempting to define a custom xmp schema using BitmapMetadata, and have run into a bit of a hitch.

    The short version of my code looks something like this:

    BitmapMetadata meta = SomeBitmapFrame.Metadata.Clone() as BitmapMetaData;
    meta.SetQuery("/xmp/dc:MyCustomDC", new BitmapMetadata("xmpbag"));
    meta.SetQuery("/xmp/dc:MyCustomDC/MyCustomProp", "test string"); // throws exception "Property cannot be found."
    
    
    Could someone point out what I'm doing wrong?


    Thanks in advance.

All Replies