How to realize similar navigation bar effect in picture? #4127
Answered
by
timunie
roxxxxssss
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
timunie
Jun 18, 2021
Replies: 2 comments 4 replies
-
Hi @roxxxxssss I can't provide an entire running demo, but maybe a TabControl with your own HeaderTemplate can suite your needs. Happy coding |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
roxxxxssss
-
Thank you very much.It helped me a lot! thank you
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2021年6月22日(星期二) 凌晨4:28
收件人: ***@***.***>;
抄送: "自由"<229231207@QQ.com>; ***@***.***>;
主题: Re: [MahApps/MahApps.Metro] How to realize similar navigation bar effect in picture? (#4127)
Update:
Here is a short sample:
The needed code is:
<TabControl> <TabControl.Resources> <DataTemplate x:Key="My.Templates.NavigateNext"> <StackPanel Orientation="Horizontal"> <ContentControl Content="{Binding}" /> <TextBlock Margin="10,0,0,0">►</TextBlock> </StackPanel> </DataTemplate> </TabControl.Resources> <TabItem Header="Step 1" HeaderTemplate="{StaticResource My.Templates.NavigateNext}"/> <TabItem Header="Step 2" HeaderTemplate="{StaticResource My.Templates.NavigateNext}"/> <TabItem Header="Step 3" HeaderTemplate="{StaticResource My.Templates.NavigateNext}" /> <TabItem Header="Step 4" HeaderTemplate="{StaticResource My.Templates.NavigateNext}"/> <TabItem Header="Step 5" /> </TabControl>
Happy coding
Tim
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @roxxxxssss
I can't provide an entire running demo, but maybe a TabControl with your own HeaderTemplate can suite your needs.
Happy coding
Tim