예제 #1
0
        public Know()
        {
            InitializeComponent();
            this.Loaded += (s, e) =>
            {
                FindStoryboard();

                var xyknow = new XYKnowldge();
                //   root.Children.Add(xyknow);
            };
        }
예제 #2
0
        public Know()
        {
            InitializeComponent();
            this.Loaded += (s, e) =>
            {
                dnxian.Visibility = Visibility.Hidden;
                xzxian.Visibility = Visibility.Hidden;
                szxian.Visibility = Visibility.Hidden;
                xgxian.Visibility = Visibility.Hidden;

                FindStoryboard();

                var xyknow = new XYKnowldge();
                //   root.Children.Add(xyknow);
            };
        }
예제 #3
0
        private void FindStoryboard()
        {
            s1 = FindResource("Storyboard1") as Storyboard;
            s2 = FindResource("Storyboard2") as Storyboard;

            s2.Completed += (s, e) =>
            {
                ShowXian(currentXian);

                pop.Children.Clear();
                var xyknow = new XYKnowldge();
                xyknow.LoadDiasses(currentDisease);
                pop.Children.Add(xyknow);
                s2.Duration = TimeSpan.FromMilliseconds(0);
            };

            s1.Duration = TimeSpan.FromSeconds(8.700);
            s1.Begin();
        }