Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok to answer the two parts of your question:</p> <ol> <li><p>Why when PageToolBarVisible is fired as "False" at loading the toolbar still shows: Your only hiding the toolbar with the animation in the "ExitActions", which aren't being hit. The logic flows as such.</p> <p>if(PageToolBarVisible == true) <strong>Run EnterActions</strong></p> <p>if(PageToolBarVisible changes to false) <strong>Run ExitActions</strong></p> <p>if(PageToolBarVisible starts as false) <strong>Do nothing</strong></p> <p>if(PageToolBarVisible starts as false and is set to false) <strong>Do nothing</strong></p></li> </ol> <p>Conclusion, because the PageToolBarVisible is not changing from True to False ... the animation doesn't run.</p> <p>Solution:</p> <p>Consider having a second DataTrigger that handles the False case for your PageToolBarVisible property. Or you can set the Property to True and then False to hit your ExitActions (though I'm not sure if this would A) work or B) be a good solution)</p> <ol start="2"> <li><p>Why setting the backing field for the Property still runs the animation when loaded:</p> <p>I believe what is happening here, is that when the application loads, the Binding is checking the value of the property, if you've set the value of the backing field then it should be getting this from the "Get" on "PageToolBarVisible".</p> <p>So it's not that you're triggering the OnPropertyChanged, it's that the Binding is getting the value when your app is loading</p></li> </ol> <p>Solution:</p> <p>Either rethink your logic around how your binding to the trigger and thus the animation. Or you can play with the Binding Modes, to be honest I don't think there's a mode that would satisfy the conditions you're looking for, however I might be wrong.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload