locked
How do I bind data to a hub's section header?

    Question

  • I have been searching high and low to solve this problem. I enjoy the new addition of the hub control but cannot find a way to bind data to a section's header. I can assign a text value to it, but I want to add a custom design and binding to the header. Is this possible? Is there a template property that I can use?

    Thanks in advance

    Wednesday, October 30, 2013 2:15 AM

Answers

  • Hi samguddy,

    I don't think you could binding data to an "data-win-options" object, take a look at data-win-options attribute document. You can set the properties of a WinJS control programmatically. To access the control in code,  you call the WinJS.UI.Pages.get function to retrieve the control from its host element. But I don't think you can do a binding.

    Best Regards,

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Thursday, October 31, 2013 9:49 AM
    Moderator