Search found 2 matches

by nadav.shragai
14 Nov 2024, 14:41
Forum: General Discussion
Replies: 3
Views: 18280

Re: Coerce and validate

Thanks sfernandez, Good answer. Regarding the last answer, the order of execution. I managed to investigate it a bit better myself. According to what I see, CoerceValueCallback is executed before ValidateValueCallback. It's actually reasonable. We would like ValidateValueCallback to validate the fin...
by nadav.shragai
14 Nov 2024, 10:58
Forum: General Discussion
Replies: 3
Views: 18280

Coerce and validate

I'm trying to understand the concept behind coerce and validate. In DependencyProperty's constructor you can give it ValidateValueCallback. When registering the DependencyProperty in UIElementData::RegisterProperty<>, I can also add ValidateValueCallback. Also, in registering, the PropertyMetadata m...