Repository navigation
Replies: 2 comments 1 reply
|
@hxhgxy You should be able to achieve this by applying your attached property to the style used for the "editing element". When a data grid cell of a So you should define a named |
0 replies
|
Thanks. If so, it is easier to use DataGridTemplateColumn, right? I'm using TextBox under DataGridTemplateColumn and set the attached property on TextBox currently. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I made attach property for TextBox to accept numbers only. How can I apply this to DataGridTextColumn?
Thanks,
` public static bool GetIsOnlyNumber(DependencyObject obj)
{
return (bool)obj.GetValue(IsOnlyNumberProperty);
}
`
All reactions