コード例 #1
0
        public void Clear()
        {
            // Clear text: as consequence this component's size will be changed and eventually we ask parent to update layout
            EntryMessage.SetEditorText("");

            // Clear attachment
            MessageInputAttachments.Clear();
        }
コード例 #2
0
        public void StartEditionMode(String messageId, String messageBody)
        {
            // Store message Id
            editMessageId = messageId;

            ButtonUrgency.IsVisible = false;
            // Attachment is used to stop edition mode
            FrameBeforeButtonAttachment.IsVisible = true;
            ButtonAttachment.IsVisible            = true;
            ButtonAttachment.ImageSourceId        = "Font_Times|ColorButtonForeground";

            Color  backgroundColor = Helper.GetResourceDictionaryById <Color>("ColorConversationStreamMessageCurrentUserBackGround");;
            Color  textColor       = Helper.GetResourceDictionaryById <Color>("ColorConversationStreamMessageCurrentUserFont");
            String text            = Helper.SdkWrapper.GetLabel("edit");

            EntryMessage.SetEditorText(messageBody);

            SetContext(text, textColor, backgroundColor, true);
        }
コード例 #3
0
        public void StopEditionMode()
        {
            // Remove message Id
            editMessageId = null;

            ButtonUrgency.IsVisible = true;

            // Attachments are now available
            FrameBeforeButtonAttachment.IsVisible = capabilityFileSharing;
            ButtonAttachment.IsVisible            = capabilityFileSharing;
            ButtonAttachment.ImageSourceId        = "Font_PaperClip|ColorButtonForeground";

            Color  backgroundColor = Helper.GetResourceDictionaryById <Color>("ColorConversationStreamMessageOtherUserBackGround");
            Color  textColor       = Helper.GetResourceDictionaryById <Color>("ColorConversationStreamMessageOtherUserFont");
            String text            = "";

            EntryMessage.SetEditorText("");

            SetContext(text, textColor, backgroundColor, false);
        }