FreakyAli / Maui.FreakyControls

FreakyControls is a free OSS UI Kit for .NET MAUI which provides a set of controls and utilities to build modern mobile apps.
MIT License
312 stars 37 forks source link

FreakyAutoCompleteView improvements for text styles #139

Open MasterOutLite opened 3 months ago

MasterOutLite commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 ` <?xml version="1.0" encoding="utf-8"?>

<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">

`

FreakyPicker ` <?xml version="1.0" encoding="utf-8"?>

<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

FreakyAli commented 3 months ago

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!!

jpmm94 commented 3 months ago

Please, do it :)