Error Template used to work.

Grids for WPF Forum

Posted 13 years ago by jeff jarrell
Version: 10.2.0532
Avatar
This definition used to work. The backing data object would throw an exception and I could catch it with the ValidationErrorTemplate. Now VS2010 breaks on the exception in the business class and then it goes to our unhandled exception handler. It's been a while since I actually checked this, so it may not have anything at all to do with you. We are using 10.2.532.

Thanks.



    <actPropGrid:PropertyEditorsModifier x:Key="{x:Static actPropGrid:BuiltinEditors.PropertyEditorsModifierKey}">
        <actPropGrid:PropertyEditorsModifierActionAdd>
            <actPropGrid:TextBoxPropertyEditor>
                <actPropGrid:TextBoxPropertyEditor.ValueStyles>
                    <actPropGrid:PropertyEditorStyle Key="{x:Type TextBox}">
                        <actPropGrid:PropertyEditorStyle.Style>
                            <Style TargetType="{x:Type TextBox}">
                                <Setter Property="Validation.ErrorTemplate"
                                                        Value="{DynamicResource {x:Static gr:ControlTemplates.RichToolTipValidationKey}}" />
                            </Style>
                        </actPropGrid:PropertyEditorStyle.Style>
                    </actPropGrid:PropertyEditorStyle>
                </actPropGrid:TextBoxPropertyEditor.ValueStyles>
            </actPropGrid:TextBoxPropertyEditor>
        </actPropGrid:PropertyEditorsModifierActionAdd>

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jeff,

Sorry, I'm not sure what the issue could be. I just tested our Data Validation QuickStart in our Sample Browser, which uses code similar to yours, and it appears to work fine. If you can put together a small sample project that reproduces the issue and email it over to our support address, then we can take a closer look.


Actipro Software Support

Posted 13 years ago by jeff jarrell
Avatar
I appreciate the quick look. I'm sure it's on my side.

Thanks.
The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.