windows-phone-8.1

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

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

Keep elements displayed in fullscreen UWP application

↘锁芯ラ 提交于 2020-01-23 05:48:06
问题 Below is my design containing media element, play, pause, full window and seeker. <MediaElement x:Name="VideosMediaElement" VerticalAlignment="Top" Height="250" Width="355" Margin="0,20,0,0" BufferingProgressChanged="VideosMediaElement_BufferingProgressChanged" RealTimePlayback="True" /> <Grid x:Name="mediaGrid"> <Border VerticalAlignment="Bottom" Height="60" Background="Black" Opacity="0.1"> </Border> <Image x:Name="PlayIcon" Source="Assets/Play-icon.png" Height="35" HorizontalAlignment=

Windows phone 8.1 Camera Initialisation - UnAuthorizedException

与世无争的帅哥 提交于 2020-01-23 00:37:05
问题 I am trying to launch camera using MediaCapture api on my windows phone 8.1 universal app. The code works fine on Windows 8.1 and Windows Phone 8.1 emulator. I am able to launch camera and take picture. But it throws an UnauthorizedException on Windows Phone 8.1 device. Similar question is asked Here But, i dont know whether someone got around this problem. And I am sideloading application on device for testing. My requirement is to launch camera on sideloaded applications. Code snippet:

How to prevent lockscreen in a Windows (Phone) 8.1 Universal App?

假如想象 提交于 2020-01-22 14:20:09
问题 Do anyone know, how to prevent the lockscreen in a Windows (Phone) 8.1 Universal App? In Windows Phone 8, I have used: PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; Has anyone an idea? 回答1: You may have a look at this question at MSDN, which points to this answer on SO. In short while using WinRT you can use DisplayRequest class: Apps that show video or run for extended periods without user input can request that the display remain on by calling

How to use ShareLinkTask namespace in Windows Phone 8.1?

左心房为你撑大大i 提交于 2020-01-21 03:47:07
问题 I am developing an app and i am trying to share my app, in Windows Phone 8 Siverlight and Windows Phone 8.1 Silverlight, i used these codes: ShareLinkTask shareLinkTask = new ShareLinkTask(); shareLinkTask.Title = "Code Samples"; shareLinkTask.LinkUri = new Uri("http://code.msdn.com/wpapps", UriKind.Absolute); shareLinkTask.Message = "Here are some great code samples for Windows Phone."; shareLinkTask.Show() But in Windows Phone 8.1 using Windows Runtime, when i use these codes, it reports an

Rhinos Could not load file or assembly System.Core

[亡魂溺海] 提交于 2020-01-17 08:47:07
问题 I'm trying some mocking frameworks for c#. I created an Windows Phone 8.1 project, then added an 8.1 Unit Test Project Installed Rhinos with the nuget package installed. Trying to make an simple stub test: public class MyTest { public int value() { return 23; } } [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { MyTest item; item = MockRepository.GenerateStub<MyTest>(); item.Stub(x => x.value()).Return(240); Assert.Equals(239, item.value()); } } But when I run the

Windows Phone ListView Binding

怎甘沉沦 提交于 2020-01-17 08:09:18
问题 I am trying to create a ListView of items and to be able to delete them. Here is my code. I can't get the list of items to display. I didn't find a simple example of binding ListViews so i can understand the exact concept. Can you tell me what am i doing wrong ? PS. myListOfItems is a list with strings. The project is WP 8.1 WinRT. public class MedClass { public string medName { get; set; } } public class MedClassRoot { public List<MedClass> medNames { get; set; } } public sealed partial

DatagramSocket event MessageReceived dosen't trigger

半世苍凉 提交于 2020-01-17 05:39:04
问题 I have a Console Udp Server based on the System.Net.Sockets UdpClient from which I'm sending Udp Packets to the Ip of my Windows Phone 8.1. The client on the phone uses Windows.Networking.Sockets DatagramSocket, my problem is that the event MessageReceived dosen't happen. Source for DatagramSocket:https://msdn.microsoft.com/library/windows/apps/br241319 回答1: Took me ages to find the solution since it's pretty dumb: The DatagramSocket only starts to receive after it has sent something. (At

DatagramSocket event MessageReceived dosen't trigger

怎甘沉沦 提交于 2020-01-17 05:38:08
问题 I have a Console Udp Server based on the System.Net.Sockets UdpClient from which I'm sending Udp Packets to the Ip of my Windows Phone 8.1. The client on the phone uses Windows.Networking.Sockets DatagramSocket, my problem is that the event MessageReceived dosen't happen. Source for DatagramSocket:https://msdn.microsoft.com/library/windows/apps/br241319 回答1: Took me ages to find the solution since it's pretty dumb: The DatagramSocket only starts to receive after it has sent something. (At