コード例 #1
0
        public override Task InitializeAsync(object navigationData)
        {
            if (navigationData is object[] data && data[0] is Message message && data[1] is bool fromInbox)
            {
                FromInbox       = fromInbox;
                FromOrTo        = FromInbox ? "From: " : "To: "; //todo move to resources
                SelectedMessage = message;

                DaysAgo = MessageUtils.CalculateDays(message.Date.ToLocalTime());
            }
            return(base.InitializeAsync(navigationData));
        }