lepoco / lepoco/wpfui

ui:button icon not bindable

Open
#1,720 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.