Popup / Modal - WPF UI COMPONENT WORKSHOP

Sdílet
Vložit
  • čas přidán 7. 09. 2024

Komentáře • 25

  • @mcnets
    @mcnets Před 2 lety

    Hi Sean, now and then I review this video. It's really helpful. Thank's again.

  • @Sureshkumar-yd7yk
    @Sureshkumar-yd7yk Před 6 měsíci

    Hi Sean, thanks for the videos you're making; they really help us understand WPF concepts. I have a question: could you please create a video on how to add animation to this modal control for transitions?

  • @haroldpepete
    @haroldpepete Před rokem

    you have a new subscriber, you do a great jod, i think wpf is an amazing technology and it has to see a lot with all that stuff about models and javascript frameworks like angular and react, wpf is the precursor of that technology

  • @ivandrofly
    @ivandrofly Před 9 měsíci

    7:24 - Handle UI modal transparency (Modal itself stays opaque while the background is translucent )

  • @solvedplus858
    @solvedplus858 Před 2 lety

    Very awesome, but much fast
    many thanks for your very magic toturial

  • @omostan
    @omostan Před 9 měsíci

    Thank you so much for the countless tutorials you have provided over the years. I have always learned from your great videos. As for this popup, I would like to be able to move the popup around so it doesn't always cover the content of the main window. I have implemented this popup for editing and sometimes the customer wants to see the content of the main window in order to fill out the form properly. How can I do this? If it requires a lot of work, I would be grateful if you could make a separate video to show how to do it.

    • @SingletonSean
      @SingletonSean  Před 9 měsíci +1

      Hey omostan, glad these videos have been helpful! Do you mean locking the popup into a different position when it opens (such as on the bottom), or letting the user re-position the popup?

    • @omostan
      @omostan Před 9 měsíci

      @@SingletonSean Thank you very much for the prompt response to my question. Actually, it is letting the user re-position the popup within the main window. As you are well aware, I can't use simple DragMove() in the code behind of the popup "UserControl" to move the popup. DragMove() is a method in the Window class which I can't cast or don't know how to implement in the UserContol popup. It will be very helpful if you can point me to the right direction. Infact, an example will be very helpful. Thank you!

    • @SingletonSean
      @SingletonSean  Před 9 měsíci

      Interesting! Drag and drop is always fun... but also tricky. I made this whole series on WPF drag and drop a while back that might help. It might not go over the exact use case you need, but some of the concepts might be able to be adjusted to fit this popup scenario: czcams.com/play/PLA8ZIAm2I03gLDtS1V8CwMYgyQa1U5QYw.html

  • @TheRevolver90ocelot
    @TheRevolver90ocelot Před 8 měsíci

    Hi Sean, thank you for all your videos. Very useful! Just a doubt: I’d like to take Modal.cs and Generic.xaml to implement the modal as you did in Modal/Popups of your MVVM Navigation list. But without installing the Nuget package. Not sure if there’s something different between the two ways. Thank in advance!

  • @natlinux
    @natlinux Před 2 lety

    I don't understand the reason for making the login window, for example, as a mordal and not as a separate window. I don't really want the application to be visible in the background when I start it.

  • @Megagon10k
    @Megagon10k Před 3 lety

    I enjoy your videos bud good job

  • @traviskraftphotography

    Sean, I know this is very late and you may not see this, but when I try to create this modal using .NET Framework 4.7.2 and up (required for my work) I keep getting an error in the Generic.xaml that "Modal" doesn't exist in the namespace of "ModalControl". When I go to peak the definition it shows that it's there, so either VS is being really stupid, or this is just not possible in .NET Framework for some reason when it should be. I've already tried cleaning the solution and rebuild, cleaning the solution then closing and reopening VS, Cleaning and rebooting then rebooting VS. Any ideas on why this wouldn't be recognizing the class of Modal?

  • @jasonbou
    @jasonbou Před 2 lety

    hello Sean, thanks for the video, but unfortunately you did not cover one important detail :D What if we want to add a button inside modal style, how should we handle clicks on it? there is something like propdp for events? Thank you!

  • @ricardocasillas5054
    @ricardocasillas5054 Před 3 lety +1

    hi, thanks for the control, two questions; what makes it modal? and how would it be used in MVVM.

    • @MushokuThing
      @MushokuThing Před 3 lety +1

      The only way for this to work with MVVM is to have some sort of messaging system (EG: Pub/Sub) with the View Model for your Window receiving a message that tells it to open the dialog, and binding the contents + open state that way.
      As far as why this is considered a modal, is because it's effectively a child window inside of your main application, without opening another window.

    • @SingletonSean
      @SingletonSean  Před 3 lety

      That's correct Kuro, it's considered a modal because it's a child window. As for implementation in an MVVM applications, I will be demonstrating this in my Navigation series (hint: the implementation is EXACTLY the same as what Kuro suggests!)

  • @MushokuThing
    @MushokuThing Před 3 lety

    A better way to handle the grid rows / columns messing up the modal is to rather have the modal have a dependency property for the modal content, and then the normal content provided (The current Content dependency property) would be what is displayed at all times (Currently what is in your window)
    Look at how MaterialDesignInXaml does it to see what I mean.

    • @SingletonSean
      @SingletonSean  Před 3 lety

      I see what you mean, so basically the Modal control would "wrap" the entire application? I could definitely see that being useful for not having to worry about grid cells and z-index in every application. Good tip Kuro!

  • @MsQlan
    @MsQlan Před 3 lety

    Hi Sean, thanks again for all your great videos. Is there any chance that you could add another video in this series where you give your thoughts on using the Popup control in WPF?
    I'm looking into creating a custom tooltip that will be reused for multiple textboxes. It will contain buttons for different commands to be used with the textbox that is currently triggering the popup.

    • @SingletonSean
      @SingletonSean  Před 3 lety +1

      Hey MsQlan, are you saying you'd like to see this control in a real WPF application, or just the built-in WPF Popup control? I suppose tooltips would make a great demo of the WPF popup.
      I also have a video that I'm finishing up where I use the Popup control for a dropdown menu, so stay tuned for that. I'll make sure to get that one out next (for members of course) 😄

    • @MsQlan
      @MsQlan Před 3 lety

      @@SingletonSean Sorry for being unclear on that. What I mean is I would like to hear your insight on best practices when it comes to implementing the built-in WPF Popup control. Been reviewing a lot of material and most implementations aren't MVVM oriented or they use a popup bound to a single control.
      Looking forward to the video!

  • @dariolol3565
    @dariolol3565 Před rokem

    you set the caption language to vietnamese

  • @ivantsar8940
    @ivantsar8940 Před 2 lety

    I hope u will see that comment. U miss the coolest things for modal, that they can be closed by click background

  • @paradonas
    @paradonas Před rokem

    Hi Sean. Make a project out of it and replace all your old videos audio with this. czcams.com/video/2tUgFuCJdjk/video.html