Hi.
There are two classes, A and B, in my source I would like to get access and change the value of element property of class B from class A. How can I do it??
I will post my source below
MainView.ux
<App>
<JavaScript File="TopMenu.js"/>
<ClientPanel>
<TopMenu Dock="Top" Height="50" Content="pc" Menu1="page1" Menu2="page2" Menu3="page3" />
<PageControl ux:Name="pc">
<Page ux:Name="page1" Color="#F5A5FF">
<WhileActive>
</WhileActive>
<Text Value="Page1" Alignment="Center" FontSize="50" TextColor="White" />
</Page>
<Page ux:Name="page2" Color="#B88AFF">
<WhileActive>
</WhileActive>
<Text Value="Page2" Alignment="Center" FontSize="50" TextColor="White" />
</Page>
<Page ux:Name="page3" Color="#FF978A">
<WhileActive>
</WhileActive>
<Text Value="Page3" Alignment="Center" FontSize="50" TextColor="White" />
</Page>
</PageControl>
</ClientPanel>
</App>
TopMenu.ux
<Page ux:Class="TopMenu">
<PageControl ux:Dependency="Content" />
<Page ux:Dependency="Menu1" />
<Page ux:Dependency="Menu2" />
<Page ux:Dependency="Menu3" />
<Rectangle ux:Name="rect" Height="5" Width="80%" LayoutMaster="{rectLM}" Color="Gray" Alignment="BottomCenter">
<LayoutAnimation>
<Move RelativeTo="PositionChange" X="1" Duration="0.4"/>
</LayoutAnimation>
</Rectangle>
<Grid ColumnCount="3">
<Panel ux:Name="m1" Color="#D9D9D9">
<Clicked>
<Set Target="Content.Active" Value="Menu1" />
</Clicked>
<Text Alignment="Center" Value="Menu1" />
</Panel>
<Panel ux:Name="m2" Color="#BCBCBC">
<Clicked>
<Set Target="Content.Active" Value="Menu2" />
</Clicked>
<Text Value="Menu2" Alignment="Center" />
</Panel>
<Panel ux:Name="m3" Color="#D9D9D9">
<Clicked>
<Set Target="Content.Active" Value="Menu3" />
</Clicked>
<Text Value="Menu3" Alignment="Center" />
</Panel>
</Grid>
</Page>
I will elaborate my question with my source.
I would like to get access and able to change the value of property element of Rectangle named “rect” from MainView.ux without using javascript. I would like get access just purely using XML.
Can you guys help me with it? Thank you