windows-10

get all the process in my computer in uwp

岁酱吖の 提交于 2019-12-13 03:13:09
问题 I have a problem when I having my UWP development.In my application, I need to get all the apps details(including its displayname or the ExecutableFileName), which is running in the computer. My first solution is to to use the System.Process class, and I do it like private void Mybutton_Click(object sender, RoutedEventArgs e) { var apps = Process.GetProcesses(); ... } But it is not availbale in the UWP and throws a exception when I try to do it. Secondly,I have tried the System.AppDiagnostics

Correct way to create shortcuts in user start menu CSIDL_STARTMENU

試著忘記壹切 提交于 2019-12-13 02:59:18
问题 I'm making a non-elevated software installer for Windows 10. The installer saves the application into C:\Users\USER_NAME\AppData\Local\MY_APP_NAME folder. It also creates a shortcut in C:\Users\USER_NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\ folder. The shortcut correctly appears in Start Menu, but it never appears in search results. I tried rebuilding the search index and ran Start Menu troubleshooter with no luck. I'm from Poland and thus Cortana is disabled on my machine.

need to select an item based on the name in an array using powershell

烈酒焚心 提交于 2019-12-13 02:35:54
问题 Not even sure if i'm wording this right but here goes nothing: I have a script to toggle through audio devices. It will check the current set device based on Index number, and switch to the other one accordingly. My problem is, if i introduce a new device, the index numbers change. So i need to select the device based on name not index, how do I do that? $audio = Get-DefaultAudioDevice $Audio.Index if ($audio.Index -eq '0') { set-defaultaudiodevice 2 } Else { set-defaultaudiodevice 0 } the

Get RightTapped GridViewItem

岁酱吖の 提交于 2019-12-13 02:27:26
问题 I have a GridView where I'm storing the songs the user adds to a collection: <GridView x:Name="MusicGridView" Margin="10" IsItemClickEnabled="True" ItemClick="Play_Song" Grid.Row="0" ItemsSource="{Binding Songs, ElementName=thisPage, Mode=OneWay}" SelectionMode="None"> <GridView.ItemTemplate> <DataTemplate> <Grid Height="100" Width="100" RightTapped="Song_RightTapped"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Rectangle Grid.Row=

Unusual case with IE and flip animation

夙愿已清 提交于 2019-12-13 02:09:42
问题 I have an unusual case where my flip animation does not work in IE (go figure) - however, it does work across all other browsers (Chrome, FF, Opera, Edge, and Safari)... I'm not entirely sure what the root of the cause is here - I've searched a ton but nothing helped...A lot of people said to use the backface-visibility: hidden; with the -ms- prefix but that too did not work. I even tried using a <meta> tag on my html file such as: <meta http-equiv="X-UA-Compatible" content="IE=9; IE=10; IE

Location tracking when app is in background in Windows 10?

江枫思渺然 提交于 2019-12-13 02:08:08
问题 I am new to Windows 10 and currently working on Location based apps. My requirement is to track user locations for a particular time interval and send data to the server every 10 minutes. Can someone suggest whether this is possible in Windows 10 or not? I am not aware of this. Update I also want to do the above in when the app is in the background also.I tried below code protected override async void OnNavigatedTo(NavigationEventArgs e) { if (e.NavigationMode == NavigationMode.New) { var

Install RHC Client Tools (Openshift) on Windows 10

点点圈 提交于 2019-12-13 02:02:17
问题 Maybe I am missing something, but when trying to install RHC client tools under Windows 10 OS (brandly installed), I got a lot of errors (I never had on Windows 7 or Mac). To anyone who is facing the same issues, it only worked with the following configuration: Git: 1.9.5.msysgit.0 Ruby: 1.9.3p551 (2014-11-13) i386-mingw32 Both installers are for 32bit processor (installed on a Surface 3 64-bit with Windows 10). 64bit versions didn't work. No need to update net-ssh -v2.9.3.beta1package (as

Access denied to Nginx folder with folders and files not being created

拜拜、爱过 提交于 2019-12-13 01:38:08
问题 I use Nginx at my company and am new at it. I'm just wondering if anyone had issues where the Nginx did NOT have enough privileges on Windows 10 NOT Ubuntu, but Windows 10 , to create files and directories within the Nginx folder. In my Nginx.conf , the user " nobody " and " pid " line are commented out so I know that Nginx is NOT using a user that does NOT belong to the Admin group. Even the " root " user, I did not find it in my conf file. Sometimes I can't even manually open up that Nginx

start and close instance of explorer.exe

◇◆丶佛笑我妖孽 提交于 2019-12-13 01:10:02
问题 I have a strange behaviour when I try to start explorer.exe from c# like this: ProcessStartInfo info = new ProcessStartInfo("explorer.exe", "E:"); info.WindowStyle = ProcessWindowStyle.Hidden; Process process = new Process(); process.StartInfo = info; process.Start(); Thread.Sleep(2000); bool res = process.CloseMainWindow(); // InvalidOperationException -> already exited process.Close(); process.WaitForExit(5000); The problem is: the exception seems correct, because at this point HasExited

XamlParseException when using UserControl from class library dll

我们两清 提交于 2019-12-13 01:04:01
问题 I have created a library which has a Popup UserControl similar to the one here. When I create a fresh Universal Windows App and create the same UserControl inside an app and open the popup, it opens. But if I create a Class Library and create the same UserControl inside it and try to use it (by opening the popup) inside an app, I get a XamlParseException. It is as follows - Windows.UI.Xaml.Markup.XamlParseException occurred HResult=-2144665590 Message=XAML parsing failed. Source=Windows