Application not closed when using C1DockControl

Posted by: vinothkumar.r2210 on 18 May 2020, 3:48 pm EST

    • Post Options:
    • Link

    Posted 18 May 2020, 3:48 pm EST

    Hi,

    I have used C1DockControl in my window. When i am closing the window, the window gets closed but my application is not getting closed. I am using ComponentOne.Net trial version (Version 4.5.5). Whenever I start the application, the license information window will get popped up. But Now I am not getting license information window. It seems hiding somewhere and blocking application .

  • Posted 18 May 2020, 3:50 pm EST

    HI,

    I am using ComponentOne.net trial version 4.5.2.

    Thanks and Regards,

    Vinoth Kumar Ravi

  • Posted 18 May 2020, 4:03 pm EST

    Hi Vinoth,

    If you are using ComponentOne control in your application and is over trial version, you should always get a nag screen/dialog upon running your application. If you are not getting this screen anymore, then some part of the application is still running, like you mention.

    To properly look into the behavior, we request you to kindly share more information about how you are using C1DockControl and how is your application structured. It would be even better if you are share a stripped down application for the same.

    Regards,

    Ruchir

  • Posted 18 May 2020, 4:40 pm EST

    Hi Ruchir,

    This is my MainWindow.xaml.

                    </WrapPanel>
                </Border>
                <c1:C1DockControl x:Name="dockControl" Grid.Row="1"  AllowDrop="True" Drop="DropList_Drop">
                    <c1:C1DockGroup x:Name="dockGroup">
                    </c1:C1DockGroup>
                </c1:C1DockControl>
            </Grid>
    

    Dynamically add DokcTabControl in dockControl.

    C1DockTabControl dockTabControl = new C1DockTabControl();

    dockTabControl.Drop += DropList_Drop;

            dockTabControl.Dock = C1.WPF.Dock.Top;
            C1DockTabItem c1DockTabItem = new C1DockTabItem();
            c1DockTabItem.Header = nodeResult.NodeName;
            c1DockTabItem.TabShape = C1.WPF.C1TabItemShape.Sloped;
            c1DockTabItem.Drop += DropList_Drop;
            c1DockTabItem.MouseEnter += C1DockTabItem_MouseEnter;
            var outputDisplay = outputResult.oOutputDisplay;
            if (outputDisplay.IsWPF)
            {
                var control = outputDisplay as System.Windows.Controls.UserControl;
                control.AllowDrop = true;
                control.Drop += DropList_Drop;
                c1DockTabItem.Content = control;
                
                
            }
            else
            {
                //do nothing;
                
            }
    
            dockTabControl.Items.Add(c1DockTabItem);
            dockGroup.Items.Add(dockTabControl);
    

    Thanks and Regards,

    Vinoth Kumar Ravi

  • Posted 18 May 2020, 5:01 pm EST

    Hi Ruchir,

    I am assigning WPF usercontrol as C1DockTabItem’s content. Is that will create any issue?

    Thanks and Regards,

    Vinoth Kumar Ravi

  • Posted 18 May 2020, 6:37 pm EST

    Hi Ruchir,

    Issue happening when I am drag and drop any item in C1DockControl. While dropping I will create new C1DockTabControl and add in C1DockControl. If I am just open and closing the window its working fine. If I am adding any item in control, the above mentioned issue occurs.

    One more thing,

    My application’s start point is Winform window. From winforms window I will open MainWindow(from WPF application). Is cross flatform is problem.

    Thanks and Regards,

    Vinoth Kumar Ravi

  • Posted 19 May 2020, 4:40 pm EST

    Hi Ruchir,

    Can you please suggest how to dispose C1DockControl in window closing event.

    Thanks and Regards,

    Vinoth Kumar Ravi

  • Posted 19 May 2020, 10:26 pm EST

    Hi Ruchir,

    Issue is from my end. Please ignore this issue.

    Thanks and Regards,

    Vinoth Kumar Ravi

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels