WPF C# | Modal Dialog | Window with Transparent Background | Wpf Custom Controls (Jd's Code Lab)

Sdílet
Vložit
  • čas přidán 25. 07. 2020
  • Hey Guys,
    In this tutorial, we'll learn how to design a Dialog box with a colored, transparent, or semi-transparent background with Title and Message in Wpf C# using Visual Studio 2019. We will learn how to handle events of User control i.e. accessing events of User control from any Window or pages in which our user control is present and then Closing of Modal Dialog if clicked outside the modal dialog.
    The code is very easy for all to understand all you need to do is pay attention and follow me on each and every step. Kindly watch the entire video so you won't miss a step.
    Become a member to get access to perks:
    / @jdscodelab
    Support me on Patreon so that I keep providing you with good content:
    / jdscodelab
    Guys, please don't forget to Like, Subscribe & Share.
    Click here to Subscribe Now: / @jdscodelab
    Also checkout Custom Controls in Wpf C# Playlist:
    • Wpf User Controls
    Also, checkout other UI Designs in Wpf C#:
    • WPF UI Designs C#
    Also, checkout Chat UI Design in Wpf C# Playlist:
    • How to design a Chat U...
    Also, checkout File Manager UI in Wpf C# Playlist:
    • How to design a File M...
    Stay tuned for more such videos!
  • Věda a technologie

Komentáře • 8

  • @JDsCodeLab
    @JDsCodeLab  Před 4 lety +8

    Hey guys, do share your suggestions regarding my videos. And please do not forget to Like, Subscribe & Share my work if you like it. It will be a huge support from you all. Thanks 👍

  • @oussamasethoum2755
    @oussamasethoum2755 Před 3 lety

    in you have a Row definition in the Grid, things will change

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

    Hello , just finished my first dialog box thanks for this great tutorial :D
    uhmm ,. im planning to use this dialogbox as a simple settings popup with 2 toggle on-off buttons and a simple confirmation popup . is it possible to change the content from text to toggle buttons ?

    • @JDsCodeLab
      @JDsCodeLab  Před 3 lety

      Yes, it is possible. Just remove the textblock and replace it with any other control you want.

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

      hello , i mean, i want to re use the same dialogbox(usercontrol) with diff content ,
      just like the binding you did in the tutorial , but not just for text for the whole grid , is it possible ?
      for example i got button in my main xaml that shows repair notice , and i got another button in main xaml that shows the settings, i want to use single user control (dialog box) to show those two.. is it possible , sorry im super new in wpf

    • @JDsCodeLab
      @JDsCodeLab  Před 3 lety

      Yes you can.

  • @SonidoScoobyDoo
    @SonidoScoobyDoo Před 11 měsíci

    I know it's kindo f late but what if I want to cover all screen with the modal window ?

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

      Call a new window with TopMost property to true and windowstyle none.