Flyout performance improvement

Moved all GetTemplateChild to OnApplyTemplate and stored the values in variables.
Merge pull request #1007 from 100GPing100/patch-4

Flyout performance improvement