Skip to content

How to style TabStrip - specifically :pointerover and the tab strip height #18509

Answered by CameO73
CameO73 asked this question in Q&A
Discussion options

You must be logged in to vote

I've fixed my issue. I had a completely wrong idea about the DataTemplate and made it much harder on myself.
I've described my working solution here: https://stackoverflow.com/questions/79531102/how-to-style-avalonia-tabstrip-specifically-pointerover-and-the-tab-strip-hei/79531679#79531679

TLDR: just provide the tab contents you want instead of creating a TabItem

        <DataTemplate DataType="models:ServiceHealthHistory">
            <Panel Height="16">
                <Rectangle Fill="{Binding Status}"/>
            </Panel>
        </DataTemplate>

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by CameO73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant