Generally if there is a property that gets/sets a value for state, I use "Is", like:
Visibility:
.IsVisible
But for properties that gets/sets actions, what is best to use? Like:
Casting shadows:
.CastShadows
Should I use:
.DoesCastShadows
Is there a better alternative?
Much of the library uses something that would be like .IsShadowCastingEnabled.
For example, UIElement defines IsInputMethodEnabled and IsHitTestVisible.
The nice thing about this is that IsXXX makes it very clear that this is a boolean property.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With