Home
Blogs
Forums
Files


Welcome to The Green Button          Sign in | Join | Help

MCML Graphic Question

Last post 08-13-2008, 10:02 AM by mjp14. 2 replies.
Sort Posts: Previous Next
  •  08-13-2008, 6:18 AM 284530

    MCML Graphic Question

    Im new to MCML programming and I'm writing a 'learning' application right now.  My question is what is the best practice for loading Graphics from files dynamically from a specific directory?  My first thought is using a Choice object and adding an ArrayListDataSet of the MediaCenter.UI.Images to the Options property of the Choice object.  However, in MCMLPad it is throwing an error when I try and import the library in the MCML code as follows...

    xmlns:mce="assembly://Microsoft.MediaCenter/Microsoft.MediaCenter.UI"

    to use in this fashion...

    <me:ListItem_Image SourceImage="[RepeatedItem!mce:Image]"

    Is this correct?  Are the SDK libraries available in the MCMLPad or do I need to run this from VMC?  Any direction would be appreciated.


    Google Calendar Addin

    http://code.google.com/p/mcgooglecalendarbeta/
  •  08-13-2008, 8:29 AM 284592 in reply to 284530

    • AndyC is not online. Last active: 11-30-2008, 9:00 AM AndyC
    • Top 10 Contributor
    • Joined on 03-29-2004
    • UK
    • Elite Member

    Re: MCML Graphic Question

    You don't need to reference Image using a namespace like that, just use !Image

    If this still doesn't work, post the error message you get.  Also, you may get a quicker response over at discuss.mediacentersandbox.com (another Microsoft website specifically for Media Center development)

    Cheers,
    Andrew

  •  08-13-2008, 10:02 AM 284652 in reply to 284592

    Re: MCML Graphic Question

    worked like a charm.  thanks.  ill be posting my future programming questions on the link you provided.
    Google Calendar Addin

    http://code.google.com/p/mcgooglecalendarbeta/
View as RSS news feed in XML
About TGB | Advertise | Link To Us | Donate | Terms Of Use | Privacy Policy
© 2003-2007 The Green Button, Inc. - All Rights Reserved