简体   繁体   English

从页面选择图像以添加到另一页面-WP7

[英]Selecting an image from a page to add to another page - WP7

i've being searching the net and this forum for a couple of days, but still haven't find an answer to my problem. 我已经在网上和这个论坛上搜索了几天,但仍然找不到我的问题的答案。

Here's the deal: i'm building an wp7 app and i created 2 pages; 这是交易:我正在构建一个wp7应用程序,我创建了2页; the first with a grid and some buttons on it; 第一个带有网格和一些按钮的网格; and the second will have a canvas and a ink color selector, where the user can drawn on a white space. 第二个将具有画布和墨水颜色选择器,用户可以在其中在白色空间上进行绘制。 I created a NavigationService for the user to click on the button and navigate to the second page. 我创建了一个NavigationService,供用户单击按钮并导航到第二页。 But now i want that, when the user clicks on this button, a specific image will be loaded on the navigated page, so the user can paint over it, in a canvas. 但是现在我想要的是,当用户单击此按钮时,特定的图像将被加载到导航页面上,以便用户可以在画布上对其进行绘制。

So you want to have a image inside a Canvas? 所以您想在Canvas中有图像吗?

<Canvas>
    <Image Source="myimage.jpg" Width="100" Height="100" />
</Canvas>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM