I want to use Devexpress Editor TextEdit but I can not bind this to XCT UserStoppedTypingBehavior
I'm usng this code below :
<dxe:TextEdit
Margin="2"
LabelText="Evrak Seri"
LabelFontSize="16"
LabelColor="Black"
IsVisible="{Binding EvrakSeriSiraGorunum}"
BackgroundColor="White"
BorderColor="Black"
WidthRequest="300"
Text="{Binding EvrakseriText}"
ReserveBottomTextLine="True"
IsLabelFloating="False"
x:Name="evrakSeriText1"
>
<dxe:TextEdit.Behaviors>
<xct:UserStoppedTypingBehavior Command="{Binding SearchCommand}" />
</dxe:TextEdit.Behaviors>
<dxe:TextEdit.Triggers>
<DataTrigger TargetType="dxe:TextEdit" Value="-1" Binding="{Binding Source={x:Reference evrakSeriText1},
Path=Text.Length}" >
</DataTrigger>
</dxe:TextEdit.Triggers>
</dxe:TextEdit>
The error is : System.InvalidOperationException Message=bindable not an instance of AssociatedType I think this "TargetType" is wrong but I can not find the true one.
Is this textedit have anything like xct:UserStoppedTypingBehavior ? If it's not, how can I fix this ?
There is an similar issue on the devexpress support center for the maui. You can check the TextEdit with .NET MAUI Community Toolkit.
And I also checked the source code in the xamarin: The EditBase Class inherit the View Class, but the UserStoppedTypingBehavior can only be attached to elements that inherit InputView.
You can use the EditBase.Completed Event to do what you want .