2026-05-08 21:19:52 +02:00
<Window xmlns= "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x= "http://schemas.microsoft.com/winfx/2006/xaml"
Title= "Restore Backup"
Width= "500"
SizeToContent= "Height"
MaxHeight= "560"
ResizeMode= "NoResize"
WindowStartupLocation= "CenterOwner"
WindowStyle= "None"
AllowsTransparency= "True"
Background= "Transparent"
Topmost= "False"
ShowInTaskbar= "False" >
<Window.Resources>
<Style x:Key= "RestoreOptionTileStyle" TargetType= "Button" >
2026-06-21 18:47:52 +02:00
<Setter Property= "Background" Value= "{DynamicResource SecondaryButtonBgColor}" />
<Setter Property= "Foreground" Value= "{DynamicResource AppFgColor}" />
2026-05-08 21:19:52 +02:00
<Setter Property= "BorderBrush" Value= "{DynamicResource ButtonBorderColor}" />
<Setter Property= "BorderThickness" Value= "1" />
<Setter Property= "Padding" Value= "12,10" />
<Setter Property= "FontSize" Value= "14" />
<Setter Property= "Cursor" Value= "Hand" />
<Setter Property= "Template" >
<Setter.Value>
<ControlTemplate TargetType= "Button" >
<Border Background= "{TemplateBinding Background}"
BorderBrush= "{TemplateBinding BorderBrush}"
BorderThickness= "{TemplateBinding BorderThickness}"
CornerRadius= "8"
Padding= "{TemplateBinding Padding}" >
<ContentPresenter HorizontalAlignment= "Left" VerticalAlignment= "Center" Margin= "0,0,0,1" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property= "IsEnabled" Value= "False" >
2026-06-21 18:47:52 +02:00
<Setter Property= "Background" Value= "{DynamicResource SecondaryButtonDisabledColor}" />
<Setter Property= "BorderBrush" Value= "{DynamicResource AppBorderColor}" />
<Setter Property= "Foreground" Value= "{DynamicResource SecondaryButtonTextDisabledColor}" />
2026-05-08 21:19:52 +02:00
</Trigger>
<Trigger Property= "IsMouseOver" Value= "True" >
2026-06-21 18:47:52 +02:00
<Setter Property= "Background" Value= "{DynamicResource SecondaryButtonHoverColor}" />
2026-05-08 21:19:52 +02:00
<Setter Property= "BorderBrush" Value= "{DynamicResource ButtonBorderColor}" />
</Trigger>
<Trigger Property= "IsPressed" Value= "True" >
2026-06-21 18:47:52 +02:00
<Setter Property= "Background" Value= "{DynamicResource SecondaryButtonPressedColor}" />
2026-05-08 21:19:52 +02:00
<Setter Property= "BorderBrush" Value= "{DynamicResource ButtonBorderColor}" />
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Border Style= "{DynamicResource ModalCardBorderStyle}" >
<Grid Margin= "0" >
<Grid.RowDefinitions>
<RowDefinition Height= "Auto" />
<RowDefinition Height= "*" />
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
</Grid.RowDefinitions>
<Grid Grid.Row= "0" x:Name= "TitleBar" Style= "{DynamicResource ModalTitleBarStyle}" >
<TextBlock x:Name= "TitleText"
Text= "Restore Backup"
Style= "{DynamicResource ModalTitleTextStyle}" />
</Grid>
<Button x:Name= "CloseBtn" Grid.Row= "0"
HorizontalAlignment= "Right" VerticalAlignment= "Top"
Width= "36" Height= "32"
BorderThickness= "0"
Cursor= "Hand"
ToolTip= "Close"
AutomationProperties.Name= "Close" >
<Button.Template>
<ControlTemplate TargetType= "Button" >
<Border Background= "{TemplateBinding Background}" BorderThickness= "0" CornerRadius= "0,8,0,0" >
<ContentPresenter HorizontalAlignment= "Center" VerticalAlignment= "Center" />
</Border>
</ControlTemplate>
</Button.Template>
<Button.Style>
<Style TargetType= "Button" >
<Setter Property= "Background" Value= "Transparent" />
2026-06-21 18:47:52 +02:00
<Setter Property= "Foreground" Value= "{DynamicResource AppFgColor}" />
2026-05-08 21:19:52 +02:00
<Style.Triggers>
<Trigger Property= "IsMouseOver" Value= "True" >
2026-06-21 18:47:52 +02:00
<Setter Property= "Background" Value= "{DynamicResource TitleBarCloseHoverColor}" />
2026-05-08 21:19:52 +02:00
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
2026-07-08 23:16:01 +02:00
<TextBlock Text= "" FontFamily= "{DynamicResource AppIconFontFamily}" FontSize= "10" />
2026-05-08 21:19:52 +02:00
</Button>
<ScrollViewer Grid.Row= "1" VerticalScrollBarVisibility= "Auto" Margin= "0" >
2026-06-21 18:47:52 +02:00
<Grid Margin= "20,4,20,16" >
2026-05-08 21:19:52 +02:00
<TabControl x:Name= "RestoreModeTabs"
SelectedIndex= "0"
Background= "Transparent"
BorderThickness= "0"
Padding= "0" >
<TabControl.ItemContainerStyle>
<Style TargetType= "TabItem" >
<Setter Property= "Visibility" Value= "Collapsed" />
<Setter Property= "Height" Value= "0" />
</Style>
</TabControl.ItemContainerStyle>
<TabItem x:Name= "SelectTypeTab" Header= "SelectType" >
<Grid x:Name= "SelectTypePanel" >
<Grid.RowDefinitions>
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row= "0"
TextWrapping= "Wrap"
FontSize= "14"
LineHeight= "20"
2026-06-21 18:47:52 +02:00
Foreground= "{DynamicResource AppFgColor}"
2026-05-08 21:19:52 +02:00
Text= "Choose what changes you want to restore." />
<Button x:Name= "ChooseRegistryBtn"
Grid.Row= "1"
Margin= "0,14,0,0"
Style= "{StaticResource RestoreOptionTileStyle}" >
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width= "Auto" />
<ColumnDefinition Width= "*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column= "0"
Text= ""
2026-07-08 23:16:01 +02:00
FontFamily= "{DynamicResource AppIconFontFamily}"
2026-05-08 21:19:52 +02:00
FontSize= "24"
VerticalAlignment= "Center"
Margin= "14,0,14,0" />
<StackPanel Grid.Column= "1"
VerticalAlignment= "Center"
Margin= "0,0,12,0" >
<TextBlock Text= "Restore Registry Backup"
FontSize= "16"
FontWeight= "SemiBold" />
<TextBlock Text= "Restore system registry configuration from a backup"
FontSize= "12"
Opacity= "0.75"
TextWrapping= "Wrap"
Margin= "0,2,0,0" />
</StackPanel>
</Grid>
</Button>
<Button x:Name= "ChooseStartMenuBtn"
Grid.Row= "2"
Margin= "0,10,0,0"
Style= "{StaticResource RestoreOptionTileStyle}" >
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width= "Auto" />
<ColumnDefinition Width= "*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column= "0"
Text= ""
2026-07-08 23:16:01 +02:00
FontFamily= "{DynamicResource AppIconFontFamily}"
2026-05-08 21:19:52 +02:00
FontSize= "24"
VerticalAlignment= "Center"
Margin= "14,0,14,0" />
<StackPanel Grid.Column= "1"
VerticalAlignment= "Center"
Margin= "0,0,12,0" >
<TextBlock Text= "Restore Start Menu Backup"
FontSize= "16"
FontWeight= "SemiBold" />
<TextBlock Text= "Restore the Start Menu pinned apps layout from a backup"
FontSize= "12"
Opacity= "0.75"
TextWrapping= "Wrap"
Margin= "0,2,0,0" />
</StackPanel>
</Grid>
</Button>
</Grid>
</TabItem>
<TabItem x:Name= "RegistryTab" Header= "Registry" >
<Grid x:Name= "RegistryPanel" >
<Grid.RowDefinitions>
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
</Grid.RowDefinitions>
<Grid x:Name= "IntroInfoPanel" Grid.Row= "0" >
<Grid.RowDefinitions>
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row= "0"
TextWrapping= "Wrap"
FontSize= "14"
LineHeight= "20"
2026-06-21 18:47:52 +02:00
Foreground= "{DynamicResource AppFgColor}"
Text= "This will restore any system registry changes made by Win11Debloat to the previous state. You can review the changes after selecting a backup file. Removed applications will need to be reinstalled manually." />
2026-05-08 21:19:52 +02:00
<TextBlock Grid.Row= "1"
Margin= "0,12,0,2"
TextWrapping= "Wrap"
FontSize= "13"
2026-06-21 18:47:52 +02:00
Foreground= "{DynamicResource AppFgColor}"
2026-05-08 21:19:52 +02:00
Opacity= "0.75"
Text= "Warning: Only use backup files generated by Win11Debloat." />
</Grid>
<Grid x:Name= "OverviewPanel" Grid.Row= "1" Margin= "0" Visibility= "Collapsed" >
<Grid.RowDefinitions>
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
2026-06-10 17:40:31 +02:00
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
2026-05-08 21:19:52 +02:00
</Grid.RowDefinitions>
<Grid Grid.Row= "0" Margin= "0,0,0,16" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width= "Auto" />
<ColumnDefinition Width= "*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row= "0" Grid.Column= "0" Text= "File:" Style= "{DynamicResource ModalInfoLabelTextStyle}" />
<TextBlock x:Name= "BackupFileText" Grid.Row= "0" Grid.Column= "1" Text= "Not selected" Style= "{DynamicResource ModalInfoValueTextStyle}" TextWrapping= "Wrap" Margin= "0,0,0,8" />
<TextBlock Grid.Row= "1" Grid.Column= "0" Text= "Created:" Style= "{DynamicResource ModalInfoLabelTextStyle}" />
<TextBlock x:Name= "BackupCreatedText" Grid.Row= "1" Grid.Column= "1" Text= "N/A" Style= "{DynamicResource ModalInfoValueTextStyle}" />
<TextBlock Grid.Row= "2" Grid.Column= "0" Text= "Target:" Style= "{DynamicResource ModalInfoLabelTextStyle}" Margin= "0,0,16,0" />
<TextBlock x:Name= "BackupTargetText" Grid.Row= "2" Grid.Column= "1" Text= "N/A" Style= "{DynamicResource ModalInfoValueTextStyle}" Margin= "0" />
</Grid>
2026-06-21 18:47:52 +02:00
<Border Grid.Row= "1" Height= "1" Background= "{DynamicResource AppBorderColor}" Margin= "0,0,0,12" />
2026-05-08 21:19:52 +02:00
<Grid x:Name= "OverviewFeaturesSection" Grid.Row= "2" >
<Grid.RowDefinitions>
<RowDefinition Height= "Auto" />
<RowDefinition Height= "*" />
</Grid.RowDefinitions>
<TextBlock Grid.Row= "0"
Text= "The following changes will be reverted:"
FontSize= "13"
2026-06-21 18:47:52 +02:00
Foreground= "{DynamicResource AppFgColor}"
2026-05-08 21:19:52 +02:00
FontWeight= "SemiBold"
Margin= "0,0,0,8" />
<ItemsControl x:Name= "FeaturesItemsControl" Grid.Row= "1" >
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation= "Vertical" IsItemsHost= "True" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
2026-06-21 18:47:52 +02:00
<TextBlock Text= "{Binding DisplayText}" FontSize= "12" Foreground= "{DynamicResource AppFgColor}" TextWrapping= "Wrap" Margin= "0,0,0,6" />
2026-05-08 21:19:52 +02:00
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>
<TextBlock x:Name= "OverviewSummaryText"
Grid.Row= "2"
FontSize= "13"
2026-06-21 18:47:52 +02:00
Foreground= "{DynamicResource AppFgColor}"
2026-05-08 21:19:52 +02:00
TextWrapping= "Wrap"
Visibility= "Collapsed"
Text= "This will restore the Start Menu pinned apps layout for the current user." />
2026-06-21 18:47:52 +02:00
<Border x:Name= "ReappliedSeparator" Grid.Row= "3" Height= "1" Background= "{DynamicResource AppBorderColor}" Margin= "0,12,0,12" Visibility= "Collapsed" />
2026-05-08 21:19:52 +02:00
2026-06-10 17:40:31 +02:00
<Grid x:Name= "ReappliedPanel" Grid.Row= "4" Visibility= "Collapsed" >
<Grid.RowDefinitions>
<RowDefinition Height= "Auto" />
<RowDefinition Height= "*" />
</Grid.RowDefinitions>
<TextBlock Grid.Row= "0"
Text= "The following changes will be re-applied:"
FontSize= "13"
2026-06-21 18:47:52 +02:00
Foreground= "{DynamicResource AppFgColor}"
2026-06-10 17:40:31 +02:00
FontWeight= "SemiBold"
Margin= "0,0,0,8" />
<ItemsControl x:Name= "ReappliedFeaturesItemsControl" Grid.Row= "1" >
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation= "Vertical" IsItemsHost= "True" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
2026-06-21 18:47:52 +02:00
<TextBlock Text= "{Binding DisplayText}" FontSize= "12" Foreground= "{DynamicResource AppFgColor}" TextWrapping= "Wrap" Margin= "0,0,0,6" />
2026-06-10 17:40:31 +02:00
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>
2026-06-21 18:47:52 +02:00
<Border x:Name= "NonRevertibleSeparator" Grid.Row= "5" Height= "1" Background= "{DynamicResource AppBorderColor}" Margin= "0,12,0,12" Visibility= "Collapsed" />
2026-06-10 17:40:31 +02:00
<Grid x:Name= "NonRevertiblePanel" Grid.Row= "6" Visibility= "Collapsed" >
2026-05-08 21:19:52 +02:00
<Grid.RowDefinitions>
<RowDefinition Height= "Auto" />
<RowDefinition Height= "*" />
<RowDefinition Height= "Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row= "0"
Text= "The following changes won't be reverted:"
FontSize= "13"
2026-06-21 18:47:52 +02:00
Foreground= "{DynamicResource AppFgColor}"
2026-05-08 21:19:52 +02:00
FontWeight= "SemiBold"
Margin= "0,0,0,8" />
<ItemsControl x:Name= "NonRevertibleFeaturesItemsControl" Grid.Row= "1" >
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation= "Vertical" IsItemsHost= "True" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
2026-06-21 18:47:52 +02:00
<TextBlock Text= "{Binding DisplayText}" FontSize= "12" Foreground= "{DynamicResource AppFgColor}" Opacity= "0.85" TextWrapping= "Wrap" Margin= "0,0,0,6" />
2026-05-08 21:19:52 +02:00
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<TextBlock x:Name= "NonRevertibleWikiLink"
Grid.Row= "2"
Margin= "0,8,0,0"
Text= "Visit the wiki for more information"
FontSize= "13"
FontWeight= "SemiBold"
Style= "{DynamicResource HyperlinkStyle}"
TextWrapping= "Wrap" />
</Grid>
</Grid>
</Grid>
</TabItem>
<TabItem x:Name= "StartMenuTab" Header= "StartMenu" >
<Grid x:Name= "StartMenuPanel" >
<Grid.RowDefinitions>
<RowDefinition Height= "Auto" />
</Grid.RowDefinitions>
<Grid x:Name= "StartMenuIntroPanel" Grid.Row= "0" Visibility= "Visible" >
<Grid.RowDefinitions>
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
<RowDefinition Height= "Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row= "0"
TextWrapping= "Wrap"
FontSize= "14"
LineHeight= "20"
Margin= "0,0,0,12"
2026-06-21 18:47:52 +02:00
Foreground= "{DynamicResource AppFgColor}"
2026-06-10 17:40:31 +02:00
Text= "This will restore the Start Menu pinned apps layout for the selected user(s) using a backup that is automatically created by Win11Debloat. Manually created backups can also be used." />
2026-05-08 21:19:52 +02:00
<ComboBox x:Name= "StartMenuScopeCombo"
Grid.Row= "1"
SelectedIndex= "0"
Margin= "0,0,0,2"
MinWidth= "408"
HorizontalAlignment= "Left" >
<ComboBoxItem Content= "Current user" Tag= "CurrentUser" />
<ComboBoxItem Content= "All users" Tag= "AllUsers" />
</ComboBox>
<CheckBox x:Name= "StartMenuAutoBackupCheck"
Grid.Row= "2"
Content= "Automatically find Start Menu backup"
IsChecked= "True"
FontSize= "12"
Margin= "0,10,0,0"
2026-06-21 18:47:52 +02:00
Foreground= "{DynamicResource AppFgColor}"
2026-05-08 21:19:52 +02:00
Opacity= "0.85" />
</Grid>
</Grid>
</TabItem>
</TabControl>
</Grid>
</ScrollViewer>
<Border Grid.Row= "3" Style= "{DynamicResource ModalFooterBorderStyle}" >
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width= "*" />
<ColumnDefinition Width= "*" />
</Grid.ColumnDefinitions>
<Button x:Name= "PrimaryActionBtn"
Grid.Column= "0"
Content= "Next"
Visibility= "Collapsed"
Style= "{DynamicResource ModalPrimaryStretchedButtonStyle}" />
<Button x:Name= "BackBtn"
Grid.Column= "1"
Content= "Back"
Visibility= "Collapsed"
Style= "{DynamicResource ModalSecondaryStretchedButtonStyle}" />
</Grid>
</Border>
</Grid>
</Border>
</Window>