Example of Chat in Xamarin.Forms applications - http://julianocustodio.com/chat
using System; | |
using MvvmHelpers; | |
namespace DemoChat.Models | |
{ | |
public class Message : ObservableObject | |
{ | |
public string Text | |
{ | |
get { return _text; } | |
set { SetProperty(ref _text, value); } | |
} | |
string _text; | |
public DateTime MessageDateTime | |
{ | |
get { return _messageDateTime; } | |
set { SetProperty(ref _messageDateTime, value); } | |
} | |
DateTime _messageDateTime; | |
public string TimeDisplay => MessageDateTime.ToLocalTime().ToString(); | |
public bool IsTextIn | |
{ | |
get { return _isTextIn; } | |
set { SetProperty(ref _isTextIn, value); } | |
} | |
bool _isTextIn; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment