windows-phone-8

How To Close MessageBox Programmatically in WP8?

萝らか妹 提交于 2020-01-24 05:43:05
问题 I'm aware that there are already questions questions asked regarding closing a MessageBox programmatically . But the solution to those questions is to use a timer. I am trying to develop an NFC application, so when i create a MessageBox, it contains a message Please Tap Your NFC . So technically, the Timer isn't helpful. I need a way to close or dispose a MessageBox. Please advice. 回答1: You can create a custom window yourself as described in the question you linked. However, instead of a

Webview bounce in windows phone 8

只谈情不闲聊 提交于 2020-01-24 05:26:04
问题 I need to know if there is any way I can control the webview bouncing property in windows 8.I have tried -ms-touch-action: none; it does stop the bouncing but it disables the whole scrolling in the App. I have tried the following but these doesn't work:- <meta name="msapplication-tap-highlight" content="no" /> backface-visibility:hidden; -webkit-backface-visibility:hidden; overflow: hidden; -ms-content-zooming: none; So please let me know if there is any other methods for controlling the

How to help move the image does not exceed the limit on screens

こ雲淡風輕ζ 提交于 2020-01-23 17:13:47
问题 I can drag this pictures to right or left,up,down It passed over an screens.I had zoom in and out. I want limit about that. Using windows phone 8.1 app. After the transformation, brings the image back if it is out of the boundary. You can detect if the image is out of boundary by comparing the values of TranslateX/TranslateY and the width/height of the boundary. The boundary is the parent of the image (it is a Grid?), you need to debug the code to determine the boundary for TranslateX and

Allowing only letters for input

三世轮回 提交于 2020-01-23 16:08:22
问题 How to filter non-letter keys from the virtual keyboard? The following method works just for latin alphabet, for unfortune: public static bool IsLetter(int val) { return InRange(val, 65, 90) || InRange(val, 97, 122) || InRange(val, 192, 687) || InRange(val, 900, 1159) || InRange(val, 1162, 1315) || InRange(val, 1329, 1366) || InRange(val, 1377, 1415) || InRange(val, 1425, 1610); } public static bool InRange(int value, int min, int max) { return (value <= max) & (value >= min); } 回答1: I think

Allowing only letters for input

十年热恋 提交于 2020-01-23 16:06:51
问题 How to filter non-letter keys from the virtual keyboard? The following method works just for latin alphabet, for unfortune: public static bool IsLetter(int val) { return InRange(val, 65, 90) || InRange(val, 97, 122) || InRange(val, 192, 687) || InRange(val, 900, 1159) || InRange(val, 1162, 1315) || InRange(val, 1329, 1366) || InRange(val, 1377, 1415) || InRange(val, 1425, 1610); } public static bool InRange(int value, int min, int max) { return (value <= max) & (value >= min); } 回答1: I think

Frame.Navigate to a Page-derived class in a different assembly

大城市里の小女人 提交于 2020-01-23 11:30:02
问题 I'd like to keep my Windows Phone 8 Blank App template based view in a different assembly than the assembly containing the application manifest and App.xaml. I keep receiving a cryptic exception which doesn't help at all in figuring out how to fix it: Create a new project from the template Visual C# > Store Apps > Windows Phone Apps > Blank App (Windows Phone). Build and deploy, works great. The properties of the MainPage.xaml state the Build Action is Page, which is correct. Create a new

Grid and StackPanel, which has the better performance?

半世苍凉 提交于 2020-01-23 04:26:07
问题 Let's read these codes, I've defined two similar UserControls in a Windows Phone 8 project and I really want to which of them is better. I've check the profiling, it seems they are almost the same. UserControl 1, using grid's property to design my layout. <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}" Height="108"> <Grid.RowDefinitions> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition Height="Auto"></RowDefinition> </Grid.RowDefinitions> <Grid

Windows Phone Capabilities with Cordova

∥☆過路亽.° 提交于 2020-01-23 03:52:08
问题 I have problems with the capabilities of the windows phone according to UDP Socket Access. I know that i have to set up the capabilities "internetClientServer" and "privateNetworkClientServer" (see: https://msdn.microsoft.com/en-us/library/windows/apps/hh464936.aspx) But I dont know where I have to setup the manifest file where these capabilities should be inserted. I found a older question with a similar problem but thats not working. (see:Adding privateNetworkClientServer capability to

Creating new Windows Phone App project: “Object reference not set to an instance of an object” error (WP8 SDK, VS2012)

こ雲淡風輕ζ 提交于 2020-01-22 16:55:11
问题 I have VS2012 Pro Update 3. I've downloaded and installed Windows Phone 8 SDK to create Windows Phone apps for the latest MS smartphone OS (WP8). However, I get the above-mentioned error when I try to create a new Windows Phone App project. I deinstalled and reinstalled WP8 SDK as suggested on many forums and blogs, and even used the "repair installation" mode for VS2012 and WP8 SDK, but all this did not help. How to get rid of this error? P.S. My pc has Windows 8 Pro 64-bit and the CPU

Creating new Windows Phone App project: “Object reference not set to an instance of an object” error (WP8 SDK, VS2012)

喜欢而已 提交于 2020-01-22 16:53:05
问题 I have VS2012 Pro Update 3. I've downloaded and installed Windows Phone 8 SDK to create Windows Phone apps for the latest MS smartphone OS (WP8). However, I get the above-mentioned error when I try to create a new Windows Phone App project. I deinstalled and reinstalled WP8 SDK as suggested on many forums and blogs, and even used the "repair installation" mode for VS2012 and WP8 SDK, but all this did not help. How to get rid of this error? P.S. My pc has Windows 8 Pro 64-bit and the CPU