C# WPF Design UI - Dropdown Menu - Opening UserControls

Поделиться
HTML-код
  • Опубликовано: 14 дек 2024
  • Buy me a coffee
    www.buymeacoff...
    Github
    github.com/Abe...
    Solace by Nomyn / nomyn
    Creative Commons - Attribution 3.0 Unported - CC BY 3.0
    Free Download / Stream: bit.ly/SolaceNomyn
    Music promoted by Audio Library • Solace - Nomyn (No Cop...
    ► Track Title: "Morning Jam (Feat. Curt Henderson)"
    ● Artist: "LAKEY INSPIRED"
    ● Description: Chill Lo-Fi Hip-Hop Instrumental - Reflective, emotive, smooth flow, calm chill-hop music.
    This is FREE Creative Commons music that has been released under the "Creative Commons - Attribution 3.0 Unported - CC BY-SA 3.0 License." - The Full Creative Commons - Attribution 3.0 Unported - CC BY-SA 3.0 License Is HERE -
    Music Credit: Yakuzee Beatz
    Track Name: "Life Goes On"
    Music By: Yakuzee Beatz @ / user-811451507
    Original Music Video HERE: www.youtube.co....
    Official Yakuzee Beatz RUclips Channel HERE: www.youtube.co....
    License for commercial use: This is creative commons music that has been publicly released by "Yakuzee Beatz" under a "Public Attribution Agreement - Creative Commons Attribution 3.0 Unported (CC BY 3.0) Licence
    Full licence & usage rights details can be found HERE: creativecommon....
    Music promoted by NCM goo.gl/fh3rEJ
    Music Credit: LAKEY INSPIRED
    Track Name: "Watching The Clouds"
    Music By: LAKEY INSPIRED @ / lakeyinspired
    Original upload HERE - / . .
    Official "LAKEY INSPIRED" RUclips Channel HERE - www.youtube.co....
    License for commercial use: Creative Commons Attribution 3.0 Unported "Share Alike" (CC BY-SA 3.0) License.
    Full License HERE - creativecommon....
    Music promoted by NCM goo.gl/fh3rEJ

Комментарии • 66

  • @Unknown-868
    @Unknown-868 5 лет назад +3

    Gosto bastante da maneira como você faz seus vídeos, pois assim tanto alguém que não tem experiência consegue ver o passo-a-passo, como também alguém que já tem experiência com desenvolvimento consegue ver até o final sem ficar entediado. Outra coisa bacana é que você sempre disponibiliza a solução no github.
    Conheci seu canal a pouco tempo, mas já curtir bastante seu trabalho!

    • @AbelDutraUI
      @AbelDutraUI  5 лет назад +1

      Valeu Mateus, curto bastante a ideia de compartilhar o conhecimento, não sei tudo mas o pouco que sei gosto de dividir com todo mundo e o YT + o GitHub foi a melhor forma que encontrei de fazer isso :) obrigado pelo comentário! Isso motiva a continuar estudando e compartilhando!

  • @spontonluciano1668
    @spontonluciano1668 5 лет назад +4

    That's what I'm talking about.. Nice Job dude

  • @Luiz-md5xq
    @Luiz-md5xq 5 лет назад +2

    Melhor canal de wpf. Muito bom os vídeos cara, eu sempre venho aqui pras dúvidas de wpf

  • @mohamedhamidouaffizou5051
    @mohamedhamidouaffizou5051 5 лет назад +3

    Awesone bro !

  • @bicentrick9989
    @bicentrick9989 5 лет назад +5

    Clean design as always! Keep up the quality :) hope you can do a transition slider someday

  • @dmitrymarchenkov4816
    @dmitrymarchenkov4816 4 года назад +4

    Для тех, кто из России: 1. Есть баг: когда переходишь из первого выпадающего пункта на другой, не сразу отрабатывается событие ... (не очищается UserControl). Ребята из комментов нашли решение:
    1) Из UserControlMenuItem.xaml убираем SelectionChanged="ListViewMenu_SelectionChanged"
    2) В задний код: добавляем
    private void TextBlock_MouseDown(object sender, MouseButtonEventArgs e)
    {
    _context.switchScreen(((TextBlock)sender).Tag);
    }
    3)И изменяем в UserControlMenuItem.xaml

  • @URIXMX
    @URIXMX 5 лет назад +2

    This is just what i need, Thank you so much

  • @mohamaddjelouah9332
    @mohamaddjelouah9332 5 лет назад +3

    i tried to use it with mvvm but i cant plz can you make it work with mvvm please

  • @ahmedrazzaqyahya7758
    @ahmedrazzaqyahya7758 3 года назад +1

    welcome, how to select item dashboard without submenu?

  • @nebezho9686
    @nebezho9686 4 года назад +1

    Thanks for your work. I have just a question how to expand an opened Menu when i click on other menu item. For example when click on Financial , Financial sub items opened and Register must be closed(expanded = false). please explain thanks.

  • @binhvouc348
    @binhvouc348 3 года назад

    Your article is very helpful for me. Thank you very much. You can continue to make video tutorials dropdown menu multi lerver?

  • @steev910
    @steev910 5 лет назад +3

    if u can do the same with mvvm and database interaction

  • @CarlosRoberto-pi8tn
    @CarlosRoberto-pi8tn 5 лет назад +2

    Bom dia e mas uma vez eu tiro o chapéu esse e melhor da Net obrigadooooo!!

  • @dibykjbotleys103
    @dibykjbotleys103 5 лет назад +2

    In order to allow everyone to appreciate your work, I suggest this:
    -Choose a white wallpaper, better visible for all.
    -Enlarge fonts to give better visibility, since the video is not commented.
    -Reduce the speed of execution;
    and congratulations for the rest.

  • @a-software4376
    @a-software4376 4 года назад +1

    Thank your bro. Your videos are awsome !!! How can one bind those ItemMenu and SubMenu to a databse or xml file......

  • @sbik528
    @sbik528 4 года назад

    It's very interesting. I'm going to try it tomorrow.

  • @VinhomesCentralParkCenter
    @VinhomesCentralParkCenter 5 лет назад +1

    Hi. I want if ItemMenu no have Subitem, this will link to custom screen when click. I had add event PreviewMouseDown to ListBoxItem and modify ItemMenu class (add screen) but not work. Can you help me this case.

  • @cyriljiradjilani4430
    @cyriljiradjilani4430 5 лет назад +2

    is there an mvvm implementation of this?

  • @noorhasaneen3130
    @noorhasaneen3130 4 года назад

    thank you very much for your videos

  • @foroghmoshtaq5842
    @foroghmoshtaq5842 2 года назад

    Hello sir.
    How can I change side bar text color??
    Like change sub menu text color

  • @bruno80292
    @bruno80292 2 года назад

    teria como vc fazer um vídeo (ou vc pode postar no repositório) de como fazer um menu dentro de outro menu? agradeço desde já

  • @binhvouc348
    @binhvouc348 3 года назад

    How to select table control item without submenu?

  • @softwebprojects5013
    @softwebprojects5013 3 года назад

    brother how to close the tab when we click on other menu I mean when i click on register its open when I click on other menu then register automatically close please give me this solution thanks

  • @mukhiddinkhayrullokh
    @mukhiddinkhayrullokh 5 лет назад +1

    Cool

  • @RegularMHTakes
    @RegularMHTakes 4 года назад

    awesome

  • @palugadachannel9256
    @palugadachannel9256 4 года назад

    Can change this drop down menu with sub menu??

  • @sakkakutamashi1801
    @sakkakutamashi1801 5 лет назад

    Hi, I have a question: how can I use .xaml vectors in a WPF win? I googled a lot but every solution I try fails.

  • @binhvouc348
    @binhvouc348 3 года назад

    How to dropdown menu multi level?

  • @naveenkumar2032
    @naveenkumar2032 5 лет назад +1

    Nice work ,but there is one issue in this code . when you go to first menu first item select and then go to second menu first item select and come back to first menu first item selection is not working even it's not debugging selectionchange event . Can you look into this .I am trying to figuring out .

    • @sangngo2622
      @sangngo2622 5 лет назад

      Me too. I have the same problem

    • @Hayjed
      @Hayjed 4 года назад

      Have you already solve this bug? Please share your solution. Thanks

    • @cescastellanos
      @cescastellanos 4 года назад

      It's true, i have the same problem too

    • @cescastellanos
      @cescastellanos 4 года назад

      have you already solve this bug?

  • @spontonluciano1668
    @spontonluciano1668 5 лет назад

    Você pode fazer este menu esconder ao lado?

  • @shrooqmohmed3694
    @shrooqmohmed3694 4 года назад

    Can i link itemes to window1 page instead of usercontrol

  • @musiclyricstv3589
    @musiclyricstv3589 5 лет назад

    Can you use white backround ?

  • @wesley68593
    @wesley68593 5 лет назад

    Sou novo em WPF! Mostra como chamar outro janela através do menu.

  • @vasilikimatsouka5604
    @vasilikimatsouka5604 5 лет назад

    Is there a bug? If i add more user controls click is lost

  • @jahyeonggu4139
    @jahyeonggu4139 4 года назад

    Thx!

  • @techsolve9397
    @techsolve9397 4 года назад

    Theres a problem when changing from a menu submenu items to another
    submenu items, if you click customers on menu register then click Fixed
    on menu Expenses you can't go back to customers again unless you click
    another Menu register submenu like providers for example and then click
    customers again. i don't know how to solve this.

    • @predatorsn1
      @predatorsn1 4 года назад

      i have the same problem, can you solve this?

  • @wagnereliasdeandrade
    @wagnereliasdeandrade 4 года назад

    Sobre telas no wpf, já tenho meu dashbord que ao abrir preenche toda a tela agora preciso que os outros forms apareçam dentro desse dashbord, tipo assim form filho abre dentro do form pai e esses form filhos podem preencher todo esse espaço do form pai

    • @AbelDutraUI
      @AbelDutraUI  4 года назад

      Vc precisa usar userControls, eu mostro como faz no: C# WPF Material Design UI: Fast Food Sales

    • @wagnereliasdeandrade
      @wagnereliasdeandrade 4 года назад +1

      @@AbelDutraUI cara muito obrigado você exclarece mais dúvidas que o outro cara que trabalha comigo kkk, mais uma vez agradeço sua paciência

    • @AbelDutraUI
      @AbelDutraUI  4 года назад

      kkkk, tamo junto!

  • @moprabthai
    @moprabthai 4 года назад

    Can Opening Page ?

  • @debasishsaha5611
    @debasishsaha5611 3 года назад

    How can I contact you Abel?

    • @AbelDutraUI
      @AbelDutraUI  3 года назад

      Hi, please contact me on LinkedIn: abeldutra

  • @bheatrizcomh8405
    @bheatrizcomh8405 5 лет назад

    oi me interessei pelo seu trabalho, um conteúdo muito bom para nós que estamos procurando por ideias ou até mesmo tutoriais dinamicos.
    deixa eu lhe fazer uma pergunta, estou criando um software para lanchonete e não sei como montar o codigo para cadastrar um produto e ele aparecer em um "quadradinho" no menu para a pessoa escolher via touch, você saberia me informar se é possivel?
    obs: igual esses POS System que encontramos com categorias de bebidas e lanches e quando você clica ele te mostra os quadradinhos com o produto.

    • @AbelDutraUI
      @AbelDutraUI  5 лет назад

      Pelo que entendi é possível sim, o epf é bem flexível

  • @cescastellanos
    @cescastellanos 4 года назад

    Thanks Bro, Nice work ,but there is one issue in this code . when you go to first menu first item select and then go to second menu first item select and come back to first menu first item selection is not working even it's not debugging selectionchange event . Can you look into this .I am trying to figuring out .

    • @AbelDutraUI
      @AbelDutraUI  4 года назад

      Yes, this code has some bugs haha

    • @cescastellanos
      @cescastellanos 4 года назад +9

      @@AbelDutraUI dont care men. you channel is amazing. I found a solution for the bug. on the UserControlMenuItem.xaml remove the SelectionChanged="ListViewMenu_SelectionChanged" from the "ListViewMenu " and put the MouseDown ont the text block and bind Path=screen to tag, like this :

    • @AbelDutraUI
      @AbelDutraUI  4 года назад +1

      Thank you, I understood! :D

    • @juyounglee3146
      @juyounglee3146 4 года назад +1

      ​@@cescastellanos I got a same problem. I solved it. You are genius. Thank you! :)

    • @noorhasaneen3130
      @noorhasaneen3130 4 года назад

      @@cescastellanos thank you very much

  • @devilnight7179
    @devilnight7179 5 лет назад

    How to click on dashboard. Help me

    • @AbelDutraUI
      @AbelDutraUI  5 лет назад

      Hi, what do you want to do?

    • @devilnight7179
      @devilnight7179 5 лет назад

      eg. DashBoard has no children
      . i can't click on the dashboard.

    • @AbelDutraUI
      @AbelDutraUI  5 лет назад

      you can use MouseDown event I think :)

    • @Sebastian-ft6rk
      @Sebastian-ft6rk 4 года назад

      @@AbelDutraUIHi, if you could fix line I will much appreciate as I try MouseDown and content is still not showing from not dropdown item like the dashboard

    • @KJMastalerz
      @KJMastalerz 4 года назад +5

      Hey:
      1st step
      XAML (New)
      Create main window user control (or dashboard or whatever you want to call it in my case OriginalWindow)
      2nd Step
      UserControlMenuItem:
      XAML:
      Code for event handler:
      C#:
      private void ListViewItemMenu_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
      {
      _context.SwitchScreen(((ItemMenu)((ListBoxItem)sender).DataContext).Screen);
      }
      3rd step
      Main Window:
      C#
      var item0 = new ItemMenu("Home", new OriginalWindow(), PackIconKind.Home);
      - add window created as the main user control.
      C#
      StackPanelMain.Children.Add(new OriginalWindow());
      - add to display created the main window as starting display.

  • @彭晨-j4y
    @彭晨-j4y Год назад

    hello, what use of ListBoxItem in UserControlMenuItem ? i can run it ok without this ListBoxItem