windows-phone-8.1

WP 8.1 bottom to top infinite scrolling

情到浓时终转凉″ 提交于 2019-12-09 03:39:08
问题 I have explored ISupportIncrementalLoading and seen MS sample and other examples for infinite scrolling behaviour. But I want bottom to top scrolling where items are added on top on scrolling bottom to top. Edit:I have found a workaround for this. I have rotated listview by 180 degree and datatemplate by 180 degree which helped me achieve desired functionality. <ListView x:Name="GridViewMain" IncrementalLoadingThreshold="2" RenderTransformOrigin="0.5,0.5"> <ListView.RenderTransform>

Create imagebrush, bitmap and writeablebitmap from an url

你说的曾经没有我的故事 提交于 2019-12-08 19:26:23
问题 Hey I have a windows phone 8.1 app using the silverlight API. I am downloading this image from my blob storage. The image is coming from a link like this: https://[service].blob.core.windows.net/[imagename].png and the image can be showned and downloaded in multiple browsers, just using the URI. I now want to use this as a imagebrush based on the imageuri from the blobstorage: // If we have a returned SAS. BitmapImage myOnlineImage = new BitmapImage(); myOnlineImage.UriSource = new Uri

Windows Phone background task stops prematurely

与世无争的帅哥 提交于 2019-12-08 19:12:18
问题 I'm developing a WP8.1 SL app which uses background tasks (not agents!). My task is triggered by a TimerTrigger - once every 30 minutes (which I believe is the minimum interval for Windows Phone, right?). It is doing a lot of work, and for some reason, sometimes it gets interrupted - that is, it stops in the middle of it. The way I know it's in the middle of it is because I log what's happening and the task's work is basically the same every time. I deployed the app to my device yesterday to

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

纵然是瞬间 提交于 2019-12-08 16:03:36
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 TranslateY. XAML <Grid> <Grid Name="container"> <Image Name="img_container" Source="/papers.co-mb00-baloon

Can't set Content-Type header

半世苍凉 提交于 2019-12-08 16:03:12
问题 I'm having trouble setting the Content-Type on HttpClient. I followed along this question: How do you set the Content-Type header for an HttpClient request? But still no luck. String rcString = JsonConvert.SerializeObject(new RoadsmartChecks() { userguid = user_guid, coords = coordinates, radius = (radius * 100) + "" }, ROADSMART_JSON_FORMAT, JSONNET_SETTINGS); HttpClient c = new HttpClient(); c.BaseAddress = new Uri(BASE_URL); c.DefaultRequestHeaders.TryAddWithoutValidation("Content-Type",

windows phone 8.1 ComboBox shows multiple items as selected when number of items are more

只愿长相守 提交于 2019-12-08 15:28:44
问题 When there are more items in combobox,combobox will show the listpicker flyout. If I select first one and scroll down,more than one item will be shown as selected. But SelectedItem of ComboBox will be the one which i selected. I modified the style of ListPickerFlyout and turned off the virtualization of ListView. If I do so ListView wont retain the SelectedItem. Is this bug of ComboBox? Is there any solution for this issue Here is style which i modified <DataTemplate x:Key=

How to set time out for http client request operation in windows phone 8.1/Windows 8.1

大憨熊 提交于 2019-12-08 15:16:47
问题 How to set Timeout property to Windows.Web.Http.HttpClient operation. The code sample I used is below. public HttpClient httpClient; public CancellationTokenSource cts; public void SendRequest(addressUri,postrequestbody) { HttpHelper.CreateHttpClient(ref httpClient); cts = new CancellationTokenSource(); HttpRequestMessage msg = new HttpRequestMessage(new HttpMethod("POST"), new Uri(addressUri)); msg.Content = new HttpStringContent(postrequestbody); msg.Content.Headers.ContentType = new

Windows Phone 8.1 Device (Lumia 930) and VS2013 debugging works only with disabled WiFi

时光怂恿深爱的人放手 提交于 2019-12-08 15:00:19
问题 There were errors in VS2013 when a Windows Phone 8.1 App is launching for deploy and debug: Error 1 Error : DEP6100 : The following unexpected error occurred during boostrapping stage 'Connecting to the device': SmartDeviceException - Deployment failed because no Windows Phone was detected. Make sure a phone is connected and powered on. AppWP Error 2 Error : DEP6200 : Boostrapping 'Device' failed. Device cannot be found. Deployment failed because no Windows Phone was detected. Make sure a

Alert sound in Windows Phone 8.1 App

守給你的承諾、 提交于 2019-12-08 14:48:50
问题 I am writing a Windows Phone 8.1 App (WINRT) . On click of a button, a beep must play . So i used MediaElement , but the problem is it pauses the MediaPlayer song . I even tried to change AudioCategory /Stream type but its not helping. Stream types Any solution? private void CreateMediaElements() { //WINRT: MediaElementObject = new MediaElement(); MediaElementObject.AudioCategory = AudioCategory.Alerts; MediaElementObject.IsLooping = false; MediaElementObject.Source = new Uri("ms-appx://

Unable binding from class on C#

强颜欢笑 提交于 2019-12-08 14:38:07
问题 Here is code of class: public class listboxitem { public string textmenu { get; set; } public string logomenu { get; set; } } But when im binding it on textbox that's not show... I have these array: private string[] Logo_menu_array = { "/Assets/star-6-48.ico", "/Assets/note-48.ico", "/Assets/note-48.ico", "medal-48.ico", "joystick-48.ico" }; private string[] Text_menu_array={"Phổ biến trên YouTuBe","Âm nhạc","Thể thao","Trò chơi"}; //load menu public void Load_Menu() { List<listboxitem> text