[Feature Request] FreakyAutoCompleteView improvements for text styles
Add a set of properties as in Entry or Picker
- Add HorizontalTextAlignment
- Add VerticalTextAlignment
- Add FontAttributes
- Add FontFamily
- Add FontSize
- Add TextTransform
It is necessary to be able to define parameters for text as in other controls that use text.
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)
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.
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
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!!
Please, do it :)
Adding all these properties except TextTransform as the options you see in AutoComplete is what should be displayed