问题描述
我正在使用 MaterialDesign 库,我有一个切换按钮,目前只有两种状态,一种用于 Edge 浏览器,另一种用于 Chrome,PackIcons 代表每个浏览器。
如何使用第三个 PackIcon 图像(即 IE11)添加第三个状态,以便我可以选择三个状态,即:Edge、Chrome 和 IE11?
<ToggleButton Foreground="DodgerBlue" IsThreeState="True" Margin="2"
Style="{StaticResource MaterialDesignActionToggleButton}"
ToolTip="Chcck this out!"
IsChecked="{Binding Path=xxxxxxxxxxxxx,Mode=TwoWay}">
<ToggleButton.Content>
<materialDesign:PackIcon Kind="MicrosoftEdge" Height="Auto" Width="Auto"/>
</ToggleButton.Content>
<materialDesign:ToggleButtonAssist.OnContent >
<materialDesign:PackIcon Kind="GoogleChrome" Height="Auto" Width="Auto" Foreground="Red"/>
</materialDesign:ToggleButtonAssist.OnContent>
</ToggleButton>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)