The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

Reference a LayoutInput from another mcml file?

Last post 05-25-2009, 5:08 AM by soultaker. 2 replies.
Sort Posts: Previous Next
  •  05-24-2009, 5:51 PM 9233

    Reference a LayoutInput from another mcml file?

    I'm looking to reference a LayoutInput from another mcml file but am having no luck referencing it. Consider the scenario below:

    File 1 (Constants.mcml)

    <AnchorLayoutInput Name="LayoutInput1" Horizontal="Fill" />
    <AnchorLayoutInput Name="LayoutInput2" Vertical="Fill" />

     

    File 2 (Default.mcml)

    </ xmlns:con ="resx//......../Constants" />

    <Content>
      <Text LayoutInput=" ??????? " />
    </Content>

    ---------------------

    I have tried the following with no results:

    • [con:LayoutInput1]
    • [LayoutInput://con:LayoutInput1]

    blog.manghera.com
  •  05-25-2009, 4:38 AM 9234 in reply to 9233

    Re: Reference a LayoutInput from another mcml file?

    Try

    LayoutInput="global://con:LayoutInput1"

    Cheers,
    Andrew
  •  05-25-2009, 5:08 AM 9235 in reply to 9234

    Re: Reference a LayoutInput from another mcml file?

    Thank you. <3

    It worked out well.


    blog.manghera.com
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems