windows-8

“Guided Access” equivalent

好久不见. 提交于 2019-12-10 11:36:54
问题 I have to develop a windows store app which will be usable on public devices, that means users aren't supposed to be able to quit my application. On iOS devices, an option called "Guided Access" allows to do this easily, buttons are disabled and you can specify an area where user can interact. After some researches, I haven't found a way to do that, it seems that Microsoft has not implemented this option in Windows 8, so I'm looking for a way to do this with some code, directly in my app but

How to use a font from a file in SharpDX?

早过忘川 提交于 2019-12-10 11:36:34
问题 i want to generate image for windows 8 app, i'm going to use SharpDX API here is the code sample which i thankfully coped and paste private MemoryStream RenderStaticTextToBitmap() { var width = 400; var height = 100; var pixelFormat = WicPixelFormat.Format32bppBGR; var wicFactory = new ImagingFactory(); var dddFactory = new SharpDX.Direct2D1.Factory(); var dwFactory = new SharpDX.DirectWrite.Factory(); var wicBitmap = new Bitmap( wicFactory, width, height, pixelFormat, BitmapCreateCacheOption

Async and await confusion

久未见 提交于 2019-12-10 11:33:19
问题 hello friend i got confusion in working of async and await keywords.actually i have written this async function private static async Task FillAssignmentStudentTableFromExtraUsers(int assignmentId, List<JToken> lstOfExtraUser) { await CreatTable.CreatAssignmentStudentTable(); foreach (var item in lstOfExtraUser) { assignmentStudentModel obj = new assignmentStudentModel() { AssignmentId = assignmentId, studentId = (int.Parse)(item.SelectToken("id").ToString()), name = item.SelectToken("name")

Windows Store app crashes, quality reports, and CEIP

一世执手 提交于 2019-12-10 11:14:36
问题 Microsoft's Antoine Leblond discusses here how the Windows Store dashboard shows app crashes, which is nice. Separately, Microsoft has an article that talks about their Windows Customer Experience Improvement (CEIP) system, noting that CEIP is turned off by default in Windows 8. However, the article also says this: When Windows 8 is installed and the computer is started for the first time, the Initial Configuration Tasks dialog box appears. Accepting the default recommendations for Initial

Window 8 consuming SharePoint REST Interface through FormsAuthentication?

谁说我不能喝 提交于 2019-12-10 11:01:32
问题 I have created a sample Windows 8 Application getting SharePoint 2010 list data using REST Apis like _vti_bin/ListData.svc I am using NetworkCredential to access the list its working fine. How can I achieve the same results using FormsAuthentication? Code for NetworkCredential: context = new CentralAdministrationDataContext(new Uri("http://<SharePoint_URL>/_vti_bin/ListData.svc")); NetworkCredential credentials = new NetworkCredential(); context.UseDefaultCredentials = false; context

How to check if a user rated my app

早过忘川 提交于 2019-12-10 10:48:34
问题 I developed a simple free game for Windows 8 Store and now I want to ask my users to give the game a rating and possibly write it a review. How can I check if they already did this (i.e. rated the game or wrote a review), so I do no not ask again? 回答1: Jared has pretty much nailed it. I don't think you can unless there is a Windows Store API that provides that information to your app. The user information and his/her rate and review status and data is stored outside of your app and therefore

Page.OnNavigatedTo doesn't get called in Windows Store app

♀尐吖头ヾ 提交于 2019-12-10 10:37:48
问题 I have a Windows Store mess around app. I added a Basic Page and it added the Common classes, such as LayoutAwarePage. But Page.OnNavigatedTo doesn't get called when an app starts. The MSDN doc says: Invoked when the Page is loaded and becomes the current source of a parent Frame Which happens during launch. I discovered this when LoadState wasn't being called. Rick Barraza uses LoadState, which is called by OnNavigatedTo, in his demo: http://channel9.msdn.com/Series/Migrating-apps-from

How do you register a custom Win+V hotkey on Windows 8?

与世无争的帅哥 提交于 2019-12-10 10:29:02
问题 It was possible to register the Win+V hotkey on versions of Windows prior to Windows 8. An example application using this combination is PureText. With the Windows 8 Release Preview I've noticed that Windows 8 has taken control of a lot of hotkeys involving Windows key, but Win+V doesn't appear to be used. The following code will allow me to register a hotkey for Win+CTRL+V: #include <Windows.h> int _tmain(int argc, _TCHAR* argv[]) { if (RegisterHotKey( NULL, 1, MOD_WIN | MOD_NOREPEAT | MOD

Detecting a scroll event in GridView (Windows 8)

旧时模样 提交于 2019-12-10 10:27:34
问题 How do we detect a scrolling event in GridView (like ViewChanged on ScrollViewer) on somethig like the default GridView template sample app? I'd like to replicate the effect that the netflix App does on the left red strip. I tried putting the GridView inside a scrollviewer, but I've been unsuccessful at stretching it to fill the screen for different resolutions. Update: I intend to use this with VariableGrid control that's on NuGet - though it's not an official control, it inherits GridView

Is it possible to share data between users in a Windows Store App?

僤鯓⒐⒋嵵緔 提交于 2019-12-10 10:18:14
问题 I'm pretty sure that I know the answer to this question (A big fat NO), but is it possible to share downloaded data between the same application but multiple users (Windows login, not Microsoft Store users) in a Windows Runtime environment? The local data folder is relative to each login user, so this seems impossible at first glance. It would be a huge waste for each user to have to download all of the content for the application since it is between 700MB - 1GB of content per app. 回答1: This