C# WPF Design UI - Dropdown Menu - Opening UserControls

Поділитися
Вставка
  • Опубліковано 4 гру 2024

КОМЕНТАРІ • 66

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

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

  • @bicentrick9989
    @bicentrick9989 5 років тому +5

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

  • @mohamedhamidouaffizou5051
    @mohamedhamidouaffizou5051 5 років тому +3

    Awesone bro !

  • @URIXMX
    @URIXMX 5 років тому +2

    This is just what i need, Thank you so much

  • @CarlosRoberto-pi8tn
    @CarlosRoberto-pi8tn 5 років тому +2

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

  • @sbik528
    @sbik528 4 роки тому

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

  • @noorhasaneen3130
    @noorhasaneen3130 4 роки тому

    thank you very much for your videos

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

  • @mohamaddjelouah9332
    @mohamaddjelouah9332 5 років тому +3

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

  • @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......

  • @steev910
    @steev910 5 років тому +3

    if u can do the same with mvvm and database interaction

  • @ahmedrazzaqyahya7758
    @ahmedrazzaqyahya7758 3 роки тому +1

    welcome, how to select item dashboard without submenu?

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

  • @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.

  • @mukhiddinkhayrullokh
    @mukhiddinkhayrullokh 5 років тому +1

    Cool

  • @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.

  • @cyriljiradjilani4430
    @cyriljiradjilani4430 5 років тому +2

    is there an mvvm implementation of this?

  • @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á

  • @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.

  • @RegularMHTakes
    @RegularMHTakes 4 роки тому

    awesome

  • @foroghmoshtaq5842
    @foroghmoshtaq5842 2 роки тому

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

  • @binhvouc348
    @binhvouc348 3 роки тому

    How to select table control item without submenu?

  • @jahyeonggu4139
    @jahyeonggu4139 4 роки тому

    Thx!

  • @wesley68593
    @wesley68593 5 років тому

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

  • @palugadachannel9256
    @palugadachannel9256 4 роки тому

    Can change this drop down menu with sub menu??

  • @spontonluciano1668
    @spontonluciano1668 5 років тому

    Você pode fazer este menu esconder ao lado?

  • @binhvouc348
    @binhvouc348 3 роки тому

    How to dropdown menu multi level?

  • @musiclyricstv3589
    @musiclyricstv3589 5 років тому

    Can you use white backround ?

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

  • @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!

  • @shrooqmohmed3694
    @shrooqmohmed3694 4 роки тому

    Can i link itemes to window1 page instead of usercontrol

  • @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.

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

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

  • @vasilikimatsouka5604
    @vasilikimatsouka5604 5 років тому

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

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

  • @moprabthai
    @moprabthai 4 роки тому

    Can Opening Page ?

  • @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.

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

  • @debasishsaha5611
    @debasishsaha5611 3 роки тому

    How can I contact you Abel?

    • @AbelDutraUI
      @AbelDutraUI  3 роки тому

      Hi, please contact me on LinkedIn: abeldutra

  • @彭晨-j4y
    @彭晨-j4y Рік тому

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