I was wondering if it's possible open camera inside a small piece of screen from a custom xaml page. I'm not sure if WP7 API support stuff like that.
Version: Windows Phone 7.5 Mango
You can use the camera as a live source of image data in your application. This is well documented in the Code Samples for Windows Phone MSDN page. The demo code produces a simple application as follows:
You simply create a brush in XAML:
<VideoBrush x:Name="viewfinderBrush" />
And wire it up to your camera in code-behind:
viewfinderBrush.SetSource(cam);
Related
Hey I am looking to make a windows 8 phone app that has a tile look and feel. I am not interested in making it pined to the start screen. I want an app that has it's own functionality in the tiles. Does anyone know how to make that layout - could someone point me in the right direction?
microsoft.phone.controls.toolkit dll supports a control named hubtile.
"The latest version of Silverlight for Windows Phone Toolkit provides Windows Phone HubTile control. This control can make your application stylish by adding animated tiles in it. HubTile can consist of an image, title, message or a notification. In this example we will represent HubTile in two different ways, Static HubTile and Dynamic HubTile".
Best links
One
Two
I would like to zoomout the image from the flipView available in the GridProject of Win8 Metro App in C# XAML. I already have a scrollviewer but I would like to know if the user can simply double the image with mouse, so that only the image gets opened in a new page.
If so, it would be really great if you could suggest me how to proceed with it.
I followed this article Zooming into image in Windows Store appsSemanticZoom but it doesn't help.
Thanks in Advance!
I am developing an application similar to one-note in windows phone. I wonder what control they use for storing image,text and audio files.
I tried with RichTextBox but I found that RichTextbox is readonly for windows phone
Please suggest an approch to achieve this functionality
Thanks in advance.
For those who are not aware of One-note app in windows it holds text,images and audio
files like a Flow document.
Your best bet would be to use a <Canvas>
MSDN Canvas
It can hold any other XAML object and they can quickly and easily be positioned on the canvas in both XAML and back end code
That said, you are going to have to do some custom coding to create the UI elements dynamically.
This shouldn't be to hard.
If it were me I would create an application bar and in the sub menu I would create all of the UI elements you're allowing the person to create. When they select a UIElement it adds it to the canvas and you allow it to be draggable and editable.
I have made an application which displays Images and i have implemented pinch zooing, translating using Silverlight for Windows Phone Toolkit, GestureService it works perfect. but when am zooming the image or dragging the image it is not the image border/ boundaries. :(
how can i limit the image with in the screen. i want same look and feel like native windows phone photo viewer or web browser ( we can drag contetnt with in the limites only in web browser)
thanks in advance
I have posted the code on my blog.. have a look here
http://invokeit.wordpress.com/2013/01/17/photoviewer-with-pinch-zoom-pan-and-flick-support/
I use the same for my app's photo viewer
I need to repeat or tile a single image (size 9x9) across the Windows Phone 7.5 background.
How can this be done? I haven't found anything using Bing.
In WPF you normally would do it with a tiled Grid.Background as described here. But in WP7 this unfortunately is not possible. So the only ways of achieving this are writing something yourself or using a component.
One component is presented in this blog post. It is basically a panel filling itself with the same image over and over again. At the end of the article there is a download link. Download the zip, unzip it and add TilePanel.cs to your project.
Then you can use it as follows in your XAML:
<local:TilePanel x:Name="pnlTile" TileWidth="62" TileHeight="62">
<local:TilePanel.Image>
<ImageBrush ImageSource="ApplicationIcon.png" />
</local:TilePanel.Image>
</local:TilePanel>
Don't forget to add the namespace:
xmlns:local="clr-namespace:WiredPrairie.Controls"
The panel will be filled with the image specified in your XAML. Adjust image and size as needed.