Skip to content

ui:button icon not bindable #1720

Description

@ahmedtalaat327

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions