MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

Initial foreground of Icon in TabItem Header

Open
#3,670 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug evaluation required
Dominant language
C#
Stars
16.3k
Forks
3.5k
Avg merge
1d 22h
Merged PRs (30d)
8

Description

### Bug explanation

When using a `PackIcon` inside of the header of a `TabItem`, the PackIcons foreground is initially not set correctly.
Once you switch the tabs the foreground fixes itself (notice how the color of the Icon in the first tab changes from white to green):
![TabItemForegroundBug](https://github.com/user-attachments/assets/fbda350c-a9b1-47ed-8d5c-158c6b188d5c)

[Here](https://github.com/corvinsz/TabItemForeground) is a repo that showcases this bug.

### Version

5.1.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using the linked TabItemForeground repository with a PackIcon inside a TabItem header on version 5.1.0. Trace the TabItem and PackIcon foreground behavior before and after switching tabs; done means the first tab's icon has the correct foreground immediately, without switching tabs.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
design, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.