updated links and xaml

This commit is contained in:
Olai Vike Bøe 2022-11-05 13:23:34 +01:00
parent 3cff5c9d7c
commit 0036b152e9
2 changed files with 15 additions and 4 deletions

View file

@ -52,7 +52,7 @@ powershell.exe -WindowStyle Hidden -file > $null
#$inputXML="C:\Users\olai.boe\Documents\GitHub\PSXAML\MainWindow.xaml"
$inputXML = (new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/OlaYZen/PSXAML/main/MainWindow.xaml") #uncomment for Production
$inputXML = (new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/OlaYZen/Enhance-Windows/Newest/MainWindow.xaml") #uncomment for Production
$inputXML = $inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -replace '^<Win.*', '<Window'
[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')
@ -408,6 +408,17 @@ else
}
}
function CompactView(){
if ($WPFCompactView.IsChecked)
{
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "UseCompactMode" -Value 1
}
else
{
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "UseCompactMode" -Value 0
}
}
$WPFUnpin_Search.Add_Checked{RemSearchwin10}
$WPFUnpin_Search.Add_UnChecked{RemSearchwin10}
@ -620,7 +631,7 @@ else {
$WPFCompactView.Add_Checked({CompactView})
$WPFCompactView.Add_UnChecked({HiddenFiles})
$WPFCompactView.Add_UnChecked({CompactView})
$value30 = Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "UseCompactMode"
if($value30.UseCompactMode -eq 1)
{

View file

@ -20,7 +20,7 @@
<CheckBox x:Name="Unpin_All_Above" Content="Unpin All Above" HorizontalAlignment="Left" Margin="10,185,0,0" VerticalAlignment="Top" IsChecked="False"/>
<Label x:Name="ExplainingLabel" Content="Windows Explorer might open after checking the boxes. Just close it" HorizontalAlignment="Left" Margin="10,469,0,0" VerticalAlignment="Top"/>
<Label x:Name="label_22h2" Content="Start Menu 22H2" HorizontalAlignment="Left" Margin="10,185,0,0" VerticalAlignment="Top" FontSize="30" FontWeight="Bold"/>
<Grid x:Name="GridGroupBox" VerticalAlignment="Top" Height="87" M|n="10,240,207,0">
<Grid x:Name="GridGroupBox" VerticalAlignment="Top" Height="87" Margin="10,240,207,0">
<RadioButton x:Name="RadioButton1" Content="Default" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top"/>
<RadioButton x:Name="RadioButton2" Content="More Pins" HorizontalAlignment="Left" Margin="10,30,0,0" VerticalAlignment="Top"/>
<RadioButton x:Name="RadioButton3" Content="More Recommendations" HorizontalAlignment="Left" Margin="10,50,0,0" VerticalAlignment="Top"/>