HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

SideMenu控件没办法动态绑定数据吗?

Open PiaoYiQiang opened this issue 1 year ago • 9 comments
trafficstars

Describe the bug

hc:TransitioningContentControl <hc:SideMenu BorderThickness="1" Width="200" Margin="32" ItemsSource="{Binding DataList}"> hc:Interaction.Triggers <hc:EventTrigger EventName="SelectionChanged"> <hc:EventToCommand Command="{Binding SwitchItemCmd}" PassEventArgsToCommand="True" /> </hc:EventTrigger> </hc:Interaction.Triggers> <hc:SideMenu Margin="10"> hc:SideMenu.ItemTemplate <DataTemplate> <hc:SideMenuItem Header="{Binding MenuHeader}"/> </DataTemplate> </hc:SideMenu.ItemTemplate> </hc:SideMenu> </hc:SideMenu> </hc:TransitioningContentControl>

Steps to reproduce the bug

SideMenu控件没办法动态绑定数据吗?试了很久,是不是这个控件只能把菜单写死

Expected behavior

No response

Screenshots

No response

NuGet package version

None

IDE

Visual Studio 2022

Framework type

.Net 6.0

Windows version

May 2021 Update (19043)

Additional context

No response

PiaoYiQiang avatar Jul 02 '24 10:07 PiaoYiQiang