windows-phone-8

Phone did not appear in visual studio

懵懂的女人 提交于 2019-12-24 22:58:10
问题 I am new to Windows Phone 8 development. I have registered (unlocked) my phone in Windows Phone Developer registration. And I can see the phone in File Explorer. But when I launch MSVC 2013 Update 2 and open DirectX 3D shooting game sample , I can only see a plenty of emulators in dropbox and I don't see my phone. What could be wrong? I did not register as a Windows phone developer yet because it requires me to pay, but I hope I should be able to launch Microsoft's samples on real device

change the color of each pivot item in windows phone 8

╄→гoц情女王★ 提交于 2019-12-24 22:37:16
问题 I want to assign the different colors to each pivot item of pivot control of windows 8. Red color for all, green for assigned. How do i achieve it?? <Grid x:Name="LayoutRoot" Background="#FF0B345A"> <!--Pivot Control--> <phone:Pivot Title="MY TASKS"> <!--Pivot item one--> <phone:PivotItem Header="all"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="auto"></RowDefinition> <RowDefinition Height="auto"></RowDefinition> <RowDefinition Height="auto"></RowDefinition> <RowDefinition Height="*">

How to return control of flow to a for loop?

假如想象 提交于 2019-12-24 22:09:16
问题 I'm trying to code a loop to re execute a block of code 3 times. At the moment the code starts and executes once but doesn't repeat as intended with using the for loop. I've set a break point on the for loop and it only goes through the loop once. private async void startBtn_Tap(object sender, System.Windows.Input.GestureEventArgs e) { int i; int roundMax = 3; for (i = 1; i <= roundMax; i++) { //delay stop watch start to allow time to get ready. TimeSpan time = TimeSpan.FromSeconds(1); await

Problems with WP8 Slider

最后都变了- 提交于 2019-12-24 20:28:30
问题 My XAML: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition Width="auto"/> </Grid.ColumnDefinitions> <Slider Name="sldLength" Margin="0 0 0 0" Grid.Column="0" Minimum="5" Maximum="30" SmallChange="1" LargeChange="1" Value="10" ValueChanged="sldLength_ValueChanged"/> <TextBlock Name="tblLength" Margin="0 10 5 0" Text="10" Grid.Column="1" FontSize="{StaticResource PhoneFontSizeMediumLarge}"/> </Grid> My Code begind: private void sldLength_ValueChanged(object sender,

How to use WriteableBitmapExtension library to blur image on Windows Phone?

可紊 提交于 2019-12-24 20:12:18
问题 This seems not working? WriteableBitmap wb = new WriteableBitmap(albumArtImage); WriteableBitmapExtensions.Convolute(wb, WriteableBitmapExtensions.KernelGaussianBlur5x5); AlbumBackground.ImageSource = wb; 回答1: Try: WriteableBitmap wb = new WriteableBitmap(albumArtImage); var wb2 = WriteableBitmapExtensions.Convolute(wb, WriteableBitmapExtensions.KernelGaussianBlur5x5); AlbumBackground.ImageSource = wb2; 来源: https://stackoverflow.com/questions/14000616/how-to-use-writeablebitmapextension

Lock screen PIN detection on WinPhone8

吃可爱长大的小学妹 提交于 2019-12-24 18:19:02
问题 I am writing an App with some reasonably sensitive data in it. At the moment is uses a forms based login page, username and password. I currently cache the username but not the password - forcing the user to type it in each time. One of my users has pointed out that if they already lock the phone with a PIN, it is not much less safe to cache the password as well. So, can you detect whether a WinPhone8 device is using a PIN on the lock screen? 回答1: Unfortunately there is currently no API

Open Twitter app to make tweet

爷,独闯天下 提交于 2019-12-24 16:44:12
问题 I’m trying to open the Twitter app to make a tweet. Here’s what I have: await Windows.System.Launcher.LaunchUriAsync(new Uri("Twitter")); How can I make this work? 回答1: See which one would suit you best: ShareStatusTask - for sharing status http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.tasks.sharestatustask(v=vs.105).aspx ShareLinkTask - for sharing link http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.tasks.sharelinktask(v=vs.105)

Renderproblem RichTextBox Windows Phone 8

送分小仙女□ 提交于 2019-12-24 16:34:25
问题 I'm implemented a RichTextBox in WindowsPhone 8. I fill this Box while runtime with Paragraphs, Runs, Images and HyperlinkButtons. The Problem that now appears is after some lines of content the RichTextBox is cut. I declared a red border that is also cut. Links and images are still displayed. Here is a Screenshot: My XamlCode is simple: <Grid x:Name="LayoutRoot" Background="Transparent"> <ScrollViewer> <RichTextBox x:Name="ContentBox" HorizontalAlignment="Stretch" VerticalAlignment="Top"

Generic Singleton and share data between pages

筅森魡賤 提交于 2019-12-24 16:29:19
问题 To share data (complexe data ) between pages in my windows phone 8 application I want to implement a singleton, but I want it to be generic, is it possible? I suppose that it creates a new instance for each type isn't it? public sealed class NavigationContextService<T> { private static readonly NavigationContextService<T> instance = new NavigationContextService<T>(); private NavigationContextService() { } public static NavigationContextService<T> Instance { get { return instance; } } public

How to make WP8 emulator access ASP.NET debug server

前提是你 提交于 2019-12-24 16:26:39
问题 Is it possible to get the WP8 emulator to access a ASP.NET Development debug server I run on my pc? WP8 Emulator runs inside Hyper-V and the debug server on my pc is therefore not accessible to the emulator, is it possible to do so it is? Only solution I can come up with is create a IIS server on my machine and debug that, but its much easier running development server. 回答1: The problem isn't really "how to access the development server from the emulator", but "how to access the development