windows-phone-8.1

Position mapicon below mapcontrol center

不问归期 提交于 2019-12-13 06:08:03
问题 please I need help with positioning of the mapicon below the mapcontrol.center point like this screenshot here http://www.windowsphone.com/en-us/store/app/sygic-gps-navigation-maps-poi-route-directions/340f7b71-86bc-4f99-8c59-d4a6126c10b1 回答1: Use NormalizedAnchorPoint property of the MapIcon class. It takes a Point , with x and y ranging from 0 to 1. Based on your screenshot (3rd one), you should use a value of (0.5, 1). MapIcon icon = new MapIcon(); icon.NormalizedAnchorPoint = new Point(0

Working with Pivot

我与影子孤独终老i 提交于 2019-12-13 05:57:30
问题 I am having 2 list.One list for pivot header and another for pivot item in a pivot control. I am unable to bind as such Below is a .cs part. public class ViewModel { List<Feed> feeds = new List<Feed>(); public ViewModel() { GetArticlesListingData(); } public List<Feed> Feeds { get { return this.feeds; } } private async Task GetArticlesListingData() { try { for (var k = 0; k < 6; k++) { Feed feed1 = new Feed(); feed1.Title = "National" + k; HttpRequestMessage request1 = new HttpRequestMessage

Resize image and change background Color

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 05:52:37
问题 I finish from resizing image but how can I change Background Color (Change black Color)? Like this image: http://i.stack.imgur.com/2Y3xG.jpg BitmapImage img = new BitmapImage(); img.SetSource(e.ChosenPhoto); Image image2 = new Image() { Width=640,Height=640,Visibility=Visibility.Collapsed,Source=img }; WriteableBitmap wb1 = new WriteableBitmap(image2,st); wb1.SaveJpeg(ms1, 640, 640, 0, 100); 回答1: you must place your Image control inside a container control (like a grid) and change the

Binding base64 String Image into List view Stored in SQLite Database in windows phone 8.1

拟墨画扇 提交于 2019-12-13 05:38:08
问题 I have converted Image to base64 string and saved it in SQLite database as public string ProfileImage { get; set; } I want to bind image into a List view as I did binding Name and Address. XAML <ListBox.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Border Background="{ThemeResource ListViewItemPlaceholderBackgroundThemeBrush}" Margin="0,10,0,0" Grid.Column="0" HorizontalAlignment="Left">

WP8.1 WinJS application crashes when launched from toast notification

吃可爱长大的小学妹 提交于 2019-12-13 05:23:20
问题 I am developing WP8.1 app with WinJS. I am using push notifications. I want to execute a logic depending on "launch" string received in push notification payload. My toast notification payload is <toast launch='launchString'> <visual> <binding template='ToastText02'> <text id='1'>headlineText</text> <text id='2'>bodyText</text> </binding> </visual> </toast> I have registered an event WinJS.Application.addEventListener("activated", this.onActivated); Which is defined as onActivated: function

Share text to facebook from Windows 8.1 and Windows Phone 8.1

我的梦境 提交于 2019-12-13 05:18:51
问题 I'm sharing some text with a link to facebook from apps on Windows Phone 8.1 and Windows 8.1. I want to have different text for social media (which I want to be "My App's link #MyApp") and email and text (which I want to be "My little bit of text"). In Windows phone the following code works: DataRequest request = GetMyDataRequest(); // for social media request.Data.SetRtf("My App's link #MyApp"); // for email and text request.Data.SetText("My little bit of text"); However when it comes to

Get IMSI and IMEI in Windows Phone 8.1

让人想犯罪 __ 提交于 2019-12-13 05:06:00
问题 I know that it is not possible to get the IMSI and IMEI on Windows Phone 7 and Windows Phone 8, however, given the major updated with the Windows Phone 8.1, am I now able to retrieve my device IMSI and IMEI number? 回答1: This page seems to have up-to-date, cross-platform advice for getting device ids. 来源: https://stackoverflow.com/questions/25813388/get-imsi-and-imei-in-windows-phone-8-1

async, await and strange result

佐手、 提交于 2019-12-13 05:05:29
问题 I am writing application on WP 8.1. One of my method is parsing html and everything was ok. But I want to change coding to have polish characters. So I must to have Length properties to variable type byte[]. To make this possible I need to use await and changed my method on asnych . public async void GetTimeTable(string href, int day) { string htmlPage = string.Empty; using (var client = new HttpClient()) { var response = await client.GetByteArrayAsync(URL); char[] decoded = new char[response

Cannot implicitly convert type 'string' to 'Windows.UI.Xaml.Media.Imaging.BitmapImage

余生颓废 提交于 2019-12-13 04:59:17
问题 I am trying to show an image stored in local directory inside XAML design. I have the path to local image. ImagePage.xaml <ScrollViewer> <ListView x:Name="ViewImage" SelectionMode="None" IsActiveView="True"> <ListView.ItemsPanel> <ItemsPanelTemplate> <WrapGrid Orientation="Horizontal" MaximumRowsOrColumns="1" /> </ItemsPanelTemplate> </ListView.ItemsPanel> <ListView.ItemTemplate> <DataTemplate> <Grid x:Name="imgGrid"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height

Operation not permitted on IsolatedStorageFileStream. when using MvvmCross file plugin

别来无恙 提交于 2019-12-13 04:57:05
问题 I have an instance of IMvxFileStore implementation for for Windows Phone injected into my service. Let say I want to store settings in a file located at appsettings\userprofiles\profile1.txt Using the file plugin, I first call the API EnsureFolder exists, passing in the full path to my profile settings file appsettings\userprofiles\profile1.txt to ensure that this folder has been created and does exist. Just for sanity, I check to ensure that the folder has been created using the FolderExist