windows-phone-8

C# WP8 Open TimePicker from code

旧城冷巷雨未停 提交于 2019-12-24 12:33:46
问题 How can I open the TimePicker to select new time but from C#? Not by tapping the control. Is there any simple way to do that? 回答1: I had the same problem once. I solved it by forking the Windows Phone Toolkit and making the OpenPickerPage of the control public. 回答2: (I assume you mean the Windows Phone Toolkit TimePicker control here.) From reading the source code of the DateTimePickerBase, it would seem not. Opening the picker page is done by the OpenPickerPage() method, which is private,

Cordova calendar plugin for Windows Phone 8

寵の児 提交于 2019-12-24 12:29:05
问题 I am looking for a cordova plugin to add events to Windows Phone 8 calendar. There is no plugin on cordova plugin registry. My workaround was to write native plugin- public void addCalendarEvents(String str) { string[] calendarValues = str.Split('|'); SaveAppointmentTask saveAppointmentTask = new SaveAppointmentTask(); int appointmentYear = Int32.Parse(calendarValues[3]); int appointmentMonth = Int32.Parse(calendarValues[4]); int appointmentDate = Int32.Parse(calendarValues[5]); float

Save a Grid and elements in it as a jpeg image - WinRT

六月ゝ 毕业季﹏ 提交于 2019-12-24 12:27:02
问题 I am stuck in my app. I have a grid with some elements in it. These elements are buttons, images and other controls like stackpanel and nested grids. I want to save what appears to the user as image on click of a button, but i dont know how to proceed on this. Can I write elements like grid and buttons onto a writable bitmap? Or is there some other way? In short I want to take a screen shot of my app screen when the user clicks the button. Please help. 回答1: Taking "screenshots" of winrt apps,

Using system fonts in responsive css

你。 提交于 2019-12-24 12:22:54
问题 As I delve deeper into our next responsive website, I am exploring the options of using system fonts for phone versions. And am wondering a few things. First would be, if we specify a font that is on the device (such as a system font), but we also have an call for Open Sans (our default body typeface), would the device still download the Open Sans typeface file? Open Sans would be listed after the system fonts in the font-family declaration. <link rel="stylesheet" type="text/css" href="https:

How do i update UserControl textblock text from mainpage.xaml

白昼怎懂夜的黑 提交于 2019-12-24 12:12:59
问题 I have textblock inside usercontrol.Now i want to update the text of textblock when i enter the text in mainpage.xaml.Please help i tried this example but it does not update text. UserControl.xaml <TextBlock x:Name="txtCartcount" Text="{Binding CartCount}" VerticalAlignment="Center" FontWeight="Bold" FontSize="15" Foreground="#E4328A" HorizontalAlignment="Center"> </TextBlock> MainPage.xaml private string _CartCount; public string CartCount { get { return _CartCount; } set { _CartCount =

How to Share My News on Facebook on Windows Phone 8

走远了吗. 提交于 2019-12-24 12:09:39
问题 I am on windows phone project. This project includes the latest news from various categories. I'm done with getting news from my web service on my device. But i need to share these news on facebook, twitter etc.. How can i do that ? I checked https://developers.facebook.com/ but couldn't find the idea or i found, here http://facebooksdk.net/docs/phone/ . Is there any idea ? Help me about this please. I need to put a button at the end of my news and i need to share them on social platforms.

How to enable the Settings panel on Windows Phone by PhoneGap/Cordova

試著忘記壹切 提交于 2019-12-24 11:37:41
问题 I just finished my 1st WP8 app with PhoneGap, and out of sudden, I found that my app doesn't have that Settings panel(I'm not sure whether it's the right name for that part -- the 3 dots at the right bottom corner and when you clicked it, a panel shows). This is the Setting panel(please do correct me if the name I refer to is not right and I want to know it. ) Do you know how to enable it? Thanks a lot 回答1: The three dots you pointed -if I don't misunderstand that- is called ellipsis (you can

Live Connect authentication status always “Unknown”

我是研究僧i 提交于 2019-12-24 09:40:05
问题 I'm facing some problem when authenticating in my WP8 app via Live SDK. I have added a SignInButton to my app: <live:SignInButton x:Name="btnSignIn" Scopes="wl.skydrive wl.skydrive_update wl.signin wl.offline_access" ClientId="MY_CLIENT_ID" SessionChanged="btnSignIn_SessionChanged" TextType="Login" /> In the code-behind I have the following: private async void btnSignIn_SessionChanged(object sender, Microsoft.Live.Controls.LiveConnectSessionChangedEventArgs e) { App.LiveSession = e.Session;

Programming for Windows Phone 8 on Microsoft Windows 7

让人想犯罪 __ 提交于 2019-12-24 09:28:20
问题 Using Microsoft Windows 7 and either Visual studio 2010 or 2012, how should I program for Windows Phone 8? Assuming it is not possible, when does Microsoft plan to fix that? Asked a different but related question, and got this answer, which if correct gives me the answer I was looking for. 回答1: You can't - you'll need Windows 8 64-bit to develop for Windows Phone 8, and additionally you'll want the Professional version of Windows 8 to leverage the emulator. See http://www.microsoft.com/en-us

Windows Phone 8 API for Headset control events [closed]

有些话、适合烂在心里 提交于 2019-12-24 08:39:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Is there an API for Windows Phone 8 which allows to receive headset events, such as when a user presses the play/stop button? I would be interested in these events to react in my application accordingly. Regards, 回答1: If you are in control of the audio/video on the device at this point (via MediaElement or