windows-phone-7.1

How to get user's own mobile number from windows phone 7 or 8

蓝咒 提交于 2019-12-19 09:09:34
问题 I want to extract "user own mobile number", not his whole phone book. i am using c# as the developing language. thank you 回答1: If you want to get device's own phone number, then it's not currently possible. 回答2: As far as I know, it is not possible to get the own cell number in Windows Phone. 来源: https://stackoverflow.com/questions/14118369/how-to-get-users-own-mobile-number-from-windows-phone-7-or-8

how to write text on a image using windows phone code? [duplicate]

微笑、不失礼 提交于 2019-12-19 04:47:26
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Write text on image in WP7 I have an app and one of the feature I want to add to it is , sending the picture with some text on top of it.IS that possible to code this in windows phone ? 回答1: Easy way is just rendering a TextBlock with the text on a WriteableBitmap private void RenderString(WriteableBitmap bitmap, string stringToRender) { TextBlock textBlock = new TextBlock(); textBlock.Text = stringToRender; //

how to write text on a image using windows phone code? [duplicate]

亡梦爱人 提交于 2019-12-19 04:47:08
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Write text on image in WP7 I have an app and one of the feature I want to add to it is , sending the picture with some text on top of it.IS that possible to code this in windows phone ? 回答1: Easy way is just rendering a TextBlock with the text on a WriteableBitmap private void RenderString(WriteableBitmap bitmap, string stringToRender) { TextBlock textBlock = new TextBlock(); textBlock.Text = stringToRender; //

How to set the links in a text block clickable in wp7

北城以北 提交于 2019-12-18 12:37:09
问题 I have a text box contain links .the contents in the text are generated during run time.My problem is that the links inside the text is not clickable,how can make all links inside the text block clickable so that when i tap a link it should open the web browser.In android we can set it by using autolink.Is such option is available in wp7 or in wp7.1 mango? 回答1: Use a HyperLink. <TextBlock> <Run>Pure Text</Run> <Hyperlink Command="{Binding HyperLinkTapped}">http://google.com</Hyperlink> <Run

Pressing multiple buttons simultaneously

走远了吗. 提交于 2019-12-18 12:36:11
问题 In my WP 7.1 app I have a page with multiple buttons. I noticed that while any one button is being pressed, no other button can be pressed. How can I overcome this? I need to be able to allow users to press multiple buttons at the same time. 回答1: You can't handle multiple button clicks at once unfortunately. There is a way around it though. You can use the Touch.FrameReported event to get the position of all the points a user is touching on the screen (I read somewhere before that on WP7 it's

Add a Load More Button at the end of ListBox without losing Virtualization?

僤鯓⒐⒋嵵緔 提交于 2019-12-18 06:55:00
问题 I know by editing the ListBox 's default style like this, I can have a Button at the very end of the ListBox . <ScrollViewer x:Name="ScrollViewer" ...> <StackPanel> <ItemsPresenter /> <Button /> </StackPanel> </ScrollViewer> However, doing this will break the ListBox 's Virtualization and the rendering time becomes really long. All I can think of is, Create a dummy item and add it to the end of my item collection in the viewmodel, and have a Visibility property in the dummy object called

WP7: Is it possible to intercept the backstack before the journal thumbnail is created/stored

强颜欢笑 提交于 2019-12-17 21:59:41
问题 You all know the Windows Phone backstack right. If you go through some apps, tap the Home key after starting each app. Now tap and hold the Backkey to see the Backstack. You can now see some small images of your apps, and can pick which one to go to right. Question: Is it possible to intercept before the backstack image is created? I have tried to blur my page in various events (include OnNavigatingFrom) to no avail. My guess is some other event (probably something we don't have access to) is

determine if “24-hour clock” setting is set

断了今生、忘了曾经 提交于 2019-12-17 20:25:59
问题 What's the best way to determine if the user has set the "24-hour clock" setting to true in Settings-Date+Time on the Windows Phone ? Can I get this information through the CurrentCulture (CultureInfo) ? I had no luck in finding it. 回答1: The system clock type can be retrieved using: string clockType = Windows.System.UserProfile.GlobalizationPreferences.Clocks.FirstOrDefault(); This will return the string 24HourClock if the 24 hour setting is on in the device settings or 12HourClock if the

AudioPlayerAgent, timer and webservice

巧了我就是萌 提交于 2019-12-17 16:51:41
问题 my application read a shoutcast. The meta data of the music played is collected from a webservice that return me a Json (so i don't have to decode the stream). I call the webservice every 20 seconds with a timer, this works in my application, but doesn't works in the AudioPlayer.cs //Timer private DispatcherTimer timer; /// <remarks> /// AudioPlayer instances can share the same process. /// Static fields can be used to share state between AudioPlayer instances /// or to communicate with the

Using HTML agility pack on WP7.5

一世执手 提交于 2019-12-14 03:48:36
问题 Is there a reference/guide for using HTML Agility Pack on WP7.5? I tried compiling the source on my VS2010 but I wasn't able to reference the DLL created on my local machine. Basically, I'm looking for a text extractor to obtain the text from a given URL. I understand that the HTML Agility Pack works best. Any ideas/suggestions? Thanks :) 回答1: Yes, I was the one who created that discussion. As said in that discussions page, the solution to this problem is to reference the System.Xml.XPath DLL