private async void SetImageData(JsonObject data, CreateTilePage_ImageViewModel m)
        {
            if (data.ContainsKey("src"))
            {
                await m.SetImageSource(data.GetNamedString("src"));

                //m.RaisePropertyChanged("ImageSource");
            }
            m.ShowTitle = data.GetNamedBoolean("title");
        }
        private JsonObject GetImageData(CreateTilePage_ImageViewModel m)
        {
            JsonObject data = new JsonObject();

            if (m.ImageSource != null)
            {
                data.Add("src", JsonValue.CreateStringValue((m.ImageSource as BitmapImage).UriSource.AbsolutePath));
            }
            data.Add("title", JsonValue.CreateBooleanValue(m.ShowTitle));
            return(data);
        }
        public CreateTilePageViewModel()
        {
            m_logoImage  = new CreateTilePage_ImageViewModel(CreateTilePage_ImageViewModelType.Medium, this);
            m_wideImage  = new CreateTilePage_ImageViewModel(CreateTilePage_ImageViewModelType.Wide, this);
            m_smallImage = new CreateTilePage_ImageViewModel(CreateTilePage_ImageViewModelType.Small, this);
            m_largeImage = new CreateTilePage_ImageViewModel(CreateTilePage_ImageViewModelType.Large, this);
            m_logoImage.PropertyChanged += Image_PropertyChanged;
            m_wideImage.PropertyChanged += Image_PropertyChanged;

            UseDarkText = true;

            if (IsInDesignMode)
            {
                m_tileTitle = "Fallout 4";
            }
        }
 private async void SetImageData(JsonObject data, CreateTilePage_ImageViewModel m)
 {
     if (data.ContainsKey("src"))
     {
         await m.SetImageSource(data.GetNamedString("src"));
         //m.RaisePropertyChanged("ImageSource");
     }
     m.ShowTitle = data.GetNamedBoolean("title");
 }
 private JsonObject GetImageData(CreateTilePage_ImageViewModel m)
 {
     JsonObject data = new JsonObject();
     if (m.ImageSource != null)
     {
         data.Add("src", JsonValue.CreateStringValue((m.ImageSource as BitmapImage).UriSource.AbsolutePath));
     }
     data.Add("title", JsonValue.CreateBooleanValue(m.ShowTitle));
     return data;
 }
        public CreateTilePageViewModel()
        {
            m_logoImage = new CreateTilePage_ImageViewModel(CreateTilePage_ImageViewModelType.Medium, this);
            m_wideImage = new CreateTilePage_ImageViewModel(CreateTilePage_ImageViewModelType.Wide, this);
            m_smallImage = new CreateTilePage_ImageViewModel(CreateTilePage_ImageViewModelType.Small, this);
            m_largeImage = new CreateTilePage_ImageViewModel(CreateTilePage_ImageViewModelType.Large, this);
            m_logoImage.PropertyChanged += Image_PropertyChanged;
            m_wideImage.PropertyChanged += Image_PropertyChanged;

            UseDarkText = true;

            if (IsInDesignMode)
            {
                m_tileTitle = "Fallout 4";
            }
        }