Windows Entertainment and Connected Home

How to organize, access and enjoy all of your media in and around your home

Host Element Properties

  • rated by 0 users
  • This post has 1 Reply |
  • 1 Follower
Page 1 of 1 (2 items)
  •  
    Hey, I am working on component sets to make building apps much easier so I can throw them out quickly like boxee, to get around all the nasty assembly namespace & security issues I built a pre-processor which swaps out specifics for your plugin, assembly paths etc and then builds you a resx and inserts some code. Its working well up to now but I want to make use of the host element to make the framework more dynamic e.g. ability to specify an item renderer mcml for lists. My issue is I don’t seem to be able to pass properties into a host. Is there a way to do this? I tried adding properties as normal to the UI and then setting them on the host tag but this fails to load, i removed setting them on the host tag which loads but the properties don’t work... I obviously don’t want to try and pass things around in a static class, that’s just asking for race conditions. It seems like a very fundamental thing to be able to do with the host object so I can’t imagine it’s impossible. Thanks for your help
  •  
    I just realised there is a much nicer way to do this with the BaseUI attribute. Creating a super type with all the attributes i need and then changing the instances Source. Thanks
Page 1 of 1 (2 items)