LD-Uninstaller/src-csharp/LDUninstaller.UI/MainWindow.xaml

575 lines
45 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<Window x:Class="LDUninstaller.UI.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:LDUninstaller.UI.Controls"
Title="LD Uninstaller - Gelişmiş Sistem ve Toplu Yazılım Kaldırıcı"
Height="820" Width="1300"
MinHeight="650" MinWidth="1050"
WindowStartupLocation="CenterScreen"
Background="{StaticResource BrushBgDark}"
Foreground="{StaticResource BrushTextPrimary}"
FontFamily="Segoe UI"
Icon="pack://application:,,,/LDUninstaller.UI;component/Resources/app.ico"
BorderBrush="{StaticResource BrushBorder}"
BorderThickness="1"
KeyDown="Window_KeyDown">
<WindowChrome.WindowChrome>
<WindowChrome CaptionHeight="50" ResizeBorderThickness="6" CornerRadius="8" GlassFrameThickness="0" UseAeroCaptionButtons="False" />
</WindowChrome.WindowChrome>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="230" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!-- ================= SIDEBAR ================= -->
<Border Grid.Column="0" Background="{StaticResource BrushBgSidebar}" BorderThickness="0,0,1,0" BorderBrush="{StaticResource BrushBorder}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="70" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!-- App Brand / Logo -->
<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" Margin="18,0">
<Border CornerRadius="9" Width="38" Height="38" Margin="0,0,12,0" Background="#1A202C" BorderBrush="#364560" BorderThickness="1" ClipToBounds="True">
<Image Source="pack://application:,,,/Resources/logo.png" Width="38" Height="38" RenderOptions.BitmapScalingMode="HighQuality" />
</Border>
<StackPanel VerticalAlignment="Center">
<TextBlock Text="LD Uninstaller" FontSize="15" FontWeight="Bold" Foreground="{StaticResource BrushTextPrimary}" />
<TextBlock x:Name="txtAppVersion" Text="v2.8.0" FontSize="11" Foreground="{StaticResource BrushAccentBlueLight}" FontWeight="SemiBold" />
</StackPanel>
</StackPanel>
<!-- Navigation Tabs -->
<StackPanel Grid.Row="1" Margin="14,15,14,0">
<RadioButton x:Name="navApps" Content="📦 Yazılımlar" Style="{StaticResource SidebarNavBtn}" IsChecked="True" Checked="Nav_Checked" />
<RadioButton x:Name="navTreemap" Content="🗺️ Disk Haritası" Style="{StaticResource SidebarNavBtn}" Checked="Nav_Checked" />
<RadioButton x:Name="navStartup" Content="⚡ Başlangıç Yöneticisi" Style="{StaticResource SidebarNavBtn}" Checked="Nav_Checked" />
<RadioButton x:Name="navDebloat" Content="🛡️ Windows Debloat" Style="{StaticResource SidebarNavBtn}" Checked="Nav_Checked" />
<RadioButton x:Name="navBackups" Content="💾 Yedek &amp; Koruma" Style="{StaticResource SidebarNavBtn}" Checked="Nav_Checked" />
<RadioButton x:Name="navTools" Content="🔧 Sistem Araçları" Style="{StaticResource SidebarNavBtn}" Checked="Nav_Checked" />
</StackPanel>
<!-- Sidebar Footer Status -->
<Border Grid.Row="2" Background="#11141A" Padding="14,12" Margin="12" CornerRadius="8" BorderThickness="1" BorderBrush="{StaticResource BrushBorder}">
<StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,0,4">
<Ellipse Width="7" Height="7" Fill="{StaticResource BrushAccentGreen}" Margin="0,0,7,0" VerticalAlignment="Center" />
<TextBlock Text="Sistem Koruması Aktif" FontSize="11.5" FontWeight="SemiBold" Foreground="{StaticResource BrushAccentGreen}" />
</StackPanel>
<TextBlock Text="Otomatik .REG yedeği ve süreç koruyucu devrede." FontSize="10.5" Foreground="{StaticResource BrushTextMuted}" TextWrapping="Wrap" />
</StackPanel>
</Border>
</Grid>
</Border>
<!-- ================= MAIN CONTENT AREA ================= -->
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="32" />
</Grid.RowDefinitions>
<!-- Custom Window Titlebar & Header -->
<Border Grid.Row="0" Background="{StaticResource BrushBgSidebar}" MouseDown="TitleBar_MouseDown" Padding="20,0" BorderThickness="0,0,0,1" BorderBrush="{StaticResource BrushBorder}">
<Grid>
<!-- Search Bar in Header -->
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" WindowChrome.IsHitTestVisibleInChrome="True">
<Border Background="#171A21" CornerRadius="8" Width="330" Height="32" BorderThickness="1" BorderBrush="{StaticResource BrushBorder}">
<Grid>
<TextBlock Text="🔍" FontSize="11" Foreground="{StaticResource BrushTextDim}" Margin="10,0,0,0" VerticalAlignment="Center" />
<TextBox x:Name="txtSearch" Background="Transparent" Foreground="{StaticResource BrushTextPrimary}" CaretBrush="{StaticResource BrushAccentBlueLight}" BorderThickness="0" Margin="28,2,10,0" VerticalAlignment="Center" FontSize="12.5" TextChanged="TxtSearch_TextChanged" />
<TextBlock Text="Uygulama veya yayıncı ara... (Ctrl+F)" Foreground="{StaticResource BrushTextMuted}" Margin="30,0,0,0" VerticalAlignment="Center" FontSize="12" IsHitTestVisible="False">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{Binding Text, ElementName=txtSearch}" Value="">
<Setter Property="Visibility" Value="Visible" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Grid>
</Border>
</StackPanel>
<!-- Window Control Buttons (Minimize, Maximize, Close) -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" WindowChrome.IsHitTestVisibleInChrome="True">
<Button Content="—" Width="32" Height="32" Background="Transparent" Foreground="{StaticResource BrushTextMuted}" BorderThickness="0" FontSize="12" Cursor="Hand" Click="BtnMinimize_Click" />
<Button Content="▢" Width="32" Height="32" Background="Transparent" Foreground="{StaticResource BrushTextMuted}" BorderThickness="0" FontSize="12" Cursor="Hand" Click="BtnMaximize_Click" />
<Button Content="✕" Width="32" Height="32" Background="Transparent" Foreground="{StaticResource BrushAccentRed}" BorderThickness="0" FontSize="14" Cursor="Hand" Click="BtnClose_Click" />
</StackPanel>
</Grid>
</Border>
<!-- ================= CONNECTED DRIVES TABS ================= -->
<Border x:Name="pnlDriveTabs" Grid.Row="1" Background="#111419" Padding="20,8" BorderThickness="0,0,0,1" BorderBrush="{StaticResource BrushBorder}" Visibility="Collapsed">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,14,0">
<TextBlock Text="💾 Diskler:" FontSize="12" FontWeight="Bold" Foreground="{StaticResource BrushTextSecondary}" VerticalAlignment="Center" />
</StackPanel>
<!-- Drive Tabs Container -->
<WrapPanel x:Name="wpDriveTabs" Grid.Column="1" VerticalAlignment="Center" Orientation="Horizontal" />
<!-- Selected Drive Badge -->
<Border x:Name="bdDriveSelectedInfo" Grid.Column="2" Background="#14233C" BorderBrush="#2D4675" BorderThickness="1" CornerRadius="6" Padding="10,4" VerticalAlignment="Center">
<TextBlock x:Name="txtDriveSelectedInfo" Text="Tüm Diskler" FontSize="11.5" Foreground="{StaticResource BrushAccentBlueLight}" FontWeight="SemiBold" />
</Border>
</Grid>
</Border>
<!-- ================= VIEW 1: APPLICATIONS ================= -->
<Grid x:Name="viewApps" Grid.Row="2" Margin="20,16,20,10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!-- Actions & Stats Row -->
<Grid Grid.Row="0" Margin="0,0,0,12">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<!-- Filter Chips -->
<WrapPanel VerticalAlignment="Center">
<RadioButton x:Name="chipAll" Content="Tümü" IsChecked="True" Checked="FilterChip_Checked" Style="{StaticResource SidebarNavBtn}" Padding="10,5" Margin="0,0,6,0" FontSize="12" />
<RadioButton x:Name="chipDesktop" Content="Masaüstü" Checked="FilterChip_Checked" Style="{StaticResource SidebarNavBtn}" Padding="10,5" Margin="0,0,6,0" FontSize="12" />
<RadioButton x:Name="chipStore" Content="Windows Store" Checked="FilterChip_Checked" Style="{StaticResource SidebarNavBtn}" Padding="10,5" Margin="0,0,6,0" FontSize="12" />
<RadioButton x:Name="chipSteam" Content="Steam" Checked="FilterChip_Checked" Style="{StaticResource SidebarNavBtn}" Padding="10,5" Margin="0,0,6,0" FontSize="12" />
<RadioButton x:Name="chipOrphan" Content="Yetim / Sahipsiz" Checked="FilterChip_Checked" Style="{StaticResource SidebarNavBtn}" Padding="10,5" Margin="0,0,6,0" FontSize="12" />
<RadioButton x:Name="chipSystem" Content="Sistem Bileşenleri" Checked="FilterChip_Checked" Style="{StaticResource SidebarNavBtn}" Padding="10,5" Margin="0,0,6,0" FontSize="12" />
<RadioButton x:Name="chipOld" Content="🕒 90+ Gün Kullanılmayanlar" Checked="FilterChip_Checked" Style="{StaticResource SidebarNavBtn}" Padding="10,5" Margin="0,0,6,0" FontSize="12" />
<RadioButton x:Name="chipBroken" Content="⚠️ Bozuk Girdiler" Checked="FilterChip_Checked" Style="{StaticResource SidebarNavBtn}" Padding="10,5" Margin="0,0,6,0" FontSize="12" />
</WrapPanel>
<!-- Top Action Buttons -->
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center">
<Button x:Name="btnUninstall" Content="🗑️ Kaldır" Style="{StaticResource ModernBtnPrimary}" Margin="0,0,8,0" Click="BtnUninstall_Click" />
<Button x:Name="btnForceUninstall" Content="💥 Zorla Kaldır" Style="{StaticResource ModernBtnSecondary}" Margin="0,0,8,0" Click="BtnForceUninstall_Click" ToolTip="Kaldırıcıyı çalıştırmadan doğrudan kalıntıları arar ve siler" />
<Button x:Name="btnWinget" Content="⚡ Winget" Style="{StaticResource ModernBtnSecondary}" Margin="0,0,8,0" Click="BtnWinget_Click" ToolTip="Winget güncelleme ve kurulum scripti üret" />
<Button Content="📤 Dışa Aktar" Style="{StaticResource ModernBtnSecondary}" Margin="0,0,8,0" Click="BtnExport_Click" />
<Button Content="🔄 Yenile (F5)" Style="{StaticResource ModernBtnSecondary}" Margin="0,0,8,0" Click="BtnRefresh_Click" />
<Button x:Name="btnToggleMiniTreemap" Content="🗺️ Harita" Style="{StaticResource ModernBtnSecondary}" Click="BtnToggleMiniTreemap_Click" ToolTip="Alt disk haritasını göster/gizle" />
</StackPanel>
</Grid>
<!-- Legend pills -->
<StackPanel Grid.Row="1" Orientation="Horizontal" Margin="0,0,0,10">
<StackPanel Orientation="Horizontal" Margin="0,0,16,0">
<Ellipse Width="8" Height="8" Fill="#10B981" Margin="0,0,5,0" VerticalAlignment="Center" />
<TextBlock Text="Doğrulanmış Sertifika" FontSize="11" Foreground="#94A3B8" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,16,0">
<Ellipse Width="8" Height="8" Fill="#3B82F6" Margin="0,0,5,0" VerticalAlignment="Center" />
<TextBlock Text="Standart Yazılım" FontSize="11" Foreground="#94A3B8" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,16,0">
<Ellipse Width="8" Height="8" Fill="#EF4444" Margin="0,0,5,0" VerticalAlignment="Center" />
<TextBlock Text="Yetim / Sahipsiz" FontSize="11" Foreground="#94A3B8" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,16,0">
<Ellipse Width="8" Height="8" Fill="#8B5CF6" Margin="0,0,5,0" VerticalAlignment="Center" />
<TextBlock Text="Store / UWP" FontSize="11" Foreground="#94A3B8" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<Ellipse Width="8" Height="8" Fill="#6B7280" Margin="0,0,5,0" VerticalAlignment="Center" />
<TextBlock Text="Sistem Bileşeni" FontSize="11" Foreground="#94A3B8" />
</StackPanel>
</StackPanel>
<!-- DataGrid Virtual List -->
<DataGrid x:Name="dgApps" Grid.Row="2" Background="Transparent" RowBackground="#13161D" AlternatingRowBackground="#171A22"
BorderThickness="1" BorderBrush="{StaticResource BrushBorder}" AutoGenerateColumns="False" CanUserAddRows="False"
IsReadOnly="True" HeadersVisibility="Column" GridLinesVisibility="None" Foreground="{StaticResource BrushTextPrimary}" FontSize="12.5"
SelectionMode="Extended" EnableRowVirtualization="True" EnableColumnVirtualization="True"
VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling"
VirtualizingPanel.ScrollUnit="Pixel" ScrollViewer.CanContentScroll="True"
MouseDoubleClick="DgApps_MouseDoubleClick">
<DataGrid.ColumnHeaderStyle>
<Style TargetType="DataGridColumnHeader">
<Setter Property="Background" Value="#1B1F28" />
<Setter Property="Foreground" Value="{StaticResource BrushTextSecondary}" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="FontSize" Value="12" />
<Setter Property="Padding" Value="10,8" />
<Setter Property="BorderThickness" Value="0,0,0,1" />
<Setter Property="BorderBrush" Value="{StaticResource BrushBorder}" />
</Style>
</DataGrid.ColumnHeaderStyle>
<DataGrid.ContextMenu>
<ContextMenu Background="#181B22" Foreground="{StaticResource BrushTextPrimary}" BorderBrush="{StaticResource BrushBorder}">
<MenuItem Header="🗑️ Kaldır" Click="BtnUninstall_Click" />
<MenuItem Header="💥 Zorla Kaldır (Kalıntıları Temizle)" Click="BtnForceUninstall_Click" />
<Separator Background="{StaticResource BrushBorder}" />
<MenuItem Header="📁 Kurulum Klasörünü Aç" Click="MenuOpenFolder_Click" />
<MenuItem Header="🔑 Kayıt Defterinde Aç" Click="MenuOpenReg_Click" />
<MenuItem Header="🌐 Web'de Ara" Click="MenuSearchWeb_Click" />
</ContextMenu>
</DataGrid.ContextMenu>
<DataGrid.Columns>
<DataGridTemplateColumn Width="45">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
HorizontalAlignment="Center" VerticalAlignment="Center" Style="{StaticResource ModernCheckBox}" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="Uygulama Adı" Width="280">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Ellipse Width="8" Height="8" Margin="4,0,8,0" VerticalAlignment="Center">
<Ellipse.Style>
<Style TargetType="Ellipse">
<Setter Property="Fill" Value="#3B82F6" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsCertificateValid}" Value="True">
<Setter Property="Fill" Value="#10B981" />
</DataTrigger>
<DataTrigger Binding="{Binding IsOrphaned}" Value="True">
<Setter Property="Fill" Value="#EF4444" />
</DataTrigger>
<DataTrigger Binding="{Binding UninstallerKind}" Value="StoreApp">
<Setter Property="Fill" Value="#8B5CF6" />
</DataTrigger>
<DataTrigger Binding="{Binding SystemComponent}" Value="True">
<Setter Property="Fill" Value="#6B7280" />
</DataTrigger>
</Style.Triggers>
</Style>
</Ellipse.Style>
</Ellipse>
<TextBlock Text="{Binding DisplayName}" FontWeight="Medium" VerticalAlignment="Center" TextTrimming="CharacterEllipsis" />
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn Header="Yayıncı" Binding="{Binding Publisher}" Width="160" />
<DataGridTextColumn Header="Sürüm" Binding="{Binding DisplayVersion}" Width="90" />
<DataGridTemplateColumn Header="Boyut" SortMemberPath="EstimatedSize.Bytes" Width="100">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Border Background="#14233C" BorderBrush="#263A5E" BorderThickness="1" CornerRadius="4" Padding="6,2" HorizontalAlignment="Left">
<TextBlock Text="{Binding EstimatedSize}" FontWeight="SemiBold" FontSize="11.5" Foreground="{StaticResource BrushAccentBlueLight}" />
</Border>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn Header="Kurulum Tarihi" Binding="{Binding InstallDateDisplay}" SortMemberPath="InstallDate" Width="105" />
<DataGridTextColumn Header="Kaldırıcı Türü" Binding="{Binding UninstallerKindDisplay}" Width="130" />
<DataGridTemplateColumn Header="Sertifika" Width="100">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock VerticalAlignment="Center" FontSize="11.5">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Text" Value="—" />
<Setter Property="Foreground" Value="{StaticResource BrushTextDim}" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsCertificateValid}" Value="True">
<Setter Property="Text" Value="✓ Doğrulandı" />
<Setter Property="Foreground" Value="{StaticResource BrushAccentGreen}" />
<Setter Property="FontWeight" Value="SemiBold" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
<!-- Collapsible Bottom Treemap Preview -->
<Border x:Name="pnlMiniTreemap" Grid.Row="3" Height="140" Margin="0,10,0,0" CornerRadius="8" Background="#14171E" BorderThickness="1" BorderBrush="{StaticResource BrushBorder}" ClipToBounds="True">
<Grid>
<controls:WpfSquarifiedTreeMap x:Name="miniTreeMap" />
<Button Content="✕" Width="24" Height="24" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="6" Background="#242B38" Foreground="White" BorderThickness="0" Cursor="Hand" Click="BtnHideMiniTreemap_Click" />
</Grid>
</Border>
</Grid>
<!-- ================= VIEW 2: FULL TREEMAP ================= -->
<Grid x:Name="viewTreemap" Grid.Row="2" Margin="20,16,20,10" Visibility="Collapsed">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBlock Text="Disk Kullanımı Squarified Ağaç Haritası (Boyuta Göre Görsel Dağılım)" FontSize="15" FontWeight="SemiBold" Foreground="{StaticResource BrushTextPrimary}" Margin="0,0,0,12" />
<Border Grid.Row="1" CornerRadius="10" Background="#14171E" BorderThickness="1" BorderBrush="{StaticResource BrushBorder}" ClipToBounds="True">
<controls:WpfSquarifiedTreeMap x:Name="fullTreeMap" />
</Border>
</Grid>
<!-- ================= VIEW 3: STARTUP MANAGER ================= -->
<Grid x:Name="viewStartup" Grid.Row="2" Margin="20,16,20,10" Visibility="Collapsed">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid Grid.Row="0" Margin="0,0,0,12">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="Windows Başlangıç Uygulamaları ve Servisleri" FontSize="15" FontWeight="SemiBold" Foreground="{StaticResource BrushTextPrimary}" />
<TextBlock Text="Windows StartupApproved ve Görev Zamanlayıcı kayıtları güvenle açılıp kapatılabilir." FontSize="12" Foreground="{StaticResource BrushTextSecondary}" Margin="0,3,0,0" />
</StackPanel>
<Border Grid.Column="1" Background="#171A21" CornerRadius="6" Width="220" Height="30" Margin="0,0,12,0" BorderThickness="1" BorderBrush="{StaticResource BrushBorder}">
<Grid>
<TextBlock Text="🔍" FontSize="11" Foreground="{StaticResource BrushTextDim}" Margin="8,0,0,0" VerticalAlignment="Center" />
<TextBox x:Name="txtStartupSearch" Background="Transparent" Foreground="{StaticResource BrushTextPrimary}" BorderThickness="0" Margin="26,2,6,0" VerticalAlignment="Center" FontSize="12" TextChanged="TxtStartupSearch_TextChanged" />
</Grid>
</Border>
<Button Grid.Column="2" Content="Durumu Değiştir (Aç/Kapat)" Style="{StaticResource ModernBtnPrimary}" VerticalAlignment="Center" Click="BtnToggleStartup_Click" />
</Grid>
<DataGrid x:Name="dgStartup" Grid.Row="1" Background="Transparent" RowBackground="#13161D" AlternatingRowBackground="#171A22"
BorderThickness="1" BorderBrush="{StaticResource BrushBorder}" AutoGenerateColumns="False" CanUserAddRows="False" IsReadOnly="True"
HeadersVisibility="Column" GridLinesVisibility="None" Foreground="{StaticResource BrushTextPrimary}" FontSize="12.5">
<DataGrid.ColumnHeaderStyle>
<Style TargetType="DataGridColumnHeader">
<Setter Property="Background" Value="#1B1F28" />
<Setter Property="Foreground" Value="{StaticResource BrushTextSecondary}" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="FontSize" Value="12" />
<Setter Property="Padding" Value="10,8" />
<Setter Property="BorderThickness" Value="0,0,0,1" />
<Setter Property="BorderBrush" Value="{StaticResource BrushBorder}" />
</Style>
</DataGrid.ColumnHeaderStyle>
<DataGrid.Columns>
<DataGridTextColumn Header="Uygulama / Öğe Adı" Binding="{Binding Name}" Width="240" />
<DataGridTextColumn Header="Kaynak Türü" Binding="{Binding Type}" Width="140" />
<DataGridTemplateColumn Header="Durum" Width="120">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Border CornerRadius="5" Padding="8,3" HorizontalAlignment="Left" BorderThickness="1">
<Border.Style>
<Style TargetType="Border">
<Setter Property="Background" Value="#171A21" />
<Setter Property="BorderBrush" Value="{StaticResource BrushBorder}" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsEnabled}" Value="True">
<Setter Property="Background" Value="#0D2E26" />
<Setter Property="BorderBrush" Value="#10B981" />
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
<TextBlock FontWeight="SemiBold" FontSize="11.5">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Text" Value="Devre Dışı" />
<Setter Property="Foreground" Value="{StaticResource BrushTextMuted}" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsEnabled}" Value="True">
<Setter Property="Text" Value="Etkin" />
<Setter Property="Foreground" Value="{StaticResource BrushAccentGreen}" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Border>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn Header="Komut / Hedef Yol" Binding="{Binding Command}" Width="*" />
</DataGrid.Columns>
</DataGrid>
</Grid>
<!-- ================= VIEW 4: DEBLOAT ================= -->
<Grid x:Name="viewDebloat" Grid.Row="2" Margin="20,16,20,10" Visibility="Collapsed">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid Grid.Row="0" Margin="0,0,0,15">
<StackPanel>
<TextBlock Text="Windows Telemetri ve Performans İnce Ayarları" FontSize="15" FontWeight="SemiBold" Foreground="{StaticResource BrushTextPrimary}" />
<TextBlock Text="Gereksiz arka plan telemetri servislerini, Cortana aramalarını ve otomatik sponsorlu yazılımları kapatın." FontSize="12" Foreground="{StaticResource BrushTextSecondary}" Margin="0,3,0,0" />
</StackPanel>
<Button Content="Tüm Önerilenleri Uygula" Style="{StaticResource ModernBtnPrimary}" HorizontalAlignment="Right" Click="BtnApplyAllDebloat_Click" />
</Grid>
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
<ItemsControl x:Name="icDebloat">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border Background="#161921" CornerRadius="8" Padding="18,14" Margin="0,0,0,10" BorderThickness="1" BorderBrush="{StaticResource BrushBorder}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel VerticalAlignment="Center">
<StackPanel Orientation="Horizontal" Margin="0,0,0,4">
<TextBlock Text="{Binding Title}" FontSize="13.5" FontWeight="Bold" Foreground="{StaticResource BrushTextPrimary}" />
<Border Background="#14233C" BorderBrush="#263A5E" BorderThickness="1" CornerRadius="4" Padding="6,2" Margin="10,0,0,0">
<TextBlock Text="{Binding Category}" FontSize="10.5" Foreground="{StaticResource BrushAccentBlueLight}" />
</Border>
<Border CornerRadius="4" Padding="6,2" Margin="8,0,0,0" BorderThickness="1">
<Border.Style>
<Style TargetType="Border">
<Setter Property="Background" Value="#171A21" />
<Setter Property="BorderBrush" Value="{StaticResource BrushBorder}" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsApplied}" Value="True">
<Setter Property="Background" Value="#0D2E26" />
<Setter Property="BorderBrush" Value="#10B981" />
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
<TextBlock FontSize="10.5" FontWeight="SemiBold">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Text" Value="Devre Dışı" />
<Setter Property="Foreground" Value="{StaticResource BrushTextMuted}" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsApplied}" Value="True">
<Setter Property="Text" Value="✓ Uygulandı" />
<Setter Property="Foreground" Value="{StaticResource BrushAccentGreen}" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Border>
</StackPanel>
<TextBlock Text="{Binding Description}" FontSize="12" Foreground="{StaticResource BrushTextSecondary}" />
</StackPanel>
<Button Grid.Column="1" Content="Uygula / Değiştir" Style="{StaticResource ModernBtnSecondary}" VerticalAlignment="Center" Tag="{Binding}" Click="BtnToggleDebloatItem_Click" />
</Grid>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
</Grid>
<!-- ================= VIEW 5: TOOLS & DIAGNOSTICS ================= -->
<Grid x:Name="viewTools" Grid.Row="2" Margin="20,16,20,10" Visibility="Collapsed">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<StackPanel Margin="0,0,10,0">
<TextBlock Text="LD Uninstaller Sistem Araçları ve Yardımcılar" FontSize="16" FontWeight="SemiBold" Foreground="{StaticResource BrushTextPrimary}" Margin="0,0,0,4" />
<TextBlock Text="Sistem temizliğini kolaylaştıran gelişmiş modüller, yedekleme merkezi ve tanı araçları." FontSize="12.5" Foreground="{StaticResource BrushTextSecondary}" Margin="0,0,0,18" />
<!-- Tool 1: Shell Integration -->
<Border Background="#161921" CornerRadius="8" Padding="18,14" Margin="0,0,0,12" BorderThickness="1" BorderBrush="{StaticResource BrushBorder}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel VerticalAlignment="Center">
<TextBlock Text="Gezgin (Explorer) Sağ Tık Menüsü Entegrasyonu" FontSize="13.5" FontWeight="Bold" Foreground="{StaticResource BrushTextPrimary}" />
<TextBlock Text="Masaüstü ve klasörlerdeki .exe ve kısayol (.lnk) dosyalarına sağ tıklandığında 'LD Uninstaller ile Kaldır' seçeneğini gösterir." FontSize="12" Foreground="{StaticResource BrushTextSecondary}" Margin="0,3,0,0" />
</StackPanel>
<Button x:Name="btnToggleShell" Grid.Column="1" Content="Aktif Et" Style="{StaticResource ModernBtnSecondary}" VerticalAlignment="Center" Click="BtnToggleShell_Click" />
</Grid>
</Border>
<!-- Tool 2: Backup & Exclusion Center -->
<Border Background="#161921" CornerRadius="8" Padding="18,14" Margin="0,0,0,12" BorderThickness="1" BorderBrush="{StaticResource BrushBorder}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel VerticalAlignment="Center">
<TextBlock Text="Yedekleme ve Koruma (Exclusion) Merkezi" FontSize="13.5" FontWeight="Bold" Foreground="{StaticResource BrushTextPrimary}" />
<TextBlock Text="Kayıt defterinden silinen tüm .reg yedeklerini yönetin, tek tıkla geri yükleyin veya silinmesini istemediğiniz klasörleri korumaya alın." FontSize="12" Foreground="{StaticResource BrushTextSecondary}" Margin="0,3,0,0" />
</StackPanel>
<Button Content="Yedekleri Yönet" Style="{StaticResource ModernBtnPrimary}" Grid.Column="1" VerticalAlignment="Center" Click="BtnOpenBackups_Click" />
</Grid>
</Border>
<!-- Tool 3: Clean Broken Entries -->
<Border Background="#161921" CornerRadius="8" Padding="18,14" Margin="0,0,0,12" BorderThickness="1" BorderBrush="{StaticResource BrushBorder}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel VerticalAlignment="Center">
<TextBlock Text="Bozuk ve Eksik Kayıt Defteri Girdilerini Temizle" FontSize="13.5" FontWeight="Bold" Foreground="{StaticResource BrushTextPrimary}" />
<TextBlock Text="Kaldırıcısı veya hedef klasörü diskte artık var olmayan hayalet (ghost) kayıt defteri girdilerini tespit eder ve temizler." FontSize="12" Foreground="{StaticResource BrushTextSecondary}" Margin="0,3,0,0" />
</StackPanel>
<Button Content="Bozuk Girdileri Bul" Style="{StaticResource ModernBtnSecondary}" Grid.Column="1" VerticalAlignment="Center" Click="BtnCleanBrokenEntries_Click" />
</Grid>
</Border>
<!-- Tool 4: Log Viewer -->
<Border Background="#161921" CornerRadius="8" Padding="18,14" Margin="0,0,0,12" BorderThickness="1" BorderBrush="{StaticResource BrushBorder}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel VerticalAlignment="Center">
<TextBlock Text="Sistem ve İşlem Günlüğü (Log Görüntüleyici)" FontSize="13.5" FontWeight="Bold" Foreground="{StaticResource BrushTextPrimary}" />
<TextBlock Text="Arka planda gerçekleşen tarama, kaldırma, kilit çözme ve hata adımlarını gerçek zamanlı inceleyin." FontSize="12" Foreground="{StaticResource BrushTextSecondary}" Margin="0,3,0,0" />
</StackPanel>
<Button Content="Logları Göster" Style="{StaticResource ModernBtnSecondary}" Grid.Column="1" VerticalAlignment="Center" Click="BtnOpenLogs_Click" />
</Grid>
</Border>
<!-- Tool 5: Update Checker -->
<Border Background="#161921" CornerRadius="8" Padding="18,14" Margin="0,0,0,12" BorderThickness="1" BorderBrush="{StaticResource BrushBorder}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel VerticalAlignment="Center">
<TextBlock Text="Sürüm ve Güncelleme Denetimi" FontSize="13.5" FontWeight="Bold" Foreground="{StaticResource BrushTextPrimary}" />
<TextBlock x:Name="txtUpdateStatus" Text="Sunucudan en son sürüm bilgisini sorgulayın." FontSize="12" Foreground="{StaticResource BrushTextSecondary}" Margin="0,3,0,0" />
</StackPanel>
<Button x:Name="btnCheckUpdate" Content="Güncellemeleri Denetle" Style="{StaticResource ModernBtnSecondary}" Grid.Column="1" VerticalAlignment="Center" Click="BtnCheckUpdate_Click" />
</Grid>
</Border>
</StackPanel>
</ScrollViewer>
</Grid>
<!-- ================= BOTTOM STATUS BAR ================= -->
<Border Grid.Row="3" Background="{StaticResource BrushBgSidebar}" Padding="20,0" BorderThickness="0,1,0,0" BorderBrush="{StaticResource BrushBorder}">
<Grid VerticalAlignment="Center">
<TextBlock x:Name="txtFooterStatus" Text="Hazır." FontSize="11.5" Foreground="{StaticResource BrushTextMuted}" VerticalAlignment="Center" />
<TextBlock x:Name="txtFooterStats" Text="" FontSize="11.5" FontWeight="SemiBold" Foreground="{StaticResource BrushTextSecondary}" HorizontalAlignment="Right" VerticalAlignment="Center" />
</Grid>
</Border>
</Grid>
</Grid>
</Window>