ui:button icon not bindable
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Hi there i was trying to update the synbol object inside hte button
the code :
`
<ui:Button DockPanel.Dock="Right" ToolTip="Sniff packts"
Background="#006fff" VerticalAlignment="Bottom" Margin="30" MinHeight="45" MinWidth="45" CornerRadius="30" HorizontalAlignment="Right" Click="Button_Click_1">
<ui:Button.Icon>
<ui:SymbolIcon d:DataContext="true" Width="20" Symbol="{Binding IsSniffingMonitorActive, Converter={StaticResource BooleanToIconConverter}, ConverterParameter=IsSniffingMonitorActive, Mode=OneWay}" />
</ui:Button.Icon>
<ui:Button.Effect>
<DropShadowEffect ShadowDepth="0.1" BlurRadius="115"/>
</ui:Button.Effect>`
seems not working
To Reproduce
should update depending on converter i've even binded the regularsymbol direct also not showing
Expected behavior
icon should show but comes empty
Screenshots
No response
OS version
windows 11 ver 26200
.NET version
.net ver 8.xx
WPF-UI NuGet version
3.0.4
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the provided Button.Icon and SymbolIcon binding example with WPF-UI 3.0.4 on .NET 8 under Windows. Trace how the button icon and Symbol binding are handled, then verify that a directly bound or converter-produced symbol displays and updates as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100