These are chat archives for AvaloniaUI/Avalonia

17th
Nov 2018
Kermalis
@Kermalis
Nov 17 2018 04:30
image.png
Why is this tooltip blank?
<Button Width="73" Height="30" Content="{Binding Label}" Command="{Binding SelectPokemonCommand}"
                    Background="Black" BorderThickness="4" Foreground="White"
                    FontSize="16" FontFamily="resm:Kermalis.PokemonBattleEngineClient.Assets.Fonts?assembly=PokemonBattleEngineClient#Pokémon B/W">
              <ToolTip.Tip>
                <TextBlock Text="abcd"/>
              </ToolTip.Tip>
            </Button>
And can I have a tooltip activate when the button is disabled?
Kermalis
@Kermalis
Nov 17 2018 05:06
It seems to take the size of the text that would be there into account, it gets larger when I add more text, but it's just blank for some reason.
ahopper
@ahopper
Nov 17 2018 06:20
I suspect it is white text on a white background
Kermalis
@Kermalis
Nov 17 2018 06:22
you're right, setting foreground to black fixed it
why was it white?
ahopper
@ahopper
Nov 17 2018 06:29
foreground was passed down from button, not sure why background wasn't. I tend to put an explicit textblock in buttons and set font stuff there
Steven Kirk
@grokys
Nov 17 2018 10:07
Ah that might be related to @wieslawsoltes recent theming changes