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

Text of TextBlock In FormFieldNumberPicker shoue be binding #13

Open
jeffersyuan1976 opened this issue Nov 14, 2024 · 0 comments
Open

Comments

@jeffersyuan1976
Copy link

currently, the text is not using TemplateBinding to bind Title property. which is always display as "user"

<UserControl.Styles>
    <Style Selector="formFields|FormFieldNumberPicker">
        <Setter Property="Template">
            <ControlTemplate>
                <Grid Height="47">
                    <TextBlock
                        FontWeight="DemiBold"
                        HorizontalAlignment="Left"
                        Text="{TemplateBinding Title}"
                        VerticalAlignment="Center" />
                    <mobileNumberPicker:MobileNumberPicker
                        HorizontalAlignment="Right"
                        Margin="-30,0"
                        Maximum="{TemplateBinding Maximum}"
                        Minimum="{TemplateBinding Minimum}"
                        Value="{TemplateBinding Value,
                                                Mode=TwoWay}"
                        VerticalAlignment="Center" />
                </Grid>
            </ControlTemplate>
        </Setter>
    </Style>
</UserControl.Styles>
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