|
………
(((this.sfChat as ContentView).Content as Grid).Children[0] as SfListView).Loaded += ListView_Loaded; ………… private void ListView_Loaded(object sender, ListViewLoadedEventArgs e) {
var footerView = (Grid)this.sfChat.GetType().GetRuntimeProperties().FirstOrDefault(x => x.Name.Equals("FooterView")).GetValue(this.sfChat);
((((footerView.Children[1] as ContentView).Content as SfBorder).Content as Grid).Children[0] as Editor).Placeholder = "Type your reflective question here";
} |
Hi Shylaja,
We suspect that you have tried to change the placeholder text on after initializing the SfChat. So, only it not changed. So implement that code on ListView loaded event to change the placeholder text. If you still facing the same issue ? please let us know the SfChat and Xamarin Forms versions. Because it will help us to provide a better solution earlier.
Regards,Karthik Raja
|
public SimpleChatPage()
{
InitializeComponent();
sfChat.Editor.PropertyChanged += Editor_PropertyChanged;
} |
|
private void Editor_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if(e.PropertyName == "Placeholder")
{
sfChat.Editor.Placeholder = "Type your reflective question here";
}
} |