This is a migrated thread and some comments may be shown as answers.
How to visible the minimizeButton in Floating Window
2 Answers 6 Views
This is a migrated thread and some comments may be shown as answers.
Kim
Top achievements
Rank 1
Kim asked on 21 Jan 2020, 01:04 AM

Hello.

I want to know about how to visible the minimizeButton in 'Floating Window'.

private void CtrlWorkbenchDoc_FloatingWindowCreated(object sender, FloatingWindowEventArgs e)
        {
            e.Window.FormElement.TitleBar.MinimizeButton.Visibility = ElementVisibility.Visible;
            e.Window.FormElement.TitleBar.CloseButton.Visibility = ElementVisibility.Collapsed;
            e.Window.ControlBox = true;
            e.Window.MaximizeBox = true;
            e.Window.MinimizeBox = true;
        }

I wrote the above code but minimizeButton were not showed in 'Floating Window'.

So, I want to know about another ways. 

Thanks.

2 Answers, 1 is accepted

Sort by
0
Nadya
Telerik team
answered on 22 Jan 2020, 02:01 PM

Hello Kim,

In order to show the minimize button in the FloatingWindow, please refer to the following code snippet:

private void RadDock1_FloatingWindowCreated(object sender, Telerik.WinControls.UI.Docking.FloatingWindowEventArgs e)
{
    FloatingWindow window = e.Window;
    window.FormElement.TitleBar.MinimizeButton.PropertyChanged += 
    this.MinimizeButton_PropertyChanged;
    window.MinimizeBox = true;
}

private void MinimizeButton_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
    if (e.PropertyName == "Visibility")
    {
        (sender as RadImageButtonElement).Visibility = ElementVisibility.Visible;
    }
}

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Nadya
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Kim
Top achievements
Rank 1
answered on 23 Jan 2020, 12:19 AM
Thanks for the comment!
Tags
Dock
Asked by
Kim
Top achievements
Rank 1
Answers by
Nadya
Telerik team
Kim
Top achievements
Rank 1
Share this question
or