windows-8

Internet Explorer Extensions

依然范特西╮ 提交于 2019-12-22 01:05:44
问题 I created an IE extension from this source: How to get started with developing Internet Explorer extensions? And it work great. But i want to change int IOleCommandTarget.Exec(IntPtr pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) { var form = new HighlighterOptionsForm(); form.InputText = TextToHighlight; if (form.ShowDialog() != DialogResult.Cancel) { TextToHighlight = form.InputText; SaveOptions(); } return 0; } to this: int IOleCommandTarget.Exec(IntPtr

sqlite in windows runtime component

匆匆过客 提交于 2019-12-22 01:03:20
问题 am trying to use sqlite in a windows runtime component. But I get some 219 errors when i add the nuget sqlite-net package. couldnt figure it out anywhere. Any similar issues ? I finally used a store app class library to use sqlite and called those methods in it from my windows runtime component. method in store app public async Task<IEnumerable<TaskGroup> > GetTaskGroup() { return await conn.QueryAsync<TaskGroup>("select * from TaskGroup"); } calling method in win runtime component public

Binding multiple HTML properties using WinJS?

五迷三道 提交于 2019-12-22 00:27:21
问题 WinJS allows you to bind HTML properties dynamically at run-time, similar to XAML binding. <div id="itemTemplate" data-win-control="WinJS.Binding.Template"...> <h3 data-win-bind="innerText: timestamp"></h3> </div> How if I want to also bind the font color style for <h3> as well, how do I achieve that? 回答1: Unlike the data-win-options binding which makes use of {key:value,key2:value2} syntax. data-win-binding uses a syntax similar to inline-css styles. Using property:bindingValue;property2

Visual Studio 2012 designer error

蹲街弑〆低调 提交于 2019-12-21 23:16:54
问题 I am in the middle of Windows Store app development. Suddenly an exception occurred when I open XAML file " System.Runtime.InteropServices.COMException. The application cannot be started. Try reinstalling the application to fix the problem. (Exception from HRESULT: 0x80073CFC)" What I tried so far: 1. Restart PC 2. Reinstall Visual Studio 2012 ultimate 3. Uninstall VS 2012 ultimate and installed VS2012 Express for windows 8. but still the error is same. The details of the error are: Microsoft

Where do I find conceptual documentation for Windows Runtime? [closed]

为君一笑 提交于 2019-12-21 23:00:07
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm trying to learn enough about Windows Runtime to make a recommendation about what it would entail for my employer to port our

How to detect when Windows 8 goes to sleep or resumes

空扰寡人 提交于 2019-12-21 21:40:28
问题 I have an app that keeps a connection alive to a server, however if the user walks away and the tablet goes to sleep, I would like to handle the disconnect gracefully, and I would also like to log back in when the user wakes the tablet. I've tried in my putting the following code in my connection class, but they never get fired. Application.Current.Suspending += this.OnAppSuspending; Application.Current.Resuming += this.OnAppResuming;; 回答1: For desktop apps, you can use SystemEvents

Windows 8 start “metro” app from desktop app?

心不动则不痛 提交于 2019-12-21 21:13:48
问题 Is there any way to start a "Metro" app from a desktop app in .net? 回答1: All Modern UI apps have a URL protocol associated with them which can be used to launch the app. You can find find the protocol for a specific app like this: Press Windows+R Type regedit Navigate to HKEY_CLASSES_ROOT\Extensions\ContractId\Windows.Protocol\PackageId Find the subkey for your app (eg, AMZNMobileLLC.KindleforWindows8_1.1.0.0_neutral__stfe6vwa9jnbp ) Within that subkey, go to ActivatableClassId_some long name

List<> .ForEach not found [duplicate]

倖福魔咒の 提交于 2019-12-21 20:46:54
问题 This question already has answers here : Is the List<T>.ForEach() method gone? (3 answers) Closed 6 years ago . I am porting a Windows Phone app to Win 8, and I have found this stumbling block, but cant find the solution. I have a: List<items> tempItems = new List<items>(); and ObservableCollection<items> chemists = new ObservableCollection<items>(); I have added items to my tempItems etc, so then I do this: tempItems.OrderBy(i => i.Distance) .Take(20) .ToList() .ForEach(z => chemists.Add(z))

Can a HTML/JavaScript Windows Store app run in a resizable window?

随声附和 提交于 2019-12-21 19:29:11
问题 I am about to begin developing an application on Windows 8.1. To leverage my existing skills and experience I would prefer to use HTML rather than XAML for the front end. Instead of running the application in full screen, I'd like to have it in an old-school WPF/WinForms style window which can be resized, maximized etc. Is this possible? If so, how? 回答1: This is not possible in Windows Store Apps. The closest thing you'd get is Snapped Views, which is sufficient in most cases, but will not

Adding Visual States to a Data Template in Windows 8

不想你离开。 提交于 2019-12-21 17:31:40
问题 I am trying to add a Mouse Over effect to my Windows 8 application. Specifically I'm trying to add it to DataTemplates bound to a GridView. However, Currently, nothing is happening, I've tried to follow the Microsoft tutorials but most of those are either out of date or for different versions of XAML. My code looks like this: <DataTemplate x:Key="GameTileTemplate"> <Grid x:Name="grid" Width="173" Height="173" RenderTransformOrigin="0.5,0.5" > <Grid.Clip> <RectangleGeometry Rect="0,0,173,173"/