115 lines
7.9 KiB
XML
115 lines
7.9 KiB
XML
<Window x:Class="LDUninstaller.UI.Dialogs.ForceDeleteWindow"
|
||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
Title="LD Güçlü Kaldır ve Kilit Kırıcı"
|
||
Height="540" Width="720"
|
||
WindowStartupLocation="CenterScreen"
|
||
Topmost="True"
|
||
Background="{StaticResource BrushBgDark}"
|
||
Foreground="{StaticResource BrushTextPrimary}"
|
||
FontFamily="Segoe UI"
|
||
Icon="pack://application:,,,/LDUninstaller.UI;component/Resources/app.ico"
|
||
BorderBrush="#EF4444"
|
||
BorderThickness="1">
|
||
|
||
<WindowChrome.WindowChrome>
|
||
<WindowChrome CaptionHeight="50" ResizeBorderThickness="6" CornerRadius="8" GlassFrameThickness="0" UseAeroCaptionButtons="False" />
|
||
</WindowChrome.WindowChrome>
|
||
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="50" />
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="*" />
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="65" />
|
||
</Grid.RowDefinitions>
|
||
|
||
<!-- Custom Title Bar -->
|
||
<Border Grid.Row="0" Background="{StaticResource BrushBgSidebar}" MouseDown="TitleBar_MouseDown" Padding="20,0" BorderThickness="0,0,0,1" BorderBrush="{StaticResource BrushBorder}">
|
||
<Grid>
|
||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||
<Border Background="#450A0A" BorderBrush="#EF4444" BorderThickness="1" CornerRadius="6" Width="28" Height="28" Margin="0,0,12,0">
|
||
<TextBlock Text="💥" FontSize="14" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
||
</Border>
|
||
<TextBlock Text="LD Güçlü Kaldır ve Kilit Kırıcı (Force Shredder)" FontSize="14.5" FontWeight="SemiBold" Foreground="{StaticResource BrushTextPrimary}" VerticalAlignment="Center" />
|
||
</StackPanel>
|
||
<Button Content="✕" Width="30" Height="30" HorizontalAlignment="Right" Background="Transparent" Foreground="{StaticResource BrushTextMuted}" BorderThickness="0" FontSize="14" Cursor="Hand" Click="BtnClose_Click" WindowChrome.IsHitTestVisibleInChrome="True" />
|
||
</Grid>
|
||
</Border>
|
||
|
||
<!-- Target Info Banner -->
|
||
<Border Grid.Row="1" Background="#161921" Margin="20,15,20,10" Padding="16,12" CornerRadius="8" BorderThickness="1" BorderBrush="{StaticResource BrushBorder}">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<StackPanel>
|
||
<TextBlock x:Name="txtTargetTitle" Text="Hedef Dizin / Dosya" FontSize="12" FontWeight="SemiBold" Foreground="{StaticResource BrushTextMuted}" />
|
||
<TextBlock x:Name="txtTargetPath" Text="C:\..." FontSize="13" FontWeight="Bold" Foreground="{StaticResource BrushAccentRed}" TextWrapping="Wrap" Margin="0,4,0,2" />
|
||
<TextBlock x:Name="txtLnkNote" Text="" FontSize="11" Foreground="{StaticResource BrushAccentBlueLight}" Visibility="Collapsed" />
|
||
</StackPanel>
|
||
|
||
<Border x:Name="bdLockStatus" Grid.Column="1" VerticalAlignment="Center" CornerRadius="6" Padding="8,4" Background="#1F2937">
|
||
<TextBlock x:Name="txtLockStatus" Text="Kilitler Taranıyor..." FontSize="11.5" FontWeight="SemiBold" Foreground="{StaticResource BrushTextSecondary}" />
|
||
</Border>
|
||
</Grid>
|
||
</Border>
|
||
|
||
<!-- Locks List or Ready State -->
|
||
<Grid Grid.Row="2" Margin="20,0,20,10">
|
||
<DataGrid x:Name="dgLocks" Background="#11141A" RowBackground="#13161D" AlternatingRowBackground="#171A22"
|
||
BorderThickness="1" BorderBrush="{StaticResource BrushBorder}" AutoGenerateColumns="False" CanUserAddRows="False" IsReadOnly="True"
|
||
HeadersVisibility="Column" GridLinesVisibility="None" Foreground="{StaticResource BrushTextPrimary}" FontSize="12">
|
||
<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="11.5" />
|
||
<Setter Property="Padding" Value="8,6" />
|
||
<Setter Property="BorderThickness" Value="0,0,0,1" />
|
||
<Setter Property="BorderBrush" Value="{StaticResource BrushBorder}" />
|
||
</Style>
|
||
</DataGrid.ColumnHeaderStyle>
|
||
<DataGrid.Columns>
|
||
<DataGridTextColumn Header="PID" Binding="{Binding ProcessId}" Width="60" />
|
||
<DataGridTextColumn Header="Süreç / Servis Adı" Binding="{Binding ProcessName}" Width="160" />
|
||
<DataGridTextColumn Header="Açıklama / Durum" Binding="{Binding Description}" Width="200" />
|
||
<DataGridTextColumn Header="Yürütülebilir Dosya Yolu" Binding="{Binding ExecutablePath}" Width="*" />
|
||
</DataGrid.Columns>
|
||
</DataGrid>
|
||
|
||
<!-- When no locks found -->
|
||
<Border x:Name="pnlNoLocks" Background="#11141A" BorderBrush="{StaticResource BrushBorder}" BorderThickness="1" CornerRadius="6" Visibility="Collapsed">
|
||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
||
<TextBlock Text="🔓" FontSize="32" HorizontalAlignment="Center" Margin="0,0,0,6" />
|
||
<TextBlock Text="Klasörü kilitleyen aktif süreç veya servis tespit edilmedi." FontSize="13" FontWeight="SemiBold" Foreground="#34D399" HorizontalAlignment="Center" />
|
||
<TextBlock Text="Klasör ve kalıntıları doğrudan yok edilmeye hazır." FontSize="11.5" Foreground="{StaticResource BrushTextMuted}" HorizontalAlignment="Center" Margin="0,3,0,0" />
|
||
</StackPanel>
|
||
</Border>
|
||
</Grid>
|
||
|
||
<!-- Options & Status Panel -->
|
||
<Border Grid.Row="3" Background="#13161C" Margin="20,0,20,10" Padding="14,10" CornerRadius="6" BorderThickness="1" BorderBrush="{StaticResource BrushBorder}">
|
||
<StackPanel>
|
||
<CheckBox x:Name="chkRecycle" Content="Geri Dönüşüm Kutusu'na Gönder (Kalıcı veri kaybını önler)" IsChecked="True" Style="{StaticResource ModernCheckBox}" Margin="0,0,0,6" />
|
||
<CheckBox x:Name="chkCleanJunk" Content="Kayıt Defteri ve AppData / ProgramData kalıntılarını da otomatik temizle" IsChecked="True" Style="{StaticResource ModernCheckBox}" />
|
||
<ProgressBar x:Name="pbProgress" Height="4" Margin="0,8,0,0" Background="#1E293B" Foreground="#EF4444" BorderThickness="0" Visibility="Collapsed" IsIndeterminate="True" />
|
||
<TextBlock x:Name="txtLog" Text="" FontSize="11.5" Foreground="{StaticResource BrushTextMuted}" Margin="0,6,0,0" TextWrapping="Wrap" Visibility="Collapsed" />
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
<!-- Footer Buttons -->
|
||
<Border Grid.Row="4" Background="{StaticResource BrushBgSidebar}" Padding="20,12" BorderThickness="0,1,0,0" BorderBrush="{StaticResource BrushBorder}">
|
||
<Grid>
|
||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
|
||
<Button x:Name="btnDestroy" Content="💥 Kilitleri Kır, Yok Et ve Kalıntıları Temizle" Style="{StaticResource ModernBtnPrimary}" Background="#DC2626" BorderBrush="#EF4444" Margin="0,0,10,0" Click="BtnDestroy_Click" />
|
||
<Button x:Name="btnCancel" Content="İptal" Style="{StaticResource ModernBtnSecondary}" Click="BtnClose_Click" />
|
||
</StackPanel>
|
||
</Grid>
|
||
</Border>
|
||
</Grid>
|
||
</Window>
|