コード例 #1
0
 public void FncOpenTabStrip(bool open)
 {
     try
     {
         if (open)
         {
             if (_RowDefinition0 != null)
             {
                 VMukti.Presentation.GridLengthAnimation gla = new VMukti.Presentation.GridLengthAnimation();
                 gla.From     = new GridLength(0, GridUnitType.Pixel);
                 gla.To       = new GridLength(30, GridUnitType.Pixel);
                 gla.Duration = new Duration(TimeSpan.FromSeconds(0.50));
                 _RowDefinition0.BeginAnimation(RowDefinition.HeightProperty, gla);
             }
         }
         else
         {
             if (_RowDefinition0 != null)
             {
                 VMukti.Presentation.GridLengthAnimation gla = new VMukti.Presentation.GridLengthAnimation();
                 gla.From     = new GridLength(30, GridUnitType.Pixel);
                 gla.To       = new GridLength(0, GridUnitType.Pixel);
                 gla.Duration = new Duration(TimeSpan.FromSeconds(0.50));
                 _RowDefinition0.BeginAnimation(RowDefinition.HeightProperty, gla);
             }
         }
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "FncOpenTabStrip()", "Controls\\VMuktiGrid\\Tab\\TabControl.cs");
     }
 }
コード例 #2
0
        public void FncOpenPageStrip(bool open)
        {
            try
            {
                if (open)
                {
                    if (_RowDefinition0 != null)
                    {
                        VMukti.Presentation.GridLengthAnimation gla = new VMukti.Presentation.GridLengthAnimation();
                        gla.From = new GridLength(0, GridUnitType.Pixel);
                        gla.To = new GridLength(30, GridUnitType.Pixel);
                        gla.Duration = new Duration(TimeSpan.FromSeconds(0.50));
                        _RowDefinition0.BeginAnimation(RowDefinition.HeightProperty, gla);
                        //_RowDefinition0.Height = new GridLength(30, GridUnitType.Pixel);
                    }
                }
                else
                {
                    if (_RowDefinition0 != null)
                    {

                        VMukti.Presentation.GridLengthAnimation gla = new VMukti.Presentation.GridLengthAnimation();
                        gla.From = new GridLength(30, GridUnitType.Pixel);
                        gla.To = new GridLength(0, GridUnitType.Pixel);
                        gla.Duration = new Duration(TimeSpan.FromSeconds(0.50));
                        _RowDefinition0.BeginAnimation(RowDefinition.HeightProperty, gla);
                        // _RowDefinition0.Height = new GridLength(0, GridUnitType.Pixel);
                    }
                }
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "FncOpenPageStrip", "TabControl.cs");
            }
        }