MahApps.Metro.SimpleChildWindow icon indicating copy to clipboard operation
MahApps.Metro.SimpleChildWindow copied to clipboard

Make child windows resizable

Open Levvy055 opened this issue 9 years ago • 5 comments

Make it available to change size of Child Window. By: -grabbing borders -using grip in corner

Levvy055 avatar May 30 '15 18:05 Levvy055

Using for example:

Height = ActualHeight * 20;
UpdateLayout();

is not changing anything

Levvy055 avatar May 31 '15 05:05 Levvy055

Sorry, I know this was 8 years ago, but is it possible now?

marcosgerene avatar Nov 10 '23 13:11 marcosgerene

It is possible but not out of the box. You will need to add the logic to you UserControl you want to show.

timunie avatar Nov 13 '23 11:11 timunie

@timunie

I know you from Avalonia, how are you doing? =D

It is possible but not out of the box. You will need to add the logic to you UserControl you want to show.

My UserControl in that case is a Window. I just take the Window Content and put this in the ChildWindow content. The idea is to open a ChildWindow instead a Window as ShowDialog. Is it still possible to resize?


PS: I know it is not the best place to ask, but... MahApps/SimpleChildWindow is avaliable on Avalonia via XPF?

marcosgerene avatar Nov 14 '23 12:11 marcosgerene

Hi @marcosgerene

I know you from Avalonia, how are you doing? =D

I'm fine, thx. Yeah I started using WPF and MahApps back than and it is and was a pleasure. But when M$ decided to not really invest in it anymore, I looked into alternatives for it.

My UserControl in that case is a Window. I just take the Window Content and put this in the ChildWindow content. The idea is to open a ChildWindow instead a Window as ShowDialog. Is it still possible to resize?

You could create a control named ResizeContainer (or what ever), add it as first child and your window content goes into resizeContainer.Content. Should be possible.

PS: I know it is not the best place to ask, but... MahApps/SimpleChildWindow is avaliable on Avalonia via XPF?

Oh I don't know this. Reach out to the team to get a demo license to test. But I maybe this is not so easy as it requires the Window to be MahApps style iirc. So probably easier to adopt the code to make it a real Avalonia control.

timunie avatar Nov 16 '23 13:11 timunie