Hello again!
I have a couple of JS Observables which will represent Visibility.Hidden and Visibility.Visible for several ux panels.
For what I have researched and with no compiling errors I think my syntax is right:
<StackPanel ux:Name="LogoPanel" Visibility="{LoginPanelsVisibility}">
...
<Panel ux:Name="LoadingPanel" Visibility="{LoadingPanelVisibility}">
JavaScript:
var LoginPanelsVisibility = Observable("Visible");
var LoadingPanelVisibility = Observable("Hidden");
...
function logIn() {
LoginPanelsVisibility = "Hidden";
LoadingPanelVisibility= "Visible";
...
module.exports = {
LoginPanelsVisibility: LoginPanelsVisibility,
LoadingPanelVisibility: LoadingPanelVisibility
};
Although everything looks in order when the screen is loaded (LoginPanels are visible and the LoadingPanel is not) it does not seem update the Visibility on the ux panels when he order is inverted by the LogIn() function. Am I missing something? Please help!