Ejemplo n.º 1
0
 //--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\
 #region --Set-, Get- Methods--
 private void SetSelectedItem(BackgroundImageSelectionControlItemDataTemplate value)
 {
     if (SetProperty(ref _SelectedItem, value, nameof(SelectedItem)) && !(value is null))
     {
         ChatBackgroundHelper.INSTANCE.ImagePath = value.Path;
         IsCustomImageBackgroundSelected         = false;
         SetBackgroundMode();
     }
 }
Ejemplo n.º 2
0
        private void AddImage(BackgroundImageSelectionControlItemDataTemplate img, string curBackgroundImagePath)
        {
            IMAGES.Add(img);

            if (ChatBackgroundHelper.INSTANCE.BackgroundMode != ChatBackgroundMode.CUSTOM_IMAGE && string.Equals(curBackgroundImagePath, img.Path))
            {
                SelectedItem = img;
            }
        }