Quote:
Originally Posted by Drumstix42
Is it possible to use a variable inside of a location string?
|
Here's an example where a visible page gets hidden when another page is shown.. I'm not sure if thats what you're trying to accomplish but I'm pretty sure this is what you're looking for:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Page Name="PageContainer" Visible="true">
<Button Name="HideActivePage" OnActivate="Activated=false" Visible="false"></Button>
<Page Name="Page1" OnShow="Parent.HideActivePage.activated=true
Parent.HideActivePage.onactivate=('Parent.')##(name)##('.visible=false Activated=false')" Visible="false"/>
<Page Name="Page2" OnShow="Parent.HideActivePage.activated=true
Parent.HideActivePage.onactivate=('Parent.')##(name)##('.visible=false Activated=false')" Visible="false"/>
</Page>