示例#1
0
            public FloatEntry(FloatingViewForm floatingForm)
            {
                Verify.Argument.IsNotNull(floatingForm, nameof(floatingForm));

                _bounds = floatingForm.Bounds;
                _root   = ToLayout(floatingForm.RootControl);
            }
示例#2
0
文件: ViewHost.cs 项目: Kuzq/gitter
 /// <summary>Undock and embed into floating form.</summary>
 /// <returns>Floating form.</returns>
 internal FloatingViewForm PrepareFloatingMode()
 {
     if(_status != ViewHostStatus.Offscreen) Undock();
     var floatingForm = new FloatingViewForm(_grid, this);
     Location = new Point(
         Renderer.FloatBorderSize,
         Renderer.FloatBorderSize);
     Anchor = ViewConstants.AnchorAll;
     Parent = floatingForm;
     Status = ViewHostStatus.Floating;
     return floatingForm;
 }
示例#3
0
文件: ViewLayout.cs 项目: Kuzq/gitter
            public FloatEntry(FloatingViewForm floatingForm)
            {
                Verify.Argument.IsNotNull(floatingForm, "floatingForm");

                _bounds = floatingForm.Bounds;
                _root = ToLayout(floatingForm.RootControl);
            }
示例#4
0
        internal void RemoveFloatingForm(FloatingViewForm floatingViewForm)
        {
            Verify.Argument.IsNotNull(floatingViewForm, nameof(floatingViewForm));

            _floatingViewForms.Remove(floatingViewForm);
        }
示例#5
0
        internal void AddFloatingForm(FloatingViewForm floatingViewForm)
        {
            Verify.Argument.IsNotNull(floatingViewForm, nameof(floatingViewForm));

            _floatingViewForms.AddLast(floatingViewForm);
        }
示例#6
0
        internal void RemoveFloatingForm(FloatingViewForm floatingViewForm)
        {
            Verify.Argument.IsNotNull(floatingViewForm, "floatingViewForm");

            _floatingViewForms.Remove(floatingViewForm);
        }
示例#7
0
        internal void AddFloatingForm(FloatingViewForm floatingViewForm)
        {
            Verify.Argument.IsNotNull(floatingViewForm, "floatingViewForm");

            _floatingViewForms.AddLast(floatingViewForm);
        }