Maui.FreakyControls icon indicating copy to clipboard operation
Maui.FreakyControls copied to clipboard

[Feature Request] FreakyAutoCompleteView improvements for text styles

Open MasterOutLite opened this issue 1 year ago • 4 comments

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.

MasterOutLite avatar Jul 30 '24 09:07 MasterOutLite

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)

FreakyAli avatar Jul 30 '24 09:07 FreakyAli

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 `

<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:freakyControls="clr-namespace:Maui.FreakyControls;assembly=Maui.FreakyControls" xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" x:Class="Logistic.Components.CustomAutocomplete" x:Name="Component"> <VerticalStackLayout BindingContext="{x:Reference Component}"> <VerticalStackLayout.GestureRecognizers> <TapGestureRecognizer Tapped="TapGestureRecognizer_OnTapped" /> </VerticalStackLayout.GestureRecognizers> <VerticalStackLayout> <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 `

<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:freakyControls="clr-namespace:Maui.FreakyControls;assembly=Maui.FreakyControls" x:Class="Logistic.Components.PickerComponent" x:Name="Component">

<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

MasterOutLite avatar Jul 30 '24 13:07 MasterOutLite

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 avatar Jul 30 '24 13:07 FreakyAli

Please, do it :)

jpmm94 avatar Aug 13 '24 11:08 jpmm94

Adding all these properties except TextTransform as the options you see in AutoComplete is what should be displayed

FreakyAli avatar Apr 30 '25 01:04 FreakyAli