windows-8.1

Get target of Windows .lnk shortcut using “Start in” directory

房东的猫 提交于 2019-12-05 00:57:07
问题 I am trying to retrieve the target path of a Windows .lnk shortcut, but the "Target" is not an actual file path according to the .lnk file's properties: I am using the IWshRuntimeLibrary and the shortcut object I am accessing is of type IWshShortcut: WshShell shell = new WshShell(); IWshShortcut link = (IWshShortcut)shell.CreateShortcut(lnkFileName); // This returns "C:\Windows\Installer\{F843C6A3-224D-4615-94F8-3C461BD9AEA0}\PaintShopProExeIcon.ico" var targetPath = link.TargetPath; // This

Can 64bit Delphi desktop application be certified for Windows 8.1

为君一笑 提交于 2019-12-04 23:44:46
问题 As far as I know 32bit Delphi desktop applications cannot be certified for Windows 8.1 due lack of SafeSEH via Can a desktop Delphi application be certified for Windows 8 But what about 64bit Delphi desktop applications? Can they pass other requirements, since they don't have to satisfy SafeSEH requirement? Are there any compiler/linker settings that have to be set to specific values if the answer is yes, and what is minimum Delphi version needed (obviously at least XE2). I am specifically

Parse Json using Windows.Data.Json in Windows 8 C#

萝らか妹 提交于 2019-12-04 22:23:34
This is the json string that I want to parse. Im using the default Json functions available in Windows 8 JSON value: "{\"updated_at\":1405482225,\"settings\":{\"conception_mode\":1,\"app_lock_string\":\"\",\"user_cycle_length\":21,\"week_starts_monday\":1}}" My sample code: JsonObject test1 = JsonObject.Parse(received); var timestamp = test1.GetNamedValue("updated_at").GetNumber(); settingsTimestamp = (long)(Convert.ToDouble(timestamp)); string settingString = test1.GetNamedValue("settings").GetString();//ERROR JsonObject settingsVal = JsonObject.Parse(settingString); I get the "updated_at"

Webkit transition not working on chrome with windows 8.1

旧巷老猫 提交于 2019-12-04 21:02:55
I'm implementing a themeforest template and having a weird issue with chrome on Win 8.1. The CSS is using -webkit-transition to fade in divs. Weirdly, this is not working only on chrome and windows 8.1. Windows 7 or 8 with the same chrome version(latest), works just fine. also on ubuntu. On IE10, also perfectly. Here is a link for the template preview. Anyone has any idea? Maby GPU issue? Thanks, Roi. 来源: https://stackoverflow.com/questions/19936046/webkit-transition-not-working-on-chrome-with-windows-8-1

Handling suspend, resume, and activation in windows 10 UWP

Deadly 提交于 2019-12-04 20:08:47
问题 In the windows 8.1 universal apps, the suspend/resume modes were handled using the NavigationHelper.cs ans SuspensionManager.cs classes included in the APP template. These classes doesn't seem to be there in the windows 10 UWP apps. Is there a way by which we can handle the suspend/resume states? 回答1: There's an interesting framework being developed by the community (but mostly I think Jerry Nixon, Andy Wigley etc.) called Template10. Template10 has a Bootstrapper class with OnSuspending and

Registering a touch screen HID with RegisterRawInputDevices does not work

牧云@^-^@ 提交于 2019-12-04 19:36:42
I am trying to get raw input data from a Surface touch screen, using RAWINPUT API. Getting the devices list works good. But when I want to register the touch screen device with RegisterRawInputDevices, I have issues : the function returns false with 87 (ERROR_INVALID_PARAMETER) in GetLastError... I have tried different things that I read online but none work. I am using Interop on C# for very simple desktop console application, developping with Visual Studio 2013 on Windows 8.1. The target is a Surface Pro 3. The code doing the work with the API is hereunder... (sorry for the ugly editing). I

Prevent the listview from scrolling to its top position when ItemSource changed Windows 8.1

谁说我不能喝 提交于 2019-12-04 18:48:36
So is there a way to stop scrolling up ? I have listview's scrollview and i tryed saving last position and in listview size changed scroll down - but it first scrolls down and later up ;/ Maybe there is some different event or completly different way ? You can set the ItemsStackPanel's ItemUpdatingScrollMode. <ListView> <ListView.ItemsPanel> <ItemsPanelTemplate> <ItemsStackPanel ItemsUpdatingScrollMode="KeepScrollOffset" /> </ItemsPanelTemplate> </ListView.ItemsPanel> </ListView> It only works when the scroll offset is greater than 0, so just scroll using ChangeView() to set it up. 来源: https:/

Style of MediaElement in Windows 8.1

南笙酒味 提交于 2019-12-04 15:59:17
How can I change style of sample MediaElement : For example how can I change the background. Code: <MediaElement AudioCategory="BackgroundCapableMedia" x:Name="media" MediaEnded="Media_MediaEnded" AutoPlay="True" AreTransportControlsEnabled="True" IsMuted="False" Volume="0.5"/> Actually you can change the colors by overriding the default colors in the App. Note this would apply now for all MediaElement controls with transport controls, but it is possible. In your App.xaml you would provide overrides for these values like this: <Application.Resources> <SolidColorBrush x:Key=

Cannot get Facebook single signon with windows 8.1 to work

人走茶凉 提交于 2019-12-04 15:36:11
After the great news about Facebook and Microsoft support Facebook SSO I have tried to implement this in a winrt/xaml/c# app for windows 8.1, however I cannot get it to work. I have registered the app with facebook and set the app's SID in the app's settings. This is the login code: Uri sid = WebAuthenticationBroker.GetCurrentApplicationCallbackUri(); string callbackURL = sid.ToString(); String facebookURL = "https://www.facebook.com/dialog/oauth?client_id=" + Uri.EscapeDataString(AppId) + "&display=touch&response_type=token&scope=publish_stream&redirect_uri=" + Uri.EscapeDataString

Search and Connect to Bluetooth device in Windows 8/8.1 Store apps?

六月ゝ 毕业季﹏ 提交于 2019-12-04 15:30:31
I need to search and connect to a Bluetooth device using a Windows store app. I am using XAML/C# and Windows 8.1. The device supports RFCOMM. What I have done so far: If I pair the device to my system and then search for the device using var devicesInfoCollection = await DeviceInformation.FindAllAsync(); I get the Bluetooth Device, however is there a way to find the device when its still not paired. Thanks There is no way to do that (in Windows 8.1). You have to pair your device first, otherwise the offered service won't show up in the list returned by .FindAllAsync(). 来源: https:/