Wpf Tab on mouse Over hover effect - wpf

How to change TabItem's Header font without changing content's font?
I Followed this thread to reduce the size of fonts of my tab in wpf. But now when i move mouse over them it doesnt show any kind of hover effect. I am using MahApps as well.

Related

Why only top border is visible when ToolWindow is used?

I created new .NET WPF desktop application using Visual Studio 2019. The default mainwindow looks like this:
What I want is to hide the icon, which I accomplished by setting next property to Window
WindowStyle="ToolWindow"
It works, but now only Window's top black border is visible. No left, right or bottom are visible as in upper example (with Icon).
How can I add all window borders (visually the same as first example) and keep WindowStyle 'ToolWindow'? I tried adding BorderBrush and BorderThichness, but it's not the same. The result is here:

Main Window title bar color change in wpf

I want the color of title bar to be changed from green to red in wpf.
How can I do it??
Like this -
[
Title bar is not a client area and hence is not available for editing as such.
You can though set WindowStyle="None" and then add a custom border around your window.
Make sure you add Close Maximize and Minimize buttons to it.
And if you are using .net 4.5 WindowChrome can be useful as well

WPF Hidden ScrollViewer's Bars

I need a ScrollViewer for WPF application which like on some web pages (like Facebook), scroll bars are hidden even if content is long, but when mouse is over bars become visible. Anyone have idea how to do that?
Tnx.
MVVM focused answer:
I'm sure there is a property which allows you to hide or show the scroll bars.
Bind this property to your ViewModel.
Create a MouseOver event which fires when the mouse moves into a certain part of the screen. To do this, you could overlay an invisible grid over the screen, with the right hand 10% as the target area.
Now when the mouse enters the region, show the scrollbar, and when it exits the region, hide the scrollbar.
Ensure that you set the MinWidth on the invisible region, so that if the window gets narrow, the scrollbar trigger area is still wide enough to be usable.

Adding glass effect to listbox item

I have a stackpanel with a background image. Inside the stackpanel there is a ListBox and its background is set to transparent, what I need is to blur (glass effect) the background image only the part that comes under the listbox item. I tried to add a rectangle to transparent color in the listbox item template and then added a blurred effect but it doesn't work. This is what I am trying to achieve.
I came across this some time ago, maybe will help with what you're after.

How to specify z-index for a panel

Hi I'm new to WPF and I want to place a Panel upon a StackPanel and show and hide it in my window without using Canvas and changing positions and size of other controls or the window.
Something like the fallowing image which the solution explorer is opened on another Panel, and as we see the user even can change the position of the Panel.
If you have a Grid as the Root Layout and a StackPanel on that, you can still use Canvas.
Canvas.SetZIndex(<YourPanelYouWantInFront>, <LargeValue (100)>);

Resources