Skip to content

Portable Tool for an Ideal Windows Setup

-consent to delete EdgeWebView

Greedekse9439b723737
diff --git a/.Source/GTweak/Languages/en/Localize.xaml b/.Source/GTweak/Languages/en/Localize.xaml
index 1deaa8ed..bcc597be 100644
--- a/.Source/GTweak/Languages/en/Localize.xaml
+++ b/.Source/GTweak/Languages/en/Localize.xaml
@@ -279,6 +279,12 @@
<v:String x:Key="WebMediaExtensions_applications">Web Media Extensions</v:String>
<v:String x:Key="OneConnect_applications">Mobile Plans</v:String>
<v:String x:Key="Edge_applications">Microsoft Edge</v:String>
+
+ <v:String x:Key="title_over_applications">Uninstallation confirmation</v:String>
+ <v:String x:Key="text_over_applications">You are about to uninstall the Microsoft Edge browser. In addition, the EdgeWebView component, which is responsible for displaying web pages in certain applications, such as the Microsoft Office suite and others, will also be removed. Before proceeding, please ensure that you do not require this component.</v:String>
+ <v:String x:Key="question_over_applications">Would you like to continue deleting along with EdgeWebView?</v:String>
+ <v:String x:Key="btn_сancel_applications">Cancel</v:String>
+ <v:String x:Key="btn_delete_applications">Delete</v:String>
<!--#endregion-->
<!--#region Services Page -->
diff --git a/.Source/GTweak/Languages/ko/Localize.xaml b/.Source/GTweak/Languages/ko/Localize.xaml
index b5021048..bcd6f28c 100644
--- a/.Source/GTweak/Languages/ko/Localize.xaml
+++ b/.Source/GTweak/Languages/ko/Localize.xaml
@@ -279,6 +279,12 @@
<v:String x:Key="WebMediaExtensions_applications">Web Media Extensions</v:String>
<v:String x:Key="OneConnect_applications">Mobile Plans</v:String>
<v:String x:Key="Edge_applications">Microsoft Edge</v:String>
+
+ <v:String x:Key="title_over_applications">Uninstallation confirmation</v:String>
+ <v:String x:Key="text_over_applications">You are about to uninstall the Microsoft Edge browser. In addition, the EdgeWebView component, which is responsible for displaying web pages in certain applications, such as the Microsoft Office suite and others, will also be removed. Before proceeding, please ensure that you do not require this component.</v:String>
+ <v:String x:Key="question_over_applications">Would you like to continue deleting along with EdgeWebView?</v:String>
+ <v:String x:Key="btn_сancel_applications">Cancel</v:String>
+ <v:String x:Key="btn_delete_applications">Delete</v:String>
<!--#endregion-->
<!--#region Services Page -->
diff --git a/.Source/GTweak/Languages/ru/Localize.xaml b/.Source/GTweak/Languages/ru/Localize.xaml
index e8aeed39..d977208e 100644
--- a/.Source/GTweak/Languages/ru/Localize.xaml
+++ b/.Source/GTweak/Languages/ru/Localize.xaml
@@ -279,6 +279,12 @@
<v:String x:Key="WebMediaExtensions_applications">Расширения для интернет-мультимедиа</v:String>
<v:String x:Key="OneConnect_applications">Тарифные планы</v:String>
<v:String x:Key="Edge_applications">Microsoft Edge</v:String>
+
+ <v:String x:Key="title_over_applications">Подтверждение удаления</v:String>
+ <v:String x:Key="text_over_applications">Вы собираетесь удалить браузер Microsoft Edge. При этом также будет удален компонент EdgeWebView, который отвечает за отображение веб-страниц в некоторых программах, таких как пакет Microsoft Office и других. Прежде чем продолжить, убедитесь, что этот компонент вам не требуется.</v:String>
+ <v:String x:Key="question_over_applications">Желаете продолжить удаление вместе с EdgeWebView?</v:String>
+ <v:String x:Key="btn_сancel_applications">Отмена</v:String>
+ <v:String x:Key="btn_delete_applications">Удалить</v:String>
<!--#endregion-->
<!--#region Services Page -->
diff --git a/.Source/GTweak/Languages/uk/Localize.xaml b/.Source/GTweak/Languages/uk/Localize.xaml
index 3ac65dad..29e75eee 100644
--- a/.Source/GTweak/Languages/uk/Localize.xaml
+++ b/.Source/GTweak/Languages/uk/Localize.xaml
@@ -279,6 +279,12 @@
<v:String x:Key="WebMediaExtensions_applications">Розширення для інтернету-мультимедіа</v:String>
<v:String x:Key="OneConnect_applications">Тарифні плани</v:String>
<v:String x:Key="Edge_applications">Microsoft Edge</v:String>
+
+ <v:String x:Key="title_over_applications">Підтвердження видалення</v:String>
+ <v:String x:Key="text_over_applications">Ви збираєтеся видалити браузер Microsoft Edge. При цьому також буде видалено компонент EdgeWebView, який відповідає за відображення веб-сторінок у певних програмах, таких як пакет Microsoft Office та інші. Перш ніж продовжити, переконайтеся, що цей компонент вам не потрібен.</v:String>
+ <v:String x:Key="question_over_applications">Чи хотіли б ви продовжити видалення разом з EdgeWebView?</v:String>
+ <v:String x:Key="btn_сancel_applications">Скасувати</v:String>
+ <v:String x:Key="btn_delete_applications">Видалити</v:String>
<!--#endregion-->
<!--#region Services Page -->
diff --git a/.Source/GTweak/Utilities/Helpers/CommandExecutor.cs b/.Source/GTweak/Utilities/Helpers/CommandExecutor.cs
index 24dc8a06..4bf2a0b5 100644
--- a/.Source/GTweak/Utilities/Helpers/CommandExecutor.cs
+++ b/.Source/GTweak/Utilities/Helpers/CommandExecutor.cs
@@ -57,7 +57,7 @@ namespace GTweak.Utilities.Helpers
if (process.HasExited)
return Task.CompletedTask;
- var tcs = new TaskCompletionSource<object>();
+ TaskCompletionSource<object> tcs = new TaskCompletionSource<object>();
process.EnableRaisingEvents = true;
process.Exited += (sender, args) => tcs.TrySetResult(null);
return tcs.Task;
diff --git a/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs b/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs
index 5cc154ef..6ef8123a 100644
--- a/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs
+++ b/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs
@@ -81,7 +81,7 @@ namespace GTweak.Utilities.Tweaks
internal async void ViewInstalledPackages() => InstalledPackages = await CommandExecutor.GetCommandOutput("Get-AppxPackage | Select-Object -ExpandProperty Name");
- internal static Task DeletingPackage(string packageName)
+ internal static Task DeletingPackage(string packageName, bool removeWebViewFlag = false)
{
if (packageName == "OneDrive")
return DeletedOneDrive();
@@ -220,11 +220,15 @@ namespace GTweak.Utilities.Tweaks
{
try
{
- CommandExecutor.RunCommand("taskkill /F /IM msedge.exe /IM edgeupdate.exe /IM msedgewebview2.exe /IM MicrosoftEdgeUpdate.exe /IM msedgewebviewhost.exe /IM msedgeuserbroker.exe /T");
+
+ CommandExecutor.RunCommand("taskkill /f /im msedge.exe /im edgeupdate.exe /im msedgewebview2.exe /im MicrosoftEdgeUpdate.exe /im msedgewebviewhost.exe /im msedgeuserbroker.exe /t");
string setupPath = Path.Combine(Directory.GetDirectories(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "Microsoft", package.AppName, "Application")).FirstOrDefault(), "Installer", "setup.exe");
if (File.Exists(setupPath))
{
+ if (!removeWebViewFlag && package.AppName == "EdgeWebView")
+ continue;
+
Process.Start(new ProcessStartInfo
{
FileName = setupPath,
@@ -256,13 +260,22 @@ namespace GTweak.Utilities.Tweaks
RegistryHelp.DeleteFolderTree(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\Edge", true);
RegistryHelp.DeleteFolderTree(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge", true);
RegistryHelp.DeleteFolderTree(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update", true);
- RegistryHelp.DeleteFolderTree(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView", true);
RegistryHelp.DeleteFolderTree(Registry.LocalMachine, @"SOFTWARE\Classes\MSEdgeHTM", true);
RegistryHelp.DeleteFolderTree(Registry.LocalMachine, @"SOFTWARE\Clients\StartMenuInternet\Microsoft Edge", true);
RegistryHelp.DeleteFolderTree(Registry.ClassesRoot, @"AppID\MicrosoftEdgeUpdate.exe", true);
- foreach (string folder in new string[] { "Edge", "EdgeCore", "EdgeUpdate", "EdgeWebView", "Temp" })
+ if (removeWebViewFlag)
{
+ RegistryHelp.DeleteFolderTree(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\EdgeWebView", true);
+ RegistryHelp.DeleteFolderTree(Registry.LocalMachine, @"SOFTWARE\Microsoft\EdgeWebView", true);
+ RegistryHelp.DeleteFolderTree(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView", true);
+ }
+
+ foreach (string folder in new string[] { "Edge", "EdgeCore", "EdgeUpdate", "Temp", "EdgeWebView" })
+ {
+ if (!removeWebViewFlag && folder == "EdgeWebView")
+ continue;
+
string path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "Microsoft", folder);
TakingOwnership.GrantAdministratorsAccess(path, TakingOwnership.SE_OBJECT_TYPE.SE_FILE_OBJECT);
await Task.Delay(1000);
@@ -276,8 +289,11 @@ namespace GTweak.Utilities.Tweaks
{
using RegistryKey subKeyEntry = key.OpenSubKey(subKey);
string path = subKeyEntry?.GetValue("Path") as string;
- if (!string.IsNullOrEmpty(path) && path.Contains("Edge"))
+ if (!string.IsNullOrEmpty(path) && path.Equals("Edge"))
{
+ if (!removeWebViewFlag && path.Contains("WebView"))
+ continue;
+
path = path.Replace(@"\AppxManifest.xml", "").Trim();
TakingOwnership.GrantAdministratorsAccess(path, TakingOwnership.SE_OBJECT_TYPE.SE_FILE_OBJECT);
TrustedInstaller.CreateProcessAsTrustedInstaller(SettingsRepository.PID, $@"cmd.exe /c rmdir /s /q ""{path}""");
diff --git a/.Source/GTweak/View/PakagesView.xaml b/.Source/GTweak/View/PakagesView.xaml
index d39daf6d..abda8321 100644
--- a/.Source/GTweak/View/PakagesView.xaml
+++ b/.Source/GTweak/View/PakagesView.xaml
@@ -8,400 +8,416 @@
mc:Ignorable="d" d:DesignHeight="550" d:DesignWidth="1100"
Style="{StaticResource LaunchPage}" Loaded="Page_Loaded">
<Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="139*"/>
- <RowDefinition Height="45*"/>
- </Grid.RowDefinitions>
+ <Grid x:Name="Overlay" Panel.ZIndex="1" Visibility="Collapsed">
+ <Grid Background="{StaticResource Color_Background_Dark}" Opacity="0.9"/>
+ <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="auto" Width="auto" Margin="0,0,0,100">
+ <StackPanel Orientation="Vertical">
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+ <Image Width="25">
+ <Image.Style>
+ <Style TargetType="Image">
+ <Setter Property="Source" Value="{StaticResource DI_Warning}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <TextBlock Text="{DynamicResource title_over_applications}" Foreground="{StaticResource Color_Highlighted}" Height="auto" Width="auto" FontFamily="{StaticResource Jura}" FontSize="20px" HorizontalAlignment="Left" TextAlignment="Center" Margin="10,0,0,0"/>
+ </StackPanel>
+ <TextBlock Margin="0,10,0,0" Text="{DynamicResource text_over_applications}" Foreground="{StaticResource Color_TetBlock_Inactivity}" Height="auto" Width="583" FontFamily="{StaticResource Jura}" FontSize="16px" TextAlignment="Justify" FontStretch="Medium" TextWrapping="Wrap"/>
- <Grid Grid.Row="0">
+ <TextBlock Margin="0,20,0,0" Text="{DynamicResource question_over_applications}" Foreground="{StaticResource Color_Accent}" Height="auto" Width="512" FontFamily="{StaticResource Jura}" FontSize="16px" TextAlignment="Center" FontStretch="Medium" TextWrapping="Wrap"/>
+ <Grid Margin="0,20,0,0" HorizontalAlignment="Center" Width="345">
+ <Button x:Name="BtnDelete" Content="{DynamicResource btn_delete_applications}" Style="{StaticResource BtnDefaultM}" FontSize="15px" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" Height="30" Cursor="Hand"/>
+ <Button x:Name="BtnCancel" Content="{DynamicResource btn_сancel_applications}" Style="{StaticResource BtnDefault}" FontSize="15px" HorizontalAlignment="Right" VerticalAlignment="Top" Width="120" Height="30" Cursor="Hand"/>
+ </Grid>
+ </StackPanel>
+ </Grid>
+ </Grid>
+
+ <Grid>
+ <Grid.RowDefinitions>
+ <RowDefinition Height="139*"/>
+ <RowDefinition Height="45*"/>
+ </Grid.RowDefinitions>
+
+ <Grid Grid.Row="0">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top">
- <TextBlock Width="Auto" Height="auto" FontFamily="{StaticResource Jura}" FontSize="13pt" Foreground="{StaticResource Color_TetBlock_Inactivity}" HorizontalAlignment="Center" VerticalAlignment="Top" KeyboardNavigation.IsTabStop="False" Margin="0,10,0,0">
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top">
+ <TextBlock Width="Auto" Height="auto" FontFamily="{StaticResource Jura}" FontSize="13pt" Foreground="{StaticResource Color_TetBlock_Inactivity}" HorizontalAlignment="Center" VerticalAlignment="Top" KeyboardNavigation.IsTabStop="False" Margin="0,10,0,0">
<Run Text="{DynamicResource text0_applications}"/>
<Run Text="{DynamicResource text1_applications}" Foreground="{StaticResource Color_Accent}"/>
<Run Text="{DynamicResource text2_applications}"/>
<Run Text="{DynamicResource text3_applications}" Foreground="{StaticResource Color_Inactive}"/>
<Run Text="{DynamicResource text4_applications}"/>
- </TextBlock>
- </StackPanel>
-
- <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="1100" Height="Auto" Margin="0,-10,0,0">
- <StackPanel Orientation="Vertical" Margin="8,95,968,0" VerticalAlignment="Top">
- <Image x:Name="OneConnect" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_OneConnect}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="LinkedIn" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_LinkedIn}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="DevHome" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_DevHome}"/>
- </Style>
- </Image.Style>
- </Image>
- </StackPanel>
-
-
- <StackPanel Orientation="Vertical" Margin="88,50,888,0" VerticalAlignment="Top">
- <Image x:Name="MicrosoftStore" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_MicrosoftStore}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="Xbox" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Xbox}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="OneNote" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_OneNote}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="Outlook" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Outlook}"/>
- </Style>
- </Image.Style>
- </Image>
+ </TextBlock>
</StackPanel>
-
- <StackPanel Orientation="Vertical" Margin="168,95,808,0" VerticalAlignment="Top">
- <Image x:Name="MicrosoftOfficeHub" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_MicrosoftOfficeHub}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="MicrosoftSolitaireCollection" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_MicrosoftSolitaireCollection}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="MixedReality" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_MixedReality}"/>
- </Style>
- </Image.Style>
- </Image>
- </StackPanel>
+ <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="1100" Height="Auto" Margin="0,-10,0,0">
+ <StackPanel Orientation="Vertical" Margin="8,95,968,0" VerticalAlignment="Top">
+ <Image x:Name="OneConnect" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_OneConnect}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="LinkedIn" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_LinkedIn}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="DevHome" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_DevHome}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ </StackPanel>
-
- <StackPanel Orientation="Vertical" Margin="248,50,728,0" VerticalAlignment="Top">
- <Image x:Name="BingWeather" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_BingWeather}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="Microsoft3D" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Microsoft3D}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="SkypeApp" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_SkypeApp}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="BingSports" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_BingSports}"/>
- </Style>
- </Image.Style>
- </Image>
- </StackPanel>
+ <StackPanel Orientation="Vertical" Margin="88,50,888,0" VerticalAlignment="Top">
+ <Image x:Name="MicrosoftStore" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_MicrosoftStore}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="Xbox" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Xbox}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="OneNote" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_OneNote}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="Outlook" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Outlook}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ </StackPanel>
+ <StackPanel Orientation="Vertical" Margin="168,95,808,0" VerticalAlignment="Top">
+ <Image x:Name="MicrosoftOfficeHub" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_MicrosoftOfficeHub}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="MicrosoftSolitaireCollection" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_MicrosoftSolitaireCollection}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="MixedReality" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_MixedReality}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ </StackPanel>
- <StackPanel Orientation="Vertical" Margin="328,95,648,0" VerticalAlignment="Top">
- <Image x:Name="OneDrive" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_OneDrive}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="Cortana" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Cortana}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="MicrosoftTeams" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_MicrosoftTeams}"/>
- </Style>
- </Image.Style>
- </Image>
- </StackPanel>
+ <StackPanel Orientation="Vertical" Margin="248,50,728,0" VerticalAlignment="Top">
+ <Image x:Name="BingWeather" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_BingWeather}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="Microsoft3D" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Microsoft3D}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="SkypeApp" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_SkypeApp}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="BingSports" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_BingSports}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ </StackPanel>
-
- <StackPanel Orientation="Vertical" Margin="408,50,568,0" VerticalAlignment="Top">
- <Image x:Name="Music" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Music}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="Video" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Video}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="SoundRecorder" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_SoundRecorder}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="BingFinance" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_BingFinance}"/>
- </Style>
- </Image.Style>
- </Image>
- </StackPanel>
+ <StackPanel Orientation="Vertical" Margin="328,95,648,0" VerticalAlignment="Top">
+ <Image x:Name="OneDrive" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_OneDrive}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="Cortana" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Cortana}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="MicrosoftTeams" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_MicrosoftTeams}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ </StackPanel>
-
- <StackPanel Orientation="Vertical" Margin="488,95,488,0" VerticalAlignment="Top">
- <Image x:Name="FeedbackHub" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_FeedbackHub}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="Mail" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Mail}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="Widgets" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Widgets}"/>
- </Style>
- </Image.Style>
- </Image>
- </StackPanel>
+ <StackPanel Orientation="Vertical" Margin="408,50,568,0" VerticalAlignment="Top">
+ <Image x:Name="Music" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Music}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="Video" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Video}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="SoundRecorder" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_SoundRecorder}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="BingFinance" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_BingFinance}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ </StackPanel>
-
- <StackPanel Orientation="Vertical" Margin="568,50,408,0" VerticalAlignment="Top">
- <Image x:Name="Photos" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Photos}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="ScreenSketch" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_ScreenSketch}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="ClipChamp" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_ClipChamp}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="MicrosoftFamily" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_MicrosoftFamily}"/>
- </Style>
- </Image.Style>
- </Image>
- </StackPanel>
+ <StackPanel Orientation="Vertical" Margin="488,95,488,0" VerticalAlignment="Top">
+ <Image x:Name="FeedbackHub" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_FeedbackHub}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="Mail" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Mail}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="Widgets" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Widgets}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ </StackPanel>
-
- <StackPanel Orientation="Vertical" Margin="648,95,328,0" VerticalAlignment="Top">
- <Image x:Name="GetStarted" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_GetStarted}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="GetHelp" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_GetHelp}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="MicrosoftStickyNotes" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_MicrosoftStickyNotes}"/>
- </Style>
- </Image.Style>
- </Image>
- </StackPanel>
+ <StackPanel Orientation="Vertical" Margin="568,50,408,0" VerticalAlignment="Top">
+ <Image x:Name="Photos" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Photos}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="ScreenSketch" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_ScreenSketch}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="ClipChamp" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_ClipChamp}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="MicrosoftFamily" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_MicrosoftFamily}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ </StackPanel>
-
- <StackPanel Orientation="Vertical" Margin="728,50,248,0" VerticalAlignment="Top">
- <Image x:Name="Maps" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Maps}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="Camera" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Camera}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="Paint3D" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Paint3D}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="BingSearch" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_BingSearch}"/>
- </Style>
- </Image.Style>
- </Image>
- </StackPanel>
+ <StackPanel Orientation="Vertical" Margin="648,95,328,0" VerticalAlignment="Top">
+ <Image x:Name="GetStarted" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_GetStarted}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="GetHelp" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_GetHelp}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="MicrosoftStickyNotes" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_MicrosoftStickyNotes}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ </StackPanel>
-
- <StackPanel Orientation="Vertical" Margin="808,95,168,0" VerticalAlignment="Top">
- <Image x:Name="PowerAutomateDesktop" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_PowerAutomateDesktop}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="People" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_People}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="BingNews" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_BingNews}"/>
- </Style>
- </Image.Style>
- </Image>
- </StackPanel>
+ <StackPanel Orientation="Vertical" Margin="728,50,248,0" VerticalAlignment="Top">
+ <Image x:Name="Maps" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Maps}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="Camera" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Camera}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="Paint3D" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Paint3D}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="BingSearch" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_BingSearch}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ </StackPanel>
-
- <StackPanel Orientation="Vertical" Margin="888,50,88,0" VerticalAlignment="Top">
- <Image x:Name="Todos" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Todos}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="Alarms" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Alarms}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="Phone" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Phone}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="QuickAssist" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_QuickAssist}"/>
- </Style>
- </Image.Style>
- </Image>
- </StackPanel>
+ <StackPanel Orientation="Vertical" Margin="808,95,168,0" VerticalAlignment="Top">
+ <Image x:Name="PowerAutomateDesktop" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_PowerAutomateDesktop}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="People" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_People}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="BingNews" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_BingNews}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ </StackPanel>
- <StackPanel Orientation="Vertical" Margin="968,95,8,0" VerticalAlignment="Top">
- <Image x:Name="WindowsTerminal" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_WindowsTerminal}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="WebMediaExtensions" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_WebMediaExtensions}"/>
- </Style>
- </Image.Style>
- </Image>
- <Image x:Name="Edge" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
- <Image.Style>
- <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
- <Setter Property="Source" Value="{StaticResource A_DI_Edge}"/>
- </Style>
- </Image.Style>
- </Image>
- </StackPanel>
- </Grid>
+ <StackPanel Orientation="Vertical" Margin="888,50,88,0" VerticalAlignment="Top">
+ <Image x:Name="Todos" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Todos}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="Alarms" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Alarms}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="Phone" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Phone}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="QuickAssist" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_QuickAssist}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ </StackPanel>
- </Grid>
+ <StackPanel Orientation="Vertical" Margin="968,95,8,0" VerticalAlignment="Top">
+ <Image x:Name="WindowsTerminal" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_WindowsTerminal}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="WebMediaExtensions" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_WebMediaExtensions}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ <Image x:Name="Edge" PreviewMouseDown="ClickApp_PreviewMouseDown" MouseEnter="Apps_MouseEnter" MouseLeave="Apps_MouseLeave">
+ <Image.Style>
+ <Style TargetType="{x:Type Image}" BasedOn="{StaticResource Apps}">
+ <Setter Property="Source" Value="{StaticResource A_DI_Edge}"/>
+ </Style>
+ </Image.Style>
+ </Image>
+ </StackPanel>
+ </Grid>
- <Grid Grid.Row="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="40*"/>
- <RowDefinition Height="95*"/>
- </Grid.RowDefinitions>
+ </Grid>
<Grid Grid.Row="1">
- <uc:Comment x:Name="CommentApp" DefaultText="{DynamicResource defaultDescriptionApp}"/>
+ <Grid.RowDefinitions>
+ <RowDefinition Height="40*"/>
+ <RowDefinition Height="95*"/>
+ </Grid.RowDefinitions>
+
+ <Grid Grid.Row="1">
+ <uc:Comment x:Name="CommentApp" DefaultText="{DynamicResource defaultDescriptionApp}"/>
+ </Grid>
</Grid>
</Grid>
</Grid>
diff --git a/.Source/GTweak/View/PakagesView.xaml.cs b/.Source/GTweak/View/PakagesView.xaml.cs
index e5ee289b..a2e9c808 100644
--- a/.Source/GTweak/View/PakagesView.xaml.cs
+++ b/.Source/GTweak/View/PakagesView.xaml.cs
@@ -10,6 +10,7 @@ using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
+using System.Windows.Media.Animation;
using System.Windows.Threading;
namespace GTweak.View
@@ -18,6 +19,7 @@ namespace GTweak.View
{
private readonly DispatcherTimer timer;
private TimeSpan time = TimeSpan.FromSeconds(0);
+ private bool isWebViewRemoval = false;
public PakagesView()
{
@@ -62,8 +64,38 @@ namespace GTweak.View
{
case MouseButtonState.Pressed when Equals(packageImage.Source, FindResource("A_DI_" + packageName)):
{
+ if (packageName.Equals("Edge"))
+ {
+ Overlay.Visibility = Visibility.Visible;
+
+ OverlayAnimation(0, 1, 0.3);
+
+ TaskCompletionSource<bool> tcs = new TaskCompletionSource<bool>();
+
+ void DeleteHandler(object sender, RoutedEventArgs args)
+ {
+ tcs.TrySetResult(true);
+ BtnDelete.PreviewMouseLeftButtonUp -= DeleteHandler;
+ BtnCancel.PreviewMouseLeftButtonUp -= CancelHandler;
+ }
+
+ void CancelHandler(object sender, RoutedEventArgs args)
+ {
+ tcs.TrySetResult(false);
+ BtnDelete.PreviewMouseLeftButtonUp -= DeleteHandler;
+ BtnCancel.PreviewMouseLeftButtonUp -= CancelHandler;
+ }
+
+ BtnDelete.PreviewMouseLeftButtonUp += DeleteHandler;
+ BtnCancel.PreviewMouseLeftButtonUp += CancelHandler;
+
+ isWebViewRemoval = await tcs.Task;
+
+ OverlayAnimation(1, 0, 0.25, (s, e) => Overlay.Visibility = Visibility.Collapsed);
+ }
+
BackgroundQueue backgroundQueue = new BackgroundQueue();
- await backgroundQueue.QueueTask(async delegate
+ await backgroundQueue.QueueTask(async () =>
{
try
{
@@ -73,7 +105,7 @@ namespace GTweak.View
UpdateViewStatePakages();
});
- await UninstallingPakages.DeletingPackage(packageName);
+ await UninstallingPakages.DeletingPackage(packageName, isWebViewRemoval);
await Task.Delay(3000);
@@ -96,7 +128,7 @@ namespace GTweak.View
new ViewNotification().Show("", "info", "onedrive_notification");
BackgroundQueue backgroundQueue = new BackgroundQueue();
- await backgroundQueue.QueueTask(async delegate
+ await backgroundQueue.QueueTask(async () =>
{
try
{
@@ -182,5 +214,20 @@ namespace GTweak.View
OneConnect.Source = AvailabilityInstalledPackage("OneConnect", "Microsoft.OneConnect");
Edge.Source = AvailabilityInstalledPackage("Edge", "Microsoft.MicrosoftEdge.Stable");
}
+
+
+ private void OverlayAnimation(double from, double to, double duration, EventHandler onComplete = null)
+ {
+ DoubleAnimation doubleAnim = new DoubleAnimation
+ {
+ From = from,
+ To = to,
+ Duration = TimeSpan.FromSeconds(duration),
+ EasingFunction = new QuadraticEase()
+ };
+ if (onComplete != null) { doubleAnim.Completed += onComplete; }
+ Timeline.SetDesiredFrameRate(doubleAnim, 400);
+ Overlay.BeginAnimation(OpacityProperty, doubleAnim);
+ }
}
}