Coder Social home page Coder Social logo

Comments (5)

timunie avatar timunie commented on May 18, 2024 1

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.

from mahapps.metro.simplechildwindow.

Levvy055 avatar Levvy055 commented on May 18, 2024

Using for example:

Height = ActualHeight * 20;
UpdateLayout();

is not changing anything

from mahapps.metro.simplechildwindow.

marcosgerene avatar marcosgerene commented on May 18, 2024

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

from mahapps.metro.simplechildwindow.

timunie avatar timunie commented on May 18, 2024

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

from mahapps.metro.simplechildwindow.

marcosgerene avatar marcosgerene commented on May 18, 2024

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

from mahapps.metro.simplechildwindow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.