Hi,
Thank you for reaching out to us. We have reviewed your query based on the details you
provided. From the snippet you shared, we understand that you are trying to
create a custom TextInputLayout control with InputView support as an Entry. To
address this, we have created a sample with a CustomTextInputLayout control
that uses an Entry as its Content. Additionally, we have set the
ClearButtonVisibility to WhileEditing for the Entry to ensure the clear button
is displayed and works as expected.
Here is the snippet:
public class
CustomTextInputLayout : SfTextInputLayout
{
private
Entry _inputView;
public
Entry InputView
{
get
=> _inputView;
set
{
_inputView = value;
base.Content = _inputView;
}
}
public
CustomTextInputLayout()
{
//
Initialize the InputView in the constructor
InputView = new Entry
{
Placeholder = "Enter text",
};
}
}
|
We have attached the sample for your reference. Kindly
review the sample and share your observations. If the issue persists, please
provide additional details or modifications to the shared sample, which will
help us investigate further and provide a precise solution.
Don’t hesitate to contact us if you have any concerns
or further queries.
Regards,
Hariharan
Attachment:
TextInputLayoutMaui_b84597fc.zip