windows-phone-8.1

RichTextBlock text line count

混江龙づ霸主 提交于 2019-12-12 05:43:07
问题 I am working on Windows Phone 8.1 application and I got this issue: I have a RichTextBlock control which holds my text, if my control height is bigger than my screen I need to scroll line by line automaticly while the user reads the text. Is there any way to determine the number of the lines in my RichTextBlock or geometric calculation is the only way? I've tried to iterate over the Blocks collection, but nothing seems to be relevant. The only thing that I've came with is by using TextPointer

flipview on windows phone 8.1 error “The name '' does not exist in the current context”

喜欢而已 提交于 2019-12-12 05:14:36
问题 I have a flipview containing photo, descbox, detailBtn, hideBtn. I would like if the photo tapped, then descbox and hideBtn appear, while detailBtn not appear. And if the photo tapped again, then descbox and hideBtn not appear, while detailBtn looks. Or if detailBtn clicked, then descbox and hideBtn appear, while detailBtn not appear. And if hideBtn clicked, then descbox and hideBtn not appear, while detailBtn appear. I'm using the code below: private async void NavigationHelper_LoadState

404 error push notification in windows phone rt 8.1

百般思念 提交于 2019-12-12 05:06:24
问题 I am getting 404 error when i am working with windows phone push notifications. Any one help me out. Thanks in advance. my code: string strChannelURI = https://hk2.notify.windows.com/?token=fgdggg/o0mhYNj9rWeJSQwvcBMGuVgDwAKXr/Q2N9C14HM7O+nVwJfZJdfG4fgvgfggfgg454545wTJg9LJ7euLWvxB0YXo7XQ4eWc=; // string PushNotificationXML1 = "<toast launch=\"/text to receive\">" + "<visual>" + " <binding template=\"ToastImageAndText02\">" + " <text id=\"1\">" + Headertext + "</text>" + " <text id=\"2\">" +

resize image before upload via background transfer in winjs

故事扮演 提交于 2019-12-12 04:56:12
问题 I would like to resize an image picked from the gallery of the phone before uploading it via background transfer so far I have:- filePicker.pickSingleFileAsync().then(function (file) { uploadSingleFileAsync(uri, file); }).done(null, displayException); function uploadSingleFileAsync(uri, file) { if (!file) { displayError("Error: No file selected."); return; } return file.getBasicPropertiesAsync().then(function (properties) { if (properties.size > maxUploadFileSize) { displayError("Selected

Convert encoding on Windows Phone 8.1

♀尐吖头ヾ 提交于 2019-12-12 04:53:07
问题 I'm trying to download content from website in Windows Phone 8.1 app and I have a problem with encoding. I know there is just UTF-8 and UTF-16 so I'm trying to use the generated class from here for conversion: http://www.hardcodet.net/2010/03/silverlight-text-encoding-class-generato (With settings - Encoding name ornumeric code page: windows-1250 ) Than I'm trying to use it this way: private string Encode(string xml) { Encoding win1250 = new Windows1250Encoding(); Encoding utf = Encoding.UTF8

Overwrite Accent Color in App

瘦欲@ 提交于 2019-12-12 04:48:34
问题 I try to create a own design for my app. One of the main things is, that I want to replace the accent color with my own color. Now I can overwrite the brush with this: <Color x:Key="AppAccentColor">#ff6b53</Color> <SolidColorBrush x:Key="PhoneAccentBrush" Color="{StaticResource AppAccentColor}"/> Now if I assign the PhoneAccentBrush somewhere it displays the correct color. But if I click on a TextBox the Border is still the Color of the Color set in the system settings. I tried to overwrite

Send device's current location to Azure service in Windows 8.1

时光怂恿深爱的人放手 提交于 2019-12-12 04:18:43
问题 I am developing a location tracking windows mobile app and I want to send my current location to azure service as a background task. Getting current location is done. Currently I show the current location in the app tile. Likewise showing location in the tile I want to send location to the azure service. But how can I send my current location to azure service continuously so rest of the devices can see the device's location. So far my code public sealed class BackgroundGeofenceTask :

Retaining selected item in sublist in DataTemplate change in Windows Store Apps

柔情痞子 提交于 2019-12-12 04:17:31
问题 I have generated an expandable Listview in Windows Phone 8.1. I'm switching templates on item selection changed and item click. <ListView Name="FiltersListview" ItemContainerStyle="{StaticResource StretchItemStyle}" ItemTemplate="{StaticResource CollapsedTemplate}" SelectionChanged="FiltersListview_SelectionChanged" IsItemClickEnabled="True" ItemClick="FiltersListview_ItemClick" Grid.Row="1" Grid.ColumnSpan="2"/> <DataTemplate x:Name="CollapsedTemplate"> <Grid Height="50"> <Grid

How to change background color of checkbox when checkbox is IsChecked in XAML in windows phone 8.1

巧了我就是萌 提交于 2019-12-12 04:16:01
问题 Is there any way to change check box background color in xaml not c# . I know there are Checked and UnChecked event .but I have to use in Xaml . I have refer its template but can't find the solution . please help me for that Thank you 回答1: In the edit template style of the checkbox lookout for the x:Name="Checked" visualstate. Add the following animation inside the storyboard to change the background of the checkbox when checked: <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty=

Windows Phone 8.1 System.Security.Cryptography doesn't exist

社会主义新天地 提交于 2019-12-12 04:14:41
问题 I need to use the System.Security.Cryptography namespace in my Windows Phone 8.1 app - specifically the rsa provider. But there is no such namespace available when i make a Windows Phone app. When I use Siverlight the namespace is there but I cant find it when creating standard Windows Runtime apps. The MSDN documentation says that RSACryptoServiceProvider is available on Windows Phone 8.1, do I need to reference any additonal assemblies to get it working? 回答1: In windows phone 8.1 this is