I'm using the FormsCommunityToolkit NuGet Package to make it so all of my Entries in my Xamarin.Forms app select all of their text when a user clicks on them. The example on their GitHub for using this effect on an Entry in XAML is this:
<Entry Placeholder="focus this entry." VerticalOptions="Start" Text = "FOCUS THIS!">
<Entry.Effects>
<effects:SelectAllTextEntryEffect />
</Entry.Effects>
</Entry>
This works if you put it on each individual Entry in your code, but I have a lot of Entries and would like to set it as the default in my App.xaml folder. I tried this:
<Style TargetType="Entry">
<Setter Property="Keyboard" Value="Text"/> <!--Defaults to capitalize first word-->
<Setter Property="Effects" Value="effects:SelectAllTextEntryEffect" />
</Style>
This method works for setting the default Keyboard for all entries, but setting the Effects in this way crashes the app with this error:
Can't resolve EffectsProperty on Entry
Does anybody know a way of doing this so I don't need to add the code to all of my Entries?