windows-8.1

how to print 2 alerts consecutives WinJS

自古美人都是妖i 提交于 2020-01-05 01:33:24
问题 I want to print two alerts on my app, one to show an application and after pressing close button on first alert to show the second alert Windows.UI.Popups.MessageDialog("Hello Welcome").showAsync(); Windows.UI.Popups.MessageDialog("Welcome to my app").showAsync(); if I just print an alert, everything works good but on the other scenary (two alerts) the code stops with an error, how to fix that?? 回答1: You can't have multiple MessageDialog s open at the same time. Since the showAsync returns

Bonjour SDK for Windows 8.1

蹲街弑〆低调 提交于 2020-01-04 13:49:18
问题 I installed both Bonjour SDK for Windows v2.0.4 and Bonjour 3 for Windows 8 and 8.1 from Apple's website on my Windows 8.1 machine. When I try to use the Bonjour package in my C# code, the package is not recognized and I can't use the SDK. Any ideas why this would happen? Edit: Turns out it was because Interop.Bonjour.dll was not among the References, so I added it and now I don't get the error. However, when I try to use a class of Bonjour package, like below: DNSSDService service = new

How to update a value in parent ViewModel if value in one of it's child is updated in windows 8.1 app

拟墨画扇 提交于 2020-01-04 04:24:05
问题 I have a Windows 8.1 application with a parent and child viewmodel in the following relationship ParentViewModel class ParentViewModel { private double _parentAmount; public double parentAmount { get { return _parentAmount; } set { if (value != _parentAmount) { _parentAmount = value; NotifyPropertyChanged("parentAmount"); } } } private ObservableCollection<ChildViewModel> _children; public ObservableCollection<ChildViewModel> children { get { return _children; } set { if (value != _children)

Programmatically sort folders on Windows 8

和自甴很熟 提交于 2020-01-03 15:37:10
问题 Windows 8 does not seem to persist sort orders on individual folders. I'm guessing when explorer.exe terminates (like when rebooting) these preferences get discarded? Beats me, all I know is after a time (like a few days) those preferences get totally lost. Is there a way to duplicate programmatically sorting folders in Windows Explorer (opting one of the 'Sort by' options in the context menu)? Such that, say I have a folder opened in the Windows UI. Say the folder is currently set to sort by

Debug is not a recognized command (express)

≡放荡痞女 提交于 2020-01-03 08:14:12
问题 Im running express on windows 8. I ran the command >express app after i ran the command to install dependencies >cd app && npm install after i attempted to run the app using the given command >DEBUG=my-application ./bin/www but I received the error message 'Debug' is not recognized as an internal or external command, operable program or batch file. any ideas on how to fix this? Some background info, I successfully installed node.js from their website. I attempted to install express usings the

VS2013 IntelliSense overlapping ReSharper's one

筅森魡賤 提交于 2020-01-03 04:19:38
问题 After installing ReSharper I've noticed a problem with the IntelliSense; In the image it is clearly visible that the IntelliSense of Visual Studio is displayed over the one of ReSharper (which by the way has the focus, so using the arrow keys will move the highlight section of the completion list below). I've tried to do several things without any result (always with VS restart): Switch from ReSharper IntelliSense to VS (back and forth) Limit ReSharper IntelliSense to some selected languages

Windows 8 - Customizing ListView swipe offset?

自古美人都是妖i 提交于 2020-01-03 03:20:09
问题 I am very new to Windows 8 so please bear with me. I am styling a ListView in xaml for a Windows 8.1 Store app. I would like to customize the offset distance that a ListViewItem can be swiped horizontally to select it. I have looked through the ListViewItem and ListView styles in the generic.xaml file and edited them in my App.xaml file... but I haven't been able to find any settings that made the correct change. In the ListViewItem style with the key ListViewItemExpanded, I tried changing

Change GridView GroupStyle in VisualState

老子叫甜甜 提交于 2020-01-03 02:19:44
问题 In my Windows 8.1 WinRT/XAML app I have a grouped GridView with a corresponding GroupStyle : <GridView ItemsSource="{Binding Source={StaticResource groupedViewSource}}"> ... <GridView.GroupStyle> <GroupStyle> <GroupStyle.HeaderTemplate> <DataTemplate> ... </DataTemplate> </GroupStyle.HeaderTemplate> <GroupStyle.Panel> <ItemsPanelTemplate> <VariableSizedWrapGrid Style="{StaticResource NormalWrapGridStyle}" /> </ItemsPanelTemplate> </GroupStyle.Panel> </GroupStyle> </GridView.GroupStyle> <

Linking only vertical offset of two scrollviewers

独自空忆成欢 提交于 2020-01-03 01:20:06
问题 I have a scrollview with a big grid containing two smaller grids. the grids are supposed to scroll together vertically, but only the right grid should scroll horizontally. This is because the information in the left grid is needed as a reference while the right grid can contain 100+ columns. I have already tried putting the grids in separate scrollviews and linking them with an eventhandler. But I didn't find any code to do this in a Windows 8.1 application. Is there any way to do this for

Create a theme in Windows 8.1

你离开我真会死。 提交于 2020-01-02 19:55:31
问题 In Windows 8, you were able to create your own themes for your application (here's a tutorial). In Windows 8.1 Applications, themes are handled differently: you can change them at run-time and set a theme for a specific control in your XAML (if you don't want to apply the theme to the whole Application). For instance: <Grid x:Name="MainGrid" RequestedTheme="Dark"> However, I could not find a way to create my own themes. The property RequestedTheme takes an enumeration (its type is