Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make child windows resizable #19

Open
Levvy055 opened this issue May 30, 2015 · 5 comments
Open

Make child windows resizable #19

Levvy055 opened this issue May 30, 2015 · 5 comments

Comments

@Levvy055
Copy link

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

@Levvy055
Copy link
Author

Using for example:

Height = ActualHeight * 20;
UpdateLayout();

is not changing anything

@punker76 punker76 added this to the 1.4.0 milestone Oct 15, 2016
@punker76 punker76 modified the milestones: 1.5.0, 1.4.0 Feb 2, 2017
@punker76 punker76 removed this from the 1.5.0 milestone Feb 22, 2018
@marcosgerene
Copy link

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

@timunie
Copy link
Contributor

timunie commented Nov 13, 2023

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

@marcosgerene
Copy link

@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?

@timunie
Copy link
Contributor

timunie commented Nov 16, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants