I've got a RRTB with the RRTBRUI in my application, where table cell alignment is all botched.
(The ribbon was created by dropping the RRTBRUI on the design surface. I then removed editing options I don't want the user to have.)
To illustrate, please view the attached image. You can see that not only is 1) the context menu alignment button 2) not being respected within the design surface, but also 3) within the ribbon you can click an entire row of alignment buttons.
To try and debug this, I have
Copied the markup exactly, and was unable to repro in a minimal solution. Damn.
I watched mouse events in both a working example and in my non-working example, and did not see events being handled any differently. Damn.
I checked to see if there were any Styles with default keys that were interfering with the RadToggleButton in any way, and had none. Damn.
Cranked up all trace levels and repro'd. Nothing. Well, actually LOTS of nothing. But 99% was binding failures before the commands binding was updated ("DataItem=null"), and the rest were about "Path=Menu.IconColumnWidth". Damn.
Listened to CommandError, CommandExecuting, and CommandExecuted. Verified the correct command and the correct command parameters are being passed every time, for every button. And CommandError never fires when using these buttons. Damn.
So that leaves me stumped. I know the RRTBRUI is doing stuff in the background, probably walking its children, managing their state. But I don't know how this is happening, so I can't figure out what is going wrong.
How does the RRTBRUI handle cell alignment? What are the things that could go wrong? Any ideas?
(The ribbon was created by dropping the RRTBRUI on the design surface. I then removed editing options I don't want the user to have.)
To illustrate, please view the attached image. You can see that not only is 1) the context menu alignment button 2) not being respected within the design surface, but also 3) within the ribbon you can click an entire row of alignment buttons.
To try and debug this, I have
- copied the exact markup into a minimal solution
- compared mouse events
- examined application resources
- cranked wpf trace levels to ALL
- Listened to RTB command events
Copied the markup exactly, and was unable to repro in a minimal solution. Damn.
I watched mouse events in both a working example and in my non-working example, and did not see events being handled any differently. Damn.
I checked to see if there were any Styles with default keys that were interfering with the RadToggleButton in any way, and had none. Damn.
Cranked up all trace levels and repro'd. Nothing. Well, actually LOTS of nothing. But 99% was binding failures before the commands binding was updated ("DataItem=null"), and the rest were about "Path=Menu.IconColumnWidth". Damn.
Listened to CommandError, CommandExecuting, and CommandExecuted. Verified the correct command and the correct command parameters are being passed every time, for every button. And CommandError never fires when using these buttons. Damn.
So that leaves me stumped. I know the RRTBRUI is doing stuff in the background, probably walking its children, managing their state. But I don't know how this is happening, so I can't figure out what is going wrong.
How does the RRTBRUI handle cell alignment? What are the things that could go wrong? Any ideas?