Neo | QuantFreedom
Neo | QuantFreedom
CC#
Created by Neo | QuantFreedom on 11/10/2024 in #help
Flyout Styling (Avalonia)
i am using avalonia and i don't have any code to include because its just a flyout
5 replies
CC#
Created by Neo | QuantFreedom on 11/9/2024 in #help
Avalonia Data Trigger
No description
23 replies
CC#
Created by Neo | QuantFreedom on 11/9/2024 in #help
Avalonia Data Trigger
this is what i have so far for developing my proof of concept
23 replies
CC#
Created by Neo | QuantFreedom on 11/9/2024 in #help
Avalonia Data Trigger
how long have you been working with avalonia? also is it your main way to create desktop apps or do you use maui
23 replies
CC#
Created by Neo | QuantFreedom on 11/9/2024 in #help
Avalonia Data Trigger
nevermind i guess you are supposed to do it this way
<UserControl.Styles>
<Style Selector="ToggleButton:checked /template/ ContentPresenter">
<Setter Property="FontFamily" Value="{StaticResource FaSolid}" />
<Setter Property="Background" Value="Transparent" />
</Style>
<Style Selector="ToggleButton:unchecked /template/ ContentPresenter">
<Setter Property="FontFamily" Value="{StaticResource FaRegular}" />
<Setter Property="Background" Value="Transparent" />
</Style>
</UserControl.Styles>
<UserControl.Styles>
<Style Selector="ToggleButton:checked /template/ ContentPresenter">
<Setter Property="FontFamily" Value="{StaticResource FaSolid}" />
<Setter Property="Background" Value="Transparent" />
</Style>
<Style Selector="ToggleButton:unchecked /template/ ContentPresenter">
<Setter Property="FontFamily" Value="{StaticResource FaRegular}" />
<Setter Property="Background" Value="Transparent" />
</Style>
</UserControl.Styles>
23 replies
CC#
Created by Neo | QuantFreedom on 11/9/2024 in #help
Avalonia Data Trigger
<UserControl.Styles>
<Style Selector="ToggleButton:pointerover">
<Setter Property="Background" Value="Transparent" />
</Style>
<Style Selector="ToggleButton:checked">
<Setter Property="FontFamily" Value="{StaticResource FaSolid}" />
<Setter Property="Background" Value="Transparent" />
</Style>
<Style Selector="ToggleButton:unchecked">
<Setter Property="FontFamily" Value="{StaticResource FaRegular}" />
<Setter Property="Background" Value="Transparent" />
</Style>
</UserControl.Styles>
<UserControl.Styles>
<Style Selector="ToggleButton:pointerover">
<Setter Property="Background" Value="Transparent" />
</Style>
<Style Selector="ToggleButton:checked">
<Setter Property="FontFamily" Value="{StaticResource FaSolid}" />
<Setter Property="Background" Value="Transparent" />
</Style>
<Style Selector="ToggleButton:unchecked">
<Setter Property="FontFamily" Value="{StaticResource FaRegular}" />
<Setter Property="Background" Value="Transparent" />
</Style>
</UserControl.Styles>
23 replies
CC#
Created by Neo | QuantFreedom on 11/9/2024 in #help
Avalonia Data Trigger
@ero do you know how to change the background of the togglebutton when the you hover your mouse over the button? if you do can you send me working code because i can only get the background to be trasnparent when it is unchecked When its checked it is blue and when you hover your mouse over it, it turns grey
23 replies
CC#
Created by Neo | QuantFreedom on 11/9/2024 in #help
Avalonia Data Trigger
i am so dumb ... i should read the documentation before i ask questions
23 replies
CC#
Created by Neo | QuantFreedom on 11/9/2024 in #help
Avalonia Data Trigger
but now the checked or unchecked needs to be bound to a bool If true then checked if false then unchecked
23 replies
CC#
Created by Neo | QuantFreedom on 11/9/2024 in #help
Avalonia Data Trigger
oh wow ... i had no idea they had a built in toggle button
23 replies
CC#
Created by Neo | QuantFreedom on 11/9/2024 in #help
Avalonia Data Trigger
no ... i am looking to change the background if the button is clicked which would turn IsSelected to true then when it is clicked again it would change the background and would change IsSelected to false
23 replies