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

Enable change/hide of window title foreground #250

Closed
cbytte opened this issue Jan 20, 2016 · 7 comments
Closed

Enable change/hide of window title foreground #250

cbytte opened this issue Jan 20, 2016 · 7 comments
Milestone

Comments

@cbytte
Copy link

cbytte commented Jan 20, 2016

Hi,

we are trying to give another font color to the title text of the RibbonWindow (Office2013)
Assuming the title is in the non-client area of the WPF window, its foreground cannot be altered in XAML.
Hence I have been trying to hide the window title, in favor of another added TextBlock with the right color.
Windows taskbar shows the original WPF window title, and this should remain.

Through the native Win32 API it should be possible to hide the title without removing it from the taskbar:
http://stackoverflow.com/questions/709391/remove-title-bar-text-of-a-window-but-keep-status-bar-text
http://blogs.msdn.com/b/wpfsdk/archive/2008/09/08/custom-window-chrome-in-wpf.aspx

Unfortunately the SetWindowThemeAttribute native function does not hide anything here in my Fluent solution.
Is there maybe a reason that I have overlooked, or does it ring a bell?

Thanks for your help.

@batzen
Copy link
Member

batzen commented Jan 21, 2016

Using the windows api does not work because the titlebar is drawn by some piece of xaml.
Currently there is now way to change the foreground color for the titlebar without duplicating a lot of xaml code.

Will change the title of this issue and mark it as an enhancement.

@batzen batzen changed the title Change/hide window title foreground Enable change/hide of window title foreground Jan 21, 2016
@maurosampietro
Copy link
Contributor

How is called the property to hide title?

@batzen
Copy link
Member

batzen commented Mar 7, 2016

?

@maurosampietro
Copy link
Contributor

How to hide window title foreground?

@batzen
Copy link
Member

batzen commented Mar 19, 2016

It's currently not possible to do this in an easy way.

@batzen batzen added this to the 5.0.0 milestone Mar 19, 2016
@maurosampietro
Copy link
Contributor

This issue was closed with fix #249, so in wondered..
Now i see you flagged this as enhancement on milestone 5.0

@batzen
Copy link
Member

batzen commented Mar 24, 2016

It was referenced by #249, not closed. ;-)

@batzen batzen modified the milestones: 6.0.0, 5.0.0 Aug 12, 2016
@batzen batzen modified the milestones: 5.0.0, 6.0.0 Sep 18, 2016
@batzen batzen closed this as completed in 97f35ea Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants