Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override HamburguerMenu header height #3727

Closed
Albvadi opened this issue Jan 23, 2020 · 8 comments
Closed

Override HamburguerMenu header height #3727

Albvadi opened this issue Jan 23, 2020 · 8 comments

Comments

@Albvadi
Copy link

Albvadi commented Jan 23, 2020

Hi,
I wish I could add space between the header and the HamburguerMenu items.
image

I tried to add margin to the HamburgerMenuHeaderTemplate but the height it´s fixed and the header is cut.

<Controls:HamburgerMenu.HamburgerMenuHeaderTemplate>
	<DataTemplate>
		<TextBlock HorizontalAlignment="Center" 
                   Margin="15" // <- Add this
                   FontSize="20"
                   FontWeight="Bold"
                   Text="MY HEADER TEXT"
        />
	</DataTemplate>
</Controls:HamburgerMenu.HamburgerMenuHeaderTemplate>

image

It´s same as #3284, but adding my custom space...

Thanks!

@punker76
Copy link
Member

@Albvadi If you already use 2.0 alpha then you can use 2 new properties (PaneMargin and PaneHeaderMargin) to change this.

@Albvadi
Copy link
Author

Albvadi commented Jan 23, 2020

I´m using 1.6.5, because I´m totally newbie and all the examples and guides finded uses this version. Is it possible in this version?

It's a new application so I could update to 2.0 alpha, but the .NET Framework must be 4.7. 2.0 alpha works in 4.7 NET Framework?

@batzen
Copy link
Collaborator

batzen commented Jan 24, 2020

The supported runtimes start with .net 4.5.2 and go up .net core 3.1.
So yes, .net 4.7 is covered.

Just a question: If you're starting a new project why not try .net core 3.1 for that?

@Albvadi
Copy link
Author

Albvadi commented Jan 24, 2020

Just a question: If you're starting a new project why not try .net core 3.1 for that?

Basically out of fear.. 🙁

I´m a web developer (PHP generally) and I have been commissioned this application for my company with around 12k computers with a Win10 custom base image which already has the 4.7 .NET version installed.
Due to my null knowledge in this C# world, actually I´m a copy-samples/stackoverflow developer... 😅 , so I search examples for what I need and adapt to my requirements...

I read a lot before starting the project (.Net core vs .Net Framework, Xaml better practices, MVVM patron, etc...) and because It´s not a complex application I think that I will not take advantage of the .Net core advantages, so I thought using more stable and long versions (1.6.5 mahApps.Metro and .Net Framework 4.7) would be much simpler for a newbie like me...

Moreover, If I use .net core, I would force my co-workers to install the .net core client together with my application, and this it´s a lot of work of testing other applications installed in the custom image... 😕

@punker76
Copy link
Member

@Albvadi

I´m using 1.6.5, because I´m totally newbie and all the examples and guides finded uses this version. Is it possible in this version?

It's a new application so I could update to 2.0 alpha, but the .NET Framework must be 4.7. 2.0 alpha works in 4.7 NET Framework?

v2.0 alpha start with .net 4.5.2 and go up .net core 3.1. So yes, .Net 4.7 is covered.

@Albvadi
Copy link
Author

Albvadi commented Jan 28, 2020

@punker76

I have updated the version of the framework from 1.6.5 to 2.0 alpha and after some changes, there are things that work correctly but there are others that do not and I´m not able to solve...

Do you prefer to speak a new issue to detail the problems with migration or do I do it in this same issue?

@timunie
Copy link
Collaborator

timunie commented Jan 28, 2020

@Albvadi
If you think it is no bug but support needed, we can see if we can help via gitter (https://gitter.im/MahApps/MahApps.Metro).

Happy coding,
Tim

@Albvadi
Copy link
Author

Albvadi commented Jan 28, 2020

@Albvadi
If you think it is no bug but support needed, we can see if we can help via gitter (https://gitter.im/MahApps/MahApps.Metro).

Happy coding,
Tim

No, they are not bugs, I think it´s only I´m a newbie. I have solved some of my problems with the update, but surely I will need more help to carry out the application so I will go to Gitter in case you can help me out...

Thank you for all the help and support you give to this project. I wish all projects had this support!

@Albvadi Albvadi closed this as completed Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants