In This Article

Troubleshooting

This topic contains troubleshooting data specific to the Bars product.

Note

For some more troubleshooting information that relates both to this product as well as other WPF Studio products, please see the more general Troubleshooting topic.

FileNotFoundException or DirectoryNotFoundException When Specifying Bitmap Image Sources

If you use relative paths for your bitmap image sources, you might encounter a FileNotFoundException or DirectoryNotFoundException in some cases. This exception can occur behind the scenes where the image is being reloaded outside of its original XAML context and thus can lose its contextual information for determining a relative path. Using an absolute path via standard WPF pack syntax allows the image to be loaded properly in any scenario.

Many of the Bars controls like the buttons use the DynamicImage control in their templates, which is a Shared Library control that allows for disabled buttons to render their images in grayscale. Please see the DynamicImage topic for more detailed information on this exception and exactly how to resolve it.

Ribbon Shows in Designer but Disappears at Run-Time

This scenario could happen if you accidentally set a Width or Height on the Ribbon control or one of its containers that causes the Ribbon to be smaller than the CollapseThresholdSize. When the Ribbon becomes smaller than CollapseThresholdSize at run-time and IsCollapsible is set to true, the Ribbon will hide.

This scenario is most likely to occur when you are adjusting control layouts in the designer and adjust the Ribbon or a parent container's size accidentally.

To resolve this issue, simply remove any explicit Width or Height setting on the Ribbon or a parent container that is causing the Ribbon's size be smaller than CollapseThresholdSize. Alternatively, change IsCollapsible to false.

This can occur when you are using a tablet PC or drawing tablet. The menu placement behavior will differ depending on whether the tablet support is configured for left-handed or right-handed use. This was designed so that menus do not appear under the user's hand.

To resolve this issue, simply change the tablet support configuration to left-handed.