public override void OnApplyTemplate() { base.OnApplyTemplate(); _blockingProgress = GetTemplateChild("BlockingProgress") as Border; _clientArea = GetTemplateChild("ClientArea") as Border; _blockingPanel = GetTemplateChild("BlockingPanel") as StackPanel; _passcodePanel = GetTemplateChild("PasscodePanel") as LockscreenView; if (PasscodeUtils.IsLockscreenRequired) { OpenLockscreen(); } }
public override void OnApplyTemplate() { base.OnApplyTemplate(); _blockingProgress = GetTemplateChild("BlockingProgress") as Border; _clientArea = GetTemplateChild("ClientArea") as Border; _blockingPanel = GetTemplateChild("BlockingPanel") as StackPanel; _passcodePanel = GetTemplateChild("PasscodePanel") as LockscreenView; //_debugInfo = GetTemplateChild("DebugInfo") as TextBlock; _element = GetTemplateChild("Element") as MediaElement; if (_element != null) { _element.MediaOpened += PlayerOnMediaOpened; _element.MediaFailed += PlayerOnMediaFailed; _element.MediaEnded += PlayerOnMediaEnded; } _callPlaceholder = GetTemplateChild("CallPlaceholder") as ContentControl; _blockingPlaceholder = GetTemplateChild("BlockingPlaceholder") as ContentControl; _player = GetTemplateChild("Player") as Border; if (_player != null) { _player.ManipulationDelta += PlayerOnManipulationDelta; _player.ManipulationCompleted += PlayerOnManipulationCompleted; } //#if !DEBUG //if (_debugInfo != null) _debugInfo.Visibility = Visibility.Collapsed; //if (_debugList != null) _debugList.Visibility = Visibility.Collapsed; //#endif if (_returnToCallControl != null) { _callPlaceholder.Content = _returnToCallControl; } if (PasscodeUtils.IsLockscreenRequired) { OpenLockscreen(); } }