windows-phone-8

Obfuscation with Windows Phone 8

旧时模样 提交于 2019-12-24 01:25:47
问题 I'm looking into obfuscating my Windows Phone 8 app. The first thing that's thrown me a little is that most programs I've looked at talk about obfuscating the .DLL file that is generated when my build my app, but it's the .xap file I upload to the store? So I don't understand what difference obfuscating the .DLL files would make? 回答1: Since some time all XAPs are delivered trough secure connection. There is no need for Obfuscation as the XAP file cannot be accessed on the device or while

Windows Phone 8: access UI Dispatcher in C++ code

时光毁灭记忆、已成空白 提交于 2019-12-24 01:18:30
问题 I am working on an Windows Phone 8 Application that uses mixed C# for UI and C++ for the underlying backed. I have some instances where I need to run some C++ code on the UI dispatcher thread (IE GetGeopositionAsync()). I have tried a method of making a callback from C++ to C# that runs in the UI thread and then calls a C++ method and runs: auto window = Windows::UI::Core::CoreWindow::GetForCurrentThread(); However this is returning null. Is there any way for me to accomplish this? 回答1: I had

Windows Phone 8 IE10 Mobile overflow scroll doesn't work

﹥>﹥吖頭↗ 提交于 2019-12-24 00:44:47
问题 I've elements with overflow:'scroll' style setting. All mobile devices but windows phone enables scrolling by touch-drag. Is there any solution to make this work ? 回答1: Solved. It's because of the viewport setting. Answered on the link below. Div overflow scrolling when -ms-viewport is specified? 来源: https://stackoverflow.com/questions/20952273/windows-phone-8-ie10-mobile-overflow-scroll-doesnt-work

Problems with show dialog on Background task in windows phone 8.1

淺唱寂寞╮ 提交于 2019-12-24 00:18:39
问题 I have this code for execute httpwebrequest and response in background method and i just want show dialog for information when download zip crashed and my code enter in this catch... private void DoSincroFit() { HttpWebRequest request = HttpWebRequest.CreateHttp(url); request.BeginGetResponse(new AsyncCallback(playResponseAsync), request); } public async void playResponseAsync(IAsyncResult asyncResult) { //Declaration of variables HttpWebRequest webRequest = (HttpWebRequest)asyncResult

Can I change CheckBox color in LongListMultiSelector? WP8

走远了吗. 提交于 2019-12-24 00:14:52
问题 I need to change the color for the LongListMultiSelector's CheckBox in Windows Phone 8, because my background is white, this is possible? Thanks. 回答1: In order to do that you have to first edit the ItemContainerSyle by right clicking on the longlistselector from document outline in visual studio and then choose Edit Additional Style -> Edit ItemContainerSyle -> Create Empty Then you have to replace the setters for the generated template with the original setter code from codeplex. the

Windows Phone 8 - enums & DataAnnotations

南笙酒味 提交于 2019-12-24 00:05:10
问题 Were this not a window phone 8 project, If I wanted to display a human readable version of an enum I would use a niftt DataAnnotation like such public enum InstallationType { [Display(Description="Forward of Bulk Head")] FORWARD = 0, [Display(Description="Rear of Bulk Head")] REAR = 1, [Display(Description="Roof Mounted")] ROOF = 2, } and pull them out using something to the effect of: public static string GetDescriptionFromEnumValue(Enum value) { DisplayAttribute attribute = value.GetType()

Inheriting code-behind class from PhoneApplicationPage's subclass

此生再无相见时 提交于 2019-12-23 22:33:26
问题 By default all code-behind classes inherit from PhoneApplicationPage . I would like to make a subclass of PhoneApplicationPage and use it as basis for my code-behind class, like so: namespace Test { public partial class HistoryRemoverPage : PhoneApplicationPage { protected override void OnNavigatedTo (NavigationEventArgs e) { if (e.NavigationMode == NavigationMode.New) NavigationService.RemoveBackEntry(); } } } namespace Test { public partial class MainPage : HistoryRemoverPage { public

WP8.1 AppBarButton holding event

空扰寡人 提交于 2019-12-23 22:19:26
问题 How do I detect if AppBarButton is being held? There is a Holding event, but it never fires, even if I set AppBarButton's property IsHoldingEnabled to true. Or even when I set CommandBar's IsHoldingEnabled to true. 回答1: Try this code within your xaml code for your appbar . <page.BottomAppBar> <commandBar> <commandBar.PrimaryCommands> <appBarButton Label="formatting" IsHoldingEnabled="True" Holding="AppBarButton_Holding"> <appBarButton.Icon> <pathIcon HorizontalAlignment="Center"

How to have an email link inside a text in Xaml?

拈花ヽ惹草 提交于 2019-12-23 21:28:01
问题 I have some large texts in a Windows phone 8 app and I want there to be e-mail links inside, something like a mailto feature. Here's a part of the code: <phone:PivotItem Header="μέλη ΔΕΠ"> <ScrollViewer> <StackPanel> <TextBlock TextWrapping="Wrap"> <Run Text="John Doe"/> <LineBreak/> <Run Text="503 (Building DS 126)"/> <LineBreak/> <Run Text="tel.: +30 210-1234567"/> <LineBreak/> <Run Text="e-mail: johndoe@uni.gr"/> </TextBlock> </StackPanel> </ScrollViewer> </phone:PivotItem> I would like

Saving WriteableBitmap to PNG

别来无恙 提交于 2019-12-23 21:27:57
问题 How to save WriteableBitmap into PNG with Transparent background. Is there a different between PNG and PNG with Transparency? appreciate your help. Please show me the sample code. Thanks 回答1: Just go through the following links. May that could help you out. Save WriteableBitmap to file using WPF Saving Bitmap as PNG on WP7 http://www.codeproject.com/Questions/272722/Converting-WriteableBitmap-to-a-Bitmap-for-saving ): 来源: https://stackoverflow.com/questions/14434951/saving-writeablebitmap-to