コード例 #1
0
        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            var automationPeer = new FrameworkElementAutomationPeer(this);

            automationPeer.RaiseAutomationEvent(AutomationEvents.AsyncContentLoaded);
            itemsControl.ItemsSource    = Tests;
            NavigateToTestCommand.Frame = this.Frame;
        }
コード例 #2
0
        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            var automationPeer = new FrameworkElementAutomationPeer(this);

            automationPeer.RaiseAutomationEvent(AutomationEvents.AsyncContentLoaded);

            ((NavigateToTestCommand)Resources["NavigateToTestCommand"]).Frame = Frame;
        }
コード例 #3
0
        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            _loaded = true;
            var automationPeer = new FrameworkElementAutomationPeer(this);

            automationPeer.RaiseAutomationEvent(AutomationEvents.AsyncContentLoaded);

            if (!DesignModeHelpers.IsInDesignMode)
            {
                var frame = Window.Current.Content != null ?
                            Window.Current.Content as Frame:
                            this.Frame;
                var testContentLoadedCheckBox = FindVisualChildByName(frame, "TestContentLoadedCheckBox") as CheckBox;
                if (testContentLoadedCheckBox != null)
                {
                    testContentLoadedCheckBox.IsChecked = true;
                }
                else
                {
                    throw new InvalidOperationException("The test loaded checkbox was not found.");
                }
            }
        }
コード例 #4
0
        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            var automationPeer = new FrameworkElementAutomationPeer(this);

            automationPeer.RaiseAutomationEvent(AutomationEvents.AsyncContentLoaded);
        }