I would like to use the CameraCapturetask on my Silverlight WP7 application. On the background, I would like to display a photo, for example something like that :
(found randomly on the web).
This could act as a mask, and we will see the photo of the camera behind this frame during the take of the photo.
(I'm not sure I'm very clear).
Is there a way to do that ?
Thanks in advance for any help.
Best regards
No, you can't put this on top of the CameraCaptureTask.
You could add the border after the photo had been taken though.
Related
I am trying to make some rotary knob with WPF and C#, .NET3.5; So right now what I am having is:
but instead, I really want to have something like these:
Anyone has any idea how I can make it look nicer? I am writing the WPF code from scratch. Thanks a lot.
You are using SolidColorBrush right now. Play with RadialGradientBrush instead to achieve the look.
You can create such an effect by finding a nice pictue of a knob, and then apply a rotatetransform on it.
If the picture contains the scale, you will need to edit that out to an other image, which can be under the knob picture.
I am new to winforms and I want to keep things simple
When I create a message box: I notice the top half is white background while the lower half is grey (!!!)
(what I really want is all background white).
But even the VisualStudio dialog doesn't behave this way
Can someone please help me?
Do I need to write some custom code ?
I would post the image but not allowed;(
Thanks
MessageBoxes are displayed by the operating system. If the options that are available aren't good enough, then you have to make your own form.
I wanted to create a slanted tab header using the tabitem control in the silverlight toolkit. I want it to look like the image below but i'm not sure how to accomplish this.
alt text http://img713.imageshack.us/img713/1462/silverlighttabs.png
http://img713.imageshack.us/img713/1462/silverlighttabs.png
Any help and direction would be gladly appreciated
Thanks,
Keith
A quick search at SilverlightCream.com popped this one out:
http://antonidol.wordpress.com/2010/05/12/overlapping-tabitems-with-the-silverlight-toolkit-tabcontrol/
-Dave
Hii
Can anyone tell me how can I show percentage on the piechart....
The percentage is seen on mouseover event but I dont know how to show
the percentage on the piechart's slices....
If you are looking to put labels on the chart itself (instead of tooltip), take a look at this great blog post by WPF guru Bea Stollnitz.
It shows how to do this, in many different modes, and explains not only how, but why.
Take a look at amCharts Bundle for WPF. Pie chart supports labels on the slices, outside connected labels and includes an algorithm to prevent label overlapping.
I've just followed this tutorial (just to make sure) and I get the percentages of each slice as tooltip on mouse over by default.
If you post your code we might be able to spot if there's a problem with it.
You can use labelFunction in mx:PieSeries, and lableFunction look like that
private function pieSeries_labelFunc(item:Object, field:String, index:Number, percentValue:Number):String
{
return StringUtil.substitute("{0} ({1}%)",item.description,percentValue.toFixed(1));
}
Where description is the label that you want to see.
feel free to ask any question.
I would like to make a rotating form WPF effect like the one in the norton antivirus 2010.
The effect is a rotating form that changes the contents when the other side is shown. But the axis is not in the center of the form but moves from side to center and back. Like a three step effect.
The rotating form can be seen at 8' 07" in this video: http://www.youtube.com/watch?v=A3hHPdgi9Nk&feature=related (I'm sad but this was the only video I found on YouTube)
Thanks.
Have a look at the Thriple stuff on CodePlex: http://thriple.codeplex.com/
It's almost exactly what you're after.
Hope this helps.
I did not examine the details, but I know that Microsoft's patterns & practices team also uses a similar animation in their "StockTrader Reference Implementation" for the "Composite Application Guidance". They sub-classed the TabControl and added some animation to it. I think the relevant code parts can be found here:
AnimatedTabControl.Desktop.cs
Generic.xaml
just verify this link. It has code as well as the Sample.
From the Sample take the TransitionPresenter link from the left panel and choose the 3D Rotate item from the listbox. Then select the images from the top list. You can see the same effect in the video. I saw some initial sanp of the video and may be this link can help you.
http://bot.codeplex.com/