/// <summary>
        /// Show the UI to share informations on social networks
        /// </summary>
        /// <param name="element">Contains informations to share</param>
        public static void Share(ShareableObject element)
        {
            ShareTaskBase task = new ShareLinkTask
            {
                Title = element.Title,
                Message = element.Message,
                LinkUri = element.Uri
            };

            task.Show();
        }
        /// <summary>
        /// Modify the Share contract factory according to the selected news 
        /// </summary>
        /// <param name="news">Selected news</param>
        private void Share(ShareableObject news)
        {
            try
            {
                DataTransferManager.GetForCurrentView().DataRequested -= NewsPage_DataRequested;
            }
            finally
            {
                _shareContractFactory = new ShareContractFactory((ShareableWin8Object)news);
                DataTransferManager.GetForCurrentView().DataRequested += NewsPage_DataRequested;
            }

            DataTransferManager.ShowShareUI();
        }
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            ShareableObject shareableObject = null;

            if (value is News)
            {
                News news = value as News;

                shareableObject = new ShareableObject
                {
                    Title = news.Title,
                    Message = news.ShortText,
                    Uri = new Uri(string.Format(AppResources.WEBSITE_FORMAT, AppResources.PAGE_NEWS, news.Id, news.Url))
                };
            }
            else if (value is Conference)
            {
                Conference conference = value as Conference;

                shareableObject = new ShareableObject
                {
                    Title = conference.Name,
                    Message = string.Format(AppResources.FORMAT_CONFERENCE, conference.Start_DateTime, conference.End_DateTime, conference.Place),
                    Uri = new Uri(string.Format(AppResources.WEBSITE_FORMAT, AppResources.PAGE_CONFERENCES, conference.Id, conference.Url))
                };
            }
            else if (value is Show)
            {
                Show salon = value as Show;

                shareableObject = new ShareableObject
                {
                    Title = salon.Name,
                    Message = string.Format(AppResources.FORMAT_SALON, salon.Start_DateTime, salon.End_DateTime, salon.Place),
                    Uri = new Uri(string.Format(AppResources.WEBSITE_FORMAT, AppResources.PAGE_SALONS, salon.Id, salon.Url))
                };
            }

            return shareableObject;
        }
 /// <summary>
 /// Show the UI to share the news on social networks
 /// </summary>
 /// <param name="news">News transformed in adapted shareable object</param>
 private void Share(ShareableObject news)
 {
     ShareTaskHelper.Share(news);
 }
 /// <summary>
 /// Show the UI to share the meeting on social networks
 /// </summary>
 /// <param name="salon">Show transformed in adapted shareable object</param>
 private void Share(ShareableObject salon)
 {
     ShareTaskHelper.Share(salon);
 }
 /// <summary>
 /// Show the UI to share the conference on social networks
 /// </summary>
 /// <param name="conference">Conference transformed in adapted shareable object</param>
 private void Share(ShareableObject conference)
 {
     ShareTaskHelper.Share(conference);
 }
 /// <summary>
 /// Display the Share UI for the user to share the displayed conference
 /// </summary>
 /// <param name="conference">The conference converted in a generic object</param>
 private void Share(ShareableObject conference)
 {
     DataTransferManager.ShowShareUI();
 }
 /// <summary>
 /// Display the Share UI for the user to share the displayed news
 /// </summary>
 /// <param name="news">The news converted in a generic object</param>
 private void Share(ShareableObject news)
 {
     DataTransferManager.ShowShareUI();
 }