0

I have a menuitem with ischeckable and it comes with a checkmark. i wish to remove the checkmark that comes with it. I have a packicon but it doesnt overwrite the checkmark also. Any help please!

<MenuItem Header="Save Trace" Command="{Binding SaveXML}" 
                              IsCheckable="True" 
                              IsChecked="{Binding SavingTrace,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" 
                              IsEnabled="{Binding StartTraceEnable}" >
                              <MenuItem.Icon>
                                    <materialDesign:PackIcon Kind="Restore" />
                              </MenuItem>
falcon
  • 1
  • 3
  • Does this answer your question? [Remove checkmark from MenuItems?](https://stackoverflow.com/questions/28680392/remove-checkmark-from-menuitems) – Sinatr Jun 02 '21 at 12:45
  • i had checked it out, but i have no idea how to collapse the value during runtime. so it didnt help me. – falcon Jun 02 '21 at 12:48
  • *"no idea how to collapse the value during runtime"* - change menu item `Visibility` property. – Sinatr Jun 02 '21 at 12:52
  • since i have used isenabled property for the menuitem, its disbaled during runtime. – falcon Jun 02 '21 at 12:56
  • `Visibility` and `IsEnabled` are two different things. `Visibility = Collapsed` should truly hide menu item from the screen. – Sinatr Jun 02 '21 at 12:59
  • okay. let me try doing that. thanks! – falcon Jun 02 '21 at 14:45

0 Answers0