windows-phone-8.1

WP8: Change the Listboxitem Datatemplate on Selection Changed

人盡茶涼 提交于 2019-12-13 09:51:13
问题 I have a listbox in windows phone 8, For that i want to change the datatemplate for the Selected Item. I have done this is WPF like : <Window.Resources> <DataTemplate x:Key="ItemTemplate"> <TextBlock Text="{Binding}" Foreground="Red" /> </DataTemplate> <DataTemplate x:Key="SelectedTemplate"> <TextBlock Text="{Binding}" Foreground="Green" /> </DataTemplate> <Style TargetType="{x:Type ListBoxItem}" x:Key="ContainerStyle"> <Setter Property="ContentTemplate" Value="{StaticResource ItemTemplate}"

Bing Map for Windows phone 8.1 app

北城以北 提交于 2019-12-13 08:34:33
问题 I need to implement a bing map in my Windows Phone 8.1 app coded using C# on Visual Studio 2015. My question is for authentication of the bing map, can I use a key retrieved from the Bing Maps Portal (https://www.bingmapsportal.com/) or will I have to register in the Windows Dev Center (https://dev.windows.com/overview) which in return will cost me and use a key from there. I have a DreamSpark account if that would help in any way. I'm posting this because I searched everywhere on the net and

Charts on Windows Phone 8.1

纵饮孤独 提交于 2019-12-13 08:07:44
问题 I'm developing a Windows Phone 8.1 app and I have to draw a chart (line chart). I know there is the WinRT XAML Toolkit but it seems not working for WP8.1 but only for Windows 8.1 apps, like many others libraries. There is a stable library for Windows Phone 8.1 too? 回答1: Telerik's RadCharts are quite good http://www.telerik.com/products/windows-phone/overview/all-controls/chart.aspx 回答2: WinRT XAML Toolkit is only for Apps which runs on WinRT (Store Apps). To draw charts in Windows Phone you

Hub Tiles (In App Tiles) Windows Phone 8.1 (Universal Apps)

时光毁灭记忆、已成空白 提交于 2019-12-13 07:58:38
问题 Basic Requirement - Displaying In App tiles in Universal Apps. I have gone through samples of Hub Tiles from the following link Hub Tiles which applies to Windows Phone 7 and 8, 8.1 (Silverlight), but there is no mentioning of windows Phone 8.1 (Universal Applications). Even if i include the assembly separately it throws an error that Microsoft.Phone cannot be resolved. As a work around I have even downloaded the source of hub Tiles from Windows phone Toolkit Source and resolved the

Create WriteableBitmap in windows phone app 8.1?

吃可爱长大的小学妹 提交于 2019-12-13 07:41:24
问题 iam creating qr code scan in windows phone app. using (IRandomAccessStream fileStream = await file.OpenAsync(FileAccessMode.Read)) { wrb = await Windows.UI.Xaml.Media.Imaging.BitmapFactory.New(1, 1).FromStream(fileStream); } in the above code I am getting error in "BitmapFactory". it shows below error: The type or namespace name 'BitmapFactory' does not exist in the namespace 'Windows.UI.Xaml.Media.Imaging' (are you missing an assembly reference?) 回答1: You are missing the WritableBitmapEx

xamarin forms wp81 status bar background color

你。 提交于 2019-12-13 07:22:34
问题 I am working on a xamarin.forms app, in my windows phone 8.1 app the status bar text and background color both come white. I tried all styles but nothing works. Below is my code <x:Class="Sthotraani.WinPhone.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:Sthotraani.WinPhone" RequestedTheme="Light"> <Application.Resources> <Style TargetType="CommandBar"> <Setter Property="Background" Value="

Wp 8.1 Webview scroll with the page contents

萝らか妹 提交于 2019-12-13 07:05:14
问题 I used webview in my project to display html contents. But it doesn't scroll with page( scrollviewer). I have set the height of the webview to the height of the content using java script. But it doesn't scroll. I also tried this custom control. It scrolls perfectly but it doesn't allow user interaction. I can't click on links. Basically they are overlaying a Grid on webview so that it scrolls but doesn't allow interactions. Is there any way that makes webview scrolls with page contents and at

Asynchronous download not reporting via IProgress.Report

萝らか妹 提交于 2019-12-13 07:02:57
问题 I'm facing a strange problem, which I must admit - do not understand. I've a Task, which is downloading a file from Web asynchronously: public async Task DownloadFile(Uri requestUri, string fileName, IProgress<int> progress) { HttpWebRequest request = HttpWebRequest.CreateHttp(requestUri); request.Method = "GET"; request.AllowReadStreamBuffering = false; using (WebResponse response = await request.GetResponseAsync()) using (Stream mystr = response.GetResponseStream()) { StorageFolder local =

How to go to previous page in windows phone 8 when back button is pressed

血红的双手。 提交于 2019-12-13 06:54:48
问题 I have a home page or landing page in my windows phone c# based app where user enters login details and upon successful login user is redirected to page2 . Here the user will see a list box with few items . Upon selecting an item from this list box a new page called "Threadx" opens.(where x is the each page that opens upon clicking the x item in the list box) While user is on this Thread page "Threadx" he may receive the toast notifications and the thread gets updated with new replies or

Listbox image control binding with SQLite , Image bytes are stored in Database C#

我的梦境 提交于 2019-12-13 06:16:58
问题 I have stored image bytes in SQLite database . when I want to get single image then I got that by id and convert image bytes to bitmap image. But when i want to bind list of data to listBox then I'm not able to bind directly image control to bytes. My Xaml code is here. <ListBox Background="Transparent" Margin="-5,2,-5,10" BorderThickness="0" MaxHeight="680" Grid.Row="1" x:Name="listBoxobj" SelectionChanged="listBoxobj_SelectionChanged"> <ListBox.ItemTemplate> <DataTemplate> <Grid Width="400"