locked
Problem editing toggle button template that is within a listbox RRS feed

  • Question

  • I have a listbox that is styled to display its contents with a toggle button but whenever i try to modify the states of the toggle button, i get an error saying "this operation is valid only on elements that have this template applied". The only way now to edit the toggle button style is to create a toggle button outside of the list and modify the states there. The app runs fine with the styles applied, but when i try to even just opening the listbox template once i have modified the toggle button states, i get that exception. Is there a fix to this?
    Tuesday, July 6, 2010 2:51 PM

All replies

  • Hi Jocelyn,

    Is it possible to get a XAML repro for this so we can investigate the issue? You could email it to me at unnir at microsoft dot com.

    Is this for a wpf or silverlight project?

    Thanks,

    Unni


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Thursday, July 8, 2010 1:18 AM
  • Hi Unni, I've sent you the wpf solution. :)
    Wednesday, July 14, 2010 12:34 PM