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

[Feature Request] FreakyAutoCompleteView improvements for text styles #139

Open
MasterOutLite opened this issue Jul 30, 2024 · 4 comments
Open
Labels
enhancement New feature or request

Comments

@MasterOutLite
Copy link

MasterOutLite commented Jul 30, 2024

Add a set of properties as in Entry or Picker

  1. Add HorizontalTextAlignment
  2. Add VerticalTextAlignment
  3. Add FontAttributes
  4. Add FontFamily
  5. Add FontSize
  6. Add TextTransform

It is necessary to be able to define parameters for text as in other controls that use text.

@FreakyAli
Copy link
Owner

Can you raise a feature request mentioning everything you need and then I can take a look (this doesn't look like a bug for the control)

@MasterOutLite
Copy link
Author

MasterOutLite commented Jul 30, 2024

didn't quite understand. I am using a translator.

Here I have an example with a screen where FreakyAutoCompleteView is in the middle. FreakyPicker between him. I need to leave the text centered.
image

Freaky Picker I can set the text parameters, but in Freaky AutoComplete View I can't

FreakyAutoCompleteView
`



<VerticalStackLayout.GestureRecognizers>

</VerticalStackLayout.GestureRecognizers>

<freakyControls:FreakyAutoCompleteView
x:Name="AutoCompleteView"
Text="{Binding Text}"
TextColor="White"
Placeholder="{Binding Placeholder}"
PlaceholderColor="{StaticResource Gray300}"
TextMemberPath="{Binding DisplayBindingName}"

            ImageAlignment="Right"
            ImageCommand="{Binding ImageCommand}"
            ImageHeight="{OnPlatform 25,iOS=25, Android=15}"
            ImagePadding="0"
            ImageSource="arrow_down.png"
            ImageWidth="{OnPlatform 25, iOS=25, Android=20}"

            ItemsSource="{Binding FilteredItems}"
            DisplayMemberPath="{Binding DisplayBindingName}"

            Focused="AutoCompleteView_OnFocused"
            Threshold="1"
            UpdateTextOnSelect="True"

            QuerySubmitted="FreakyAutoCompleteView_QuerySubmitted"
            TextChanged="FreakyAutoCompleteView_TextChanged"
            SuggestionChosen="AutoCompleteView_OnSuggestionChosen"
            Margin="0, 0, 0, -10" />
    </VerticalStackLayout>

    <BoxView x:Name="Line"
             HeightRequest="1"
             WidthRequest="-1"
             Background="{StaticResource White}" />

    <Label Text="{Binding Label}"
           Style="{StaticResource Error}"
           IsVisible="{Binding IsValid, Converter={toolkit:InvertedBoolConverter}}" />
</VerticalStackLayout>
`

FreakyPicker
`

<VerticalStackLayout BindingContext="{x:Reference Component}"
                     VerticalOptions="Start">
    <freakyControls:FreakyPicker
        x:Name="FreakyPicker"
        ImageAlignment="Right"
        ImageHeight="{OnPlatform 25,
                          iOS=25,
                          Android=15}"
        ImagePadding="5"
        ImageSource="arrow_down.png"
        ImageWidth="{OnPlatform 25,
                         iOS=25,
                         Android=20}"

        FontSize="20"
        FontFamily="JuraRegular"
        HorizontalTextAlignment="Center"
        Title="{Binding Placeholder}"
        TextColor="White"
        TitleColor="White"

        ItemsSource="{Binding ElementsSource}"
        SelectedItem="{Binding SelectedItem}"
        SelectedIndexChanged="FreakyPicker_OnSelectedIndexChanged"
        Margin="0, 0, 0, -10"/>
    <BoxView x:Name="Line"
             HeightRequest="1"
             WidthRequest="-1"
             Background="{StaticResource White}" />
</VerticalStackLayout>
`

It turns out that I can't find where I can change the parameters for the text in FreakyAutoCompleteView

@FreakyAli
Copy link
Owner

You have raised a bug, this is a feature request.
Raise a feature request, in that feature request mention the features you want in the control.

Translate that!!

@FreakyAli FreakyAli added the enhancement New feature or request label Jul 30, 2024
@MasterOutLite MasterOutLite changed the title FreakyAutoCompleteView HorizontalTextAlignment="Center" FreakyAutoCompleteView improvements for text styles Jul 30, 2024
@jpmm94
Copy link

jpmm94 commented Aug 13, 2024

Please, do it :)

@FreakyAli FreakyAli changed the title FreakyAutoCompleteView improvements for text styles [Feature Request] FreakyAutoCompleteView improvements for text styles Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants