예제 #1
0
        /// <summary>
        /// 这里e的parameter应该是一个Parameters类
        /// 其name是title的名字,value是要显示的图片的本地路径
        /// </summary>
        /// <param name="e"></param>
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            STRBDpopin.Begin();
            if (e == null)
            {
                return;
            }
            if (!(e.Parameter is Parameters))
            {
                return;
            }
            var pair = e.Parameter as Parameters;

            title = pair.name;
            String path = pair.value;

            bmp = new WriteableBitmap(1920, 1080);
            var file = await StorageFile.GetFileFromApplicationUriAsync(new Uri(path));

            var file_stream = await file.OpenAsync(FileAccessMode.Read);

            bmp.SetSource(file_stream);
            ISimage.Show(bmp, false);
            TXTBLKimageTitle.Text = title;
        }
예제 #2
0
 private void BTNsave_Click(object sender, RoutedEventArgs e)
 {
     ISimage.Save();
 }