Exemplo n.º 1
0
 private void ShareWebDriver()
 {
     Header.SetDriver(driver);
     Footer.SetDriver(driver);
     LeftColumn.SetDriver(driver);
     RightColumn.SetDriver(driver);
 }
Exemplo n.º 2
0
        protected override void AddLeftChildren()
        {
            BpCard card = new BpCard(@"CSharpWebExpress", Widget);

            LeftColumn.AddChild(card);
            BpText text = new BpText(Widget);

            text
            .AddP(@"CSharpWebExpress is an exciting new technology that allows building sophisticated Web application using only CSharp programming.");
            card.AddContentItem(text);
        }
Exemplo n.º 3
0
        private void ShowAdvanceSearchControl(DoubleAnimationEventArgs args)
        {
            enabledSaveSplitPosition = args.To > 0;
            int commonTime = (LeftColumn.ActualWidth - args.To) > 0 ? 300 : 200;
            int time       = Math.Abs((int)((LeftColumn.ActualWidth - args.To) * commonTime / 110));

            if (Math.Abs(lastWindth) < Epsilon)
            {
                lastWindth = args.To;
            }

            double to;

            if (Math.Abs(args.To) < Epsilon)
            {
                lastWindth = LeftColumn.ActualWidth;
                to         = 0;
            }
            else
            {
                to = lastWindth;
            }

            var animation = new GridLengthAnimation
            {
                From     = new GridLength(LeftColumn.ActualWidth, GridUnitType.Pixel),
                To       = new GridLength(to, GridUnitType.Pixel),
                Duration = TimeSpan.FromMilliseconds(time)
            };

            animation.Completed += delegate
            {
                SetSplitter(args.To);

                if (args.To > 0)
                {
                    SaveSplitterPosition();
                }
            };

            LeftColumn.BeginAnimation(ColumnDefinition.WidthProperty, animation);
        }
Exemplo n.º 4
0
        protected override void AddLeftChildren()
        {
            BpVideo video = new BpVideo(Widget, "https://www.youtube.com/embed/hvrQoXWEpAA");

            LeftColumn.AddChild(video);
        }
Exemplo n.º 5
0
 protected override void AddLeftChildren()
 {
     LeftColumn.AddChild(new HomePageLeftInfoCard(Widget));
 }