windows-phone-8.1

Handle files from OnFileActivated()

孤者浪人 提交于 2019-12-12 03:53:50
问题 I have problem with handling files passed to my application in OnFileActivated() . First, I've registred specific file extention in Package.appminifest of my application, so after tap into specific file my application starts and run OnFileActivated function. In my case file is archive zipped with System.IO.Compression.ZipArchive , but I think it's not crutial here. Beggining of my function looks as follow: protected override async void OnFileActivated(FileActivatedEventArgs args) { base

Windows Phone 8.1 AppBarButton Template not editable

别说谁变了你拦得住时间么 提交于 2019-12-12 03:37:24
问题 I am not able to redefine the Template of an AppBarButton inside BottomAppBar in a Windows Phone 8.1 project. In Visual Studio XAML designer it changes (it shows "button 2" text), but when I deploy it to the phone or to the emulator, the default template is applied. I tried to right click the control, "Edit template", "Edit a copy...", but it's not available. Is it possible, to redefine this template? My XAML code (just a very simplified example): <Page.BottomAppBar> <CommandBar> <CommandBar

Unable to run Windows Phone 8.1 Emulator on Titanium Appcelerator

喜你入骨 提交于 2019-12-12 03:27:40
问题 I am trying to run an Android app made in Titanium Appcelerator, to run in Windows Phone emulator I have VS 2013 Pro & Appcelerator Studio 4.5 I wish to run app in Windows Phone emulator, but it gives me error [ERROR] : Invalid "--device-id" value "8-1-1" For help, run: titanium.js help build Command Details Operating System Name = Microsoft Windows 10 Pro Version = 10.0.10586 Architecture = 32bit # CPUs = 4 Memory = 8479367168 Node.js Node.js Version = 0.12.7 npm Version = 2.11.3 Titanium

new LocationTrigger(LocationTriggerType.Geofence) fails with InvalidCastException when registring background task

耗尽温柔 提交于 2019-12-12 03:26:35
问题 I build simple app with usage of geofence api and background task to handle geofence changes. Here is part of code, wich try register background task private async void RegisterBackgroundTask() { const string name = "GeofenceBackgroundTask"; if (BackgroundTaskRegistration.AllTasks.Any(task => task.Value.Name == name)) { return; } var loc = await new Geolocator().GetGeopositionAsync( TimeSpan.FromMinutes(2), TimeSpan.FromSeconds(5)); //needed to trig user acceptance var backgroundAccessStatus

Navigate to a specific html page on clicking toasts with params (WinJS)

不想你离开。 提交于 2019-12-12 03:24:22
问题 I have a WinJS project and I receive toasts notification from my webservice. In my webservice my XML is like: string type = "Computer"; string toast1 = "<?xml version=\"1.0\" encoding=\"utf-8\"?> "; string message = "{\"Message\":{\"Id\":\"6724d22a-87fe-4137-b501-9d9a9a0558b1\",\"DetailId\":\"dc02e784-7832-4625-a538-29be7f885ccb\",\"Description\":\" Message\",\"UserName\":null,\"ActionDateTime\":\"2015-09-15T15:36:14+05:45\",\"CalamityId\":\"c0fa848e-ee6c-4b91-8391-a12058f25387\",\

SQLITE Database for Windows Phone 8.1(Silverlight)

我与影子孤独终老i 提交于 2019-12-12 03:15:40
问题 I am developing an app for windows phone 8.1 using SilverLight in that I am storing details of some products using sqlite but I want to know how can I store that data permanently means when I close the emulator the data is lost. So please let me know how do I store that data. 回答1: When you close the emulator, all the data is lost and all the apps deleted. Imagine it as doing a hard reset on your device. Your only solution is not to close the emulator or get a real device for testing. 来源:

ProgressRing is not showing while the app runs

左心房为你撑大大i 提交于 2019-12-12 03:14:35
问题 I am developing a 'Universal App' for Windows 8.1 and Windows Phone 8.1 I need to add a ProgressRing control to my page, because there is a task which takes some time to complete and I should notify the user that the app is loading data. So I followed the instruction on MDSN in the following link: To create an indeterminate progress ring and they stated what I exactly need: 4. Adding an indeterminate progress ring When you can't estimate how much work remains to finish a task and the task

XAML editor failes, Package failed updates, dependency or conflict validation.Windows cannot install package App

我的梦境 提交于 2019-12-12 03:08:09
问题 I have just installed Visual Studio Express 2013 update 4 on Windows 8.1 OS, and started a new Windows Phone App project. When I tried to open a View Designer page of any XAML , it fails with the following error message: System.Exception Package failed updates, dependency or conflict validation. Windows cannot install package App.af631a335.af069.a4bf5.a81c7.af4c34f85cb29 because this package depends on another package that could not be found. This package requires minimum version 0.0.0.0 of

How to implement AES Encrypt (AesManaged Rfc2898DeriveBytes) in Windows Runtime

瘦欲@ 提交于 2019-12-12 03:07:07
问题 I met a blocking issue when I tried to immigrate my project from Windows Phone Silverlight 8.1 to Windows Runtime. In Windows Runtime the AES-encrypted string is not the same as the one on Silverlight before. In Silverlight: public static string EncryptAES(string encryptString) { AesManaged aes = null; MemoryStream ms = null; CryptoStream cs = null; string encryptKey = "testtest123"; string salt = "abcabcabcd"; try { Rfc2898DeriveBytes rfc2898 = new Rfc2898DeriveBytes(encryptKey, Encoding

Can't access datacontext of parent

淺唱寂寞╮ 提交于 2019-12-12 02:56:08
问题 Basically what i have is a ListBox with ContextMenu <ListBox Margin="2,0,0,0" Grid.Row="1" ItemsSource="{Binding MyCollection}"> <ListBox.ItemTemplate> <DataTemplate> <Button Style="{StaticResource NoVisualButton }" Tag="{Binding ID}" Width="430" toolkit:TiltEffect.IsTiltEnabled="True" Margin="0,0,0,12" Click="OnSelectWorkOutItemClick"> <StackPanel> <toolkit:ContextMenuService.ContextMenu> <toolkit:ContextMenu> <toolkit:MenuItem Header="delete" Tag="{Binding ID}" Click=