Hi,
I want to design a Material Floating Button. I wanted to create a While Pressed function which changes the color of the button.
Here’s my Code (Elements,ux):
<Panel ux:Class="FloatingButton" Width="56" Height="56" >
<float4 ux:Property="BackgroundColor" />
<string ux:Property="Goto" />
<Rectangle Layer="Background" ux:Name="fbtn_background" CornerRadius="28" Color="{Property this.BackgroundColor}"></Rectangle>
<WhilePressed>
<Change Target="fbtn_background.Color" Value="#000" />
</WhilePressed>
<Clicked>
<JavaScript>
router.push("AddPage");
</JavaScript>
</Clicked>
</Panel>
And here’s the code of List.ux:
<FloatingButton BackgroundColor="#27ae60" />
But If I click the button, nothing happens…
(Working on the Desktop-Simulator)