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
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!
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!
That's what I'm talking about.. Nice Job dude
Melhor canal de wpf. Muito bom os vídeos cara, eu sempre venho aqui pras dúvidas de wpf
Awesone bro !
Clean design as always! Keep up the quality :) hope you can do a transition slider someday
Для тех, кто из России: 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
This is just what i need, Thank you so much
i tried to use it with mvvm but i cant plz can you make it work with mvvm please
welcome, how to select item dashboard without submenu?
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.
Your article is very helpful for me. Thank you very much. You can continue to make video tutorials dropdown menu multi lerver?
if u can do the same with mvvm and database interaction
Bom dia e mas uma vez eu tiro o chapéu esse e melhor da Net obrigadooooo!!
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.
Thank your bro. Your videos are awsome !!! How can one bind those ItemMenu and SubMenu to a databse or xml file......
It's very interesting. I'm going to try it tomorrow.
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.
is there an mvvm implementation of this?
thank you very much for your videos
Hello sir.
How can I change side bar text color??
Like change sub menu text color
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á
How to select table control item without submenu?
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
Cool
awesome
Can change this drop down menu with sub menu??
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.
How to dropdown menu multi level?
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 .
Me too. I have the same problem
Have you already solve this bug? Please share your solution. Thanks
It's true, i have the same problem too
have you already solve this bug?
Você pode fazer este menu esconder ao lado?
Can i link itemes to window1 page instead of usercontrol
Can you use white backround ?
Sou novo em WPF! Mostra como chamar outro janela através do menu.
Is there a bug? If i add more user controls click is lost
Thx!
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.
i have the same problem, can you solve this?
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
Vc precisa usar userControls, eu mostro como faz no: C# WPF Material Design UI: Fast Food Sales
@@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
kkkk, tamo junto!
Can Opening Page ?
How can I contact you Abel?
Hi, please contact me on LinkedIn: abeldutra
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.
Pelo que entendi é possível sim, o epf é bem flexível
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 .
Yes, this code has some bugs haha
@@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 :
Thank you, I understood! :D
@@cescastellanos I got a same problem. I solved it. You are genius. Thank you! :)
@@cescastellanos thank you very much
How to click on dashboard. Help me
Hi, what do you want to do?
eg. DashBoard has no children
. i can't click on the dashboard.
you can use MouseDown event I think :)
@@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
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.
hello, what use of ListBoxItem in UserControlMenuItem ? i can run it ok without this ListBoxItem