Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

StatusBar Item height and sizing #13

Open
FireEmerald opened this issue Sep 12, 2018 · 1 comment
Open

StatusBar Item height and sizing #13

FireEmerald opened this issue Sep 12, 2018 · 1 comment

Comments

@FireEmerald
Copy link

FireEmerald commented Sep 12, 2018

<Setter Property="Height" Value="18"/>

This setter leads to a fixed height of the status bar, which means if the inner element is larger, the item is cut off. To test this replace:

<StatusBarItem>Ready</StatusBarItem>

with <StatusBarItem><Label Content="Ready"></Label></StatusBarItem>.

You could either remove the setter line or replace Height with MinHeight.


Another issue is that the FontSize of a StatusBarItem does not scale with the windows FontSize if you append to <Window ... FontSize="16". Any idea why? (Edit: Seems like this kicks in...)

@DanPristupov
Copy link
Owner

I'll briefly check this tomorrow, but generally I'm too busy working on http://git-fork.com/windows.

It seems that you need to define FontSize within StatusBarItem ContentPresenter as {TemplateBinding FontSize}

You can contribute by creating a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants