Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hc:NumericUpDown 中不支持数据校验吗? #224

Open
LiuChao19940201 opened this issue Jun 11, 2024 · 0 comments
Open

hc:NumericUpDown 中不支持数据校验吗? #224

LiuChao19940201 opened this issue Jun 11, 2024 · 0 comments

Comments

@LiuChao19940201
Copy link

Feature request type

sample request

Is your feature request related to a problem? Please describe

                                        <hc:NumericUpDown hc:InfoElement.Title="积分时间" 
                                                          Value="{Binding HomeModels.UpperReflexMeasParam.IntegralTime, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" 
                                                          Style="{StaticResource MyNumericUpDownPlus}"
                                                          Padding="0" BorderThickness="1" Opacity="0.8" BorderBrush="Gray"
                                                          Width="130" Height="30" FontSize="20" Margin="10 0 0 0"
                                                          Validation.ErrorTemplate="{StaticResource TextBoxErrorTemplate}">
                                            <hc:NumericUpDown.Resources>
                                                <Style TargetType="hc:NumericUpDown" BasedOn="{StaticResource MyNumericUpDownPlus}">
                                                    <Setter Property="Validation.ErrorTemplate" Value="{StaticResource TextBoxErrorTemplate}" />
                                                    <Setter Property="Width" Value="130" />
                                                </Style>
                                            </hc:NumericUpDown.Resources>
                                        </hc:NumericUpDown>

微信图片_20240611105029

Describe the solution you'd like

在输入框中可以自定义错误数据校验格式,但还是在hc:NumericUpDown中却不行??

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant