windows-runtime

Center map between two points WinRT

陌路散爱 提交于 2019-12-25 03:26:43
问题 im trying to center the windows phone map between two points, adjusting center and zoom to make that points visible at the same time. Im Android and IOS there are functions to do it, as example this is how to do it in Android: LatLngBounds.Builder builder = new LatLngBounds.Builder(); builder.include(myPos.getPosition()); builder.include(defaultPos.getPosition()); mapa.animateCamera(CameraUpdateFactory.newLatLngBounds(builder.build(), 50)); How can i do the same in WinRT? Thanks in advance.

Locally deploy parallel versions of a Windows Store App

左心房为你撑大大i 提交于 2019-12-25 03:26:28
问题 I am developing a Windows Store App and I like to keep the most recent baseline installed while developing the next. The problem is that whenever I run the current developmental version in Visual Studio 2013 (with F5) it un-installs the recent baseline. I create and install a baseline by manually editing the Package.appxmanifest as follows: edit the Identity Name Append .R to every instance of the app name (eg. MyApp to MyApp.R ) (full file listing below) I think that should be enough, but in

Google.Apis SDK: Google+ sharing in windows phone

穿精又带淫゛_ 提交于 2019-12-25 03:14:04
问题 I have integrated Google.Apis SDK in my windows phone 8.1 store app. I have not found any API to share interactive posts on google+. Is that API is available in Google.APis SDK? If yes, Which one? For iOS GPPNativeShareBuilder is used for sharing. For Android PlusShare.Builder](https://developers.google.com/+/mobile/android/share/interactive-post) is used How to do this in Windows Phone 8.1 runtime app?. Thanks 回答1: Although a native solution does not exist for Windows, you can still build

Is preparing Windows 8 XAML HubPages from several GridViews inside ScrollViewer the good approach?

旧街凉风 提交于 2019-12-25 02:59:29
问题 I'd like to get the effect visible on the picture: 回答1: I don't think it is. A GridView already has a ScrollViewer in itself, so multiple of them does not make sense. I would try to use a single GridView with GroupStyleSelector/ItemContainerStyleSelector/ItemTemplateSelector implementations and DataTemplates to define each item. A less dynamic version might just be a ScrollViewer with Style set to HorizontalScrollViewerStyle, a horizontal StackPanel and a few VariableSizedWrapGrids - if you

Returned value is null when downloading a file from OneDrive

大憨熊 提交于 2019-12-25 02:29:11
问题 As it is said in the documentation, I try to download a file way: try { LiveDownloadOperation operation = await connectClient.CreateBackgroundDownloadAsync(filePath); var result = await operation.StartAsync(); var file = result.File; // It is null } catch { // Handle errors. } But result.File is null. I think something is wrong with my file path, which is like this: path = "file.8c8ce076ca27823f.8C8CE076CA27823F!129" also tried: path = "file.8c8ce076ca27823f.8C8CE076CA27823F!129/content" what

WinRt TextBlock with single space width

五迷三道 提交于 2019-12-25 02:25:32
问题 I'm trying to make a text on path element. To accomplish this I split original text to single characters and for each character create new TextBlock and count it's width after measurement. The problem is, that when a TextBlock contains only a single space it's width is 0, it seam's space is being trimmed. How do I prevent trimming spaces? Or maybe there's a better suggestion? Thanks a lot. 回答1: If you want to place a space on path - you don't really need to display a TextBlock there. If you

CoreDispatcher.HasThreadAccess “breaking change”

♀尐吖头ヾ 提交于 2019-12-25 01:58:57
问题 I am taking over an application developed with MvvmCross.vNext. While trying to update it with MvvmCross.V3, I found the following breaking change: in the constructor of the MainViewModel, we show the LoginViewModel (ShowViewModel()). It worked fine in vNext. But with V3, the LoginView doesn't show. After a long search, I found out that the following code, added in MvxStoreMainThreadDispatcher.RequestMainThreadAction : if (_uiDispatcher.HasThreadAccess) { action(); return true; } was

C# Mixing WinRT and Windows Forms

我是研究僧i 提交于 2019-12-25 01:42:51
问题 As far as I understand, I can use Windows Forms in Windows 8 Pro (non-RT) applications. However I was wondering if I can develop an app which has a nice WinRT interface for the main part as well as a WinForms part for the more complicated parts which benefit from stuff like TreeViews and which are complicated and useless to reimplement. Which development environment would I need for that? 回答1: Windows Store Applications are intentionally limited and do not include the entire .NET Framework,

Are there any Database solutions for Windows Runtime other than SQLite?

二次信任 提交于 2019-12-25 01:39:26
问题 I have around 1000 - 5000 records and want to save them in a database for a fast access. I used SQLite in Windows Phone Runtime, but it is VERY slow, only 2-3 inserts in a second. I'm wondering if there even exists any other database solutions faster than SQLite? 回答1: I think the answer is - in short - no. Microsoft has dropped the good old LINQ to SQL when they introduced Windows Store apps. That feature remains available only for Silverlight apps. So far SQLite is the only way to go (imo).

does winrt have a gesture builder

≡放荡痞女 提交于 2019-12-25 01:35:23
问题 In the android world there is a cool utility called Gesture Builder that allows you to associate a pre-recorded gesture with a command. For example, they can do an X on the screen and it would close the app, or draw a heart and have the app send a valentine email. Is there a similar feature with WinRT? 回答1: I don't think there is anything built in, but you could try $1, N$ - One Dollar and N Dollar Recognizers: http://depts.washington.edu/aimgroup/proj/dollar/ http://depts.washington.edu