|
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
5 | 5 | mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
6 | 6 | x:Class="AndroidDebloater.MainWindow"
|
| 7 | + xmlns:components="clr-namespace:AndroidDebloater.Components" |
7 | 8 | Title="AndroidDebloater"
|
8 | 9 | Width="800" Height="450">
|
9 | 10 | <Grid Margin="10">
|
10 | 11 | <Grid.RowDefinitions>
|
| 12 | + <RowDefinition Height="auto"/> |
11 | 13 | <RowDefinition Height="*"/>
|
12 | 14 | </Grid.RowDefinitions>
|
13 | 15 | <Grid.ColumnDefinitions>
|
|
16 | 18 | </Grid.ColumnDefinitions>
|
17 | 19 |
|
18 | 20 | <!--Left Column-->
|
19 |
| - <Grid Grid.Row="0" Grid.Column="0"> |
| 21 | + <Grid Grid.Row="0"> |
20 | 22 | <Grid.RowDefinitions>
|
21 | 23 | <RowDefinition Height="auto"/>
|
22 | 24 | <RowDefinition Height="auto"/>
|
23 | 25 | <RowDefinition Height="auto"/>
|
| 26 | + </Grid.RowDefinitions> |
| 27 | + <Grid.ColumnDefinitions> |
| 28 | + <ColumnDefinition Width="*"/> |
| 29 | + <ColumnDefinition Width="*"/> |
| 30 | + </Grid.ColumnDefinitions> |
| 31 | + <Label Grid.Row="0" Grid.Column="0" Content="See Connected Devices"/> |
| 32 | + <Button Click="ListDevices" Grid.Row="1" Grid.Column="0" Content="List ADB Devices"/> |
| 33 | + <RadioButton x:Name="sSelector" Click="ShowScripts" Grid.Row="2" IsChecked="True" Grid.Column="0" Content="Use Scripts"/> |
| 34 | + <RadioButton x:Name="cSelector" Click="ShowCustomSelector" Grid.Row="2" Grid.Column="1" Content="Custom Select"/> |
| 35 | + </Grid> |
| 36 | + |
| 37 | + |
| 38 | + <StackPanel x:Name="ScriptPanel" Grid.Column="0" Grid.Row="1"> |
| 39 | + <Grid> |
| 40 | + <Grid.RowDefinitions> |
| 41 | + <RowDefinition Height="auto"/> |
24 | 42 | <RowDefinition Height="auto"/>
|
25 | 43 | <RowDefinition Height="auto"/>
|
26 | 44 | <RowDefinition Height="auto"/>
|
|
31 | 49 | <ColumnDefinition Width="auto"/>
|
32 | 50 | <ColumnDefinition Width="auto"/>
|
33 | 51 | </Grid.ColumnDefinitions>
|
34 |
| - |
35 |
| - <Label Grid.Row="0" Grid.Column="0" Content="See Connected Devices"/> |
36 |
| - <Button Click="ListDevices" Grid.Row="1" Grid.Column="0" Content="List ADB Devices"/> |
37 |
| - |
38 |
| - <Label Grid.Row="2" Grid.Column="0" Margin="0 20 0 0" Content="Select your Debloat Package"/> |
39 |
| - <RadioButton Click="DisableSelector" x:Name="gDebloat" IsChecked="True" Grid.Row="3" Grid.Column="0" Content="Google Bloatware"/> |
40 |
| - <RadioButton Click="DisableSelector" x:Name="aDebloat" Grid.Row="3" Grid.Column="1" Content="Android System Bloat"/> |
41 |
| - <RadioButton Click="DisableSelector" x:Name="tpDebloat" Grid.Row="4" Grid.Column="0" Content="Third-Party Bloat"/> |
| 52 | + |
| 53 | + <Label Grid.Row="0" Grid.Column="0" Margin="0 20 0 0" Content="Select your Debloat Package"/> |
| 54 | + <RadioButton Click="DisableSelector" x:Name="gDebloat" IsChecked="True" Grid.Row="1" Grid.Column="0" Content="Google Bloatware"/> |
| 55 | + <RadioButton Click="DisableSelector" x:Name="aDebloat" Grid.Row="1" Grid.Column="1" Content="Android System Bloat"/> |
| 56 | + <RadioButton Click="DisableSelector" x:Name="tpDebloat" Grid.Row="2" Grid.Column="0" Content="Third-Party Bloat"/> |
42 | 57 |
|
43 |
| - <Label Grid.Row="5" Grid.Column="0" Margin="0 20 0 0" Content="Manufacturer Debloat"/> |
44 |
| - <RadioButton Click="EnableSelector" x:Name="mDebloat" Grid.Row="6" Grid.Column="0" Content="Manufacturer Specific"/> |
45 |
| - <ComboBox x:Name="mSelector" Grid.Row="6" Grid.Column="1"> |
| 58 | + <Label Grid.Row="3" Grid.Column="0" Margin="0 20 0 0" Content="Manufacturer Debloat"/> |
| 59 | + <RadioButton Click="EnableSelector" x:Name="mDebloat" Grid.Row="4" Grid.Column="0" Content="Manufacturer Specific"/> |
| 60 | + <ComboBox x:Name="mSelector" Grid.Row="4" Grid.Column="1"> |
46 | 61 | <ComboBoxItem Content="Google" IsSelected="True"/>
|
47 | 62 | <ComboBoxItem Content="Huawei"/>
|
48 | 63 | <ComboBoxItem Content="OnePlus"/>
|
|
53 | 68 | <ComboBoxItem Content="Xiaomi"/>
|
54 | 69 | </ComboBox>
|
55 | 70 |
|
56 |
| - <Button x:Name="DebloatBtn" Click="StartDebloater" Grid.Row="7" Grid.Column="0" VerticalAlignment="Bottom" Content="Start Debloat"/> |
57 |
| - <!--<Button Click="ShowHelp" Grid.Row="7" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" Content="Help"/>--> |
58 |
| - <Button Click="ShowSelector" Grid.Row="7" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" Content="Test"/> |
| 71 | + <Button x:Name="DebloatBtn" Click="StartDebloater" Grid.Row="5" Grid.Column="0" VerticalAlignment="Bottom" Content="Start Debloat"/> |
| 72 | + <Button Click="ShowHelp" Grid.Row="5" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" Content="Help"/> |
| 73 | + |
59 | 74 | </Grid>
|
| 75 | + </StackPanel> |
60 | 76 |
|
61 |
| - |
| 77 | + <StackPanel x:Name="CustomPanel" Grid.Row="1" IsVisible="false"> |
| 78 | + |
| 79 | + <Grid> |
| 80 | + <Grid.RowDefinitions> |
| 81 | + <RowDefinition Height="*"/> |
| 82 | + <RowDefinition Height="auto"/> |
| 83 | + </Grid.RowDefinitions> |
| 84 | + <Grid.ColumnDefinitions> |
| 85 | + <ColumnDefinition Width="*"/> |
| 86 | + <ColumnDefinition Width="*"/> |
| 87 | + </Grid.ColumnDefinitions> |
| 88 | + |
| 89 | + <ScrollViewer Grid.Row="0" Grid.ColumnSpan="2" MaxHeight="300" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Auto" Margin="0 10 0 10"> |
| 90 | + <ItemsControl Name="PackageList"> |
| 91 | + <ItemsControl.ItemTemplate> |
| 92 | + <DataTemplate DataType="{x:Type components:AndroidPackage}"> |
| 93 | + <CheckBox Content="{Binding Text}" |
| 94 | + IsChecked="{Binding IsChecked}" |
| 95 | + Margin="0,5,0,0"/> |
| 96 | + </DataTemplate> |
| 97 | + </ItemsControl.ItemTemplate> |
| 98 | + </ItemsControl> |
| 99 | + </ScrollViewer> |
| 100 | + |
| 101 | + <Button x:Name="CDebloatBtn" Click="RemoveSelected" Grid.Row="1" Grid.Column="0" VerticalAlignment="Bottom" Content="Start Debloat"/> |
| 102 | + <Button Click="ShowHelp" Grid.Row="1" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" Content="Help"/> |
| 103 | + |
| 104 | + </Grid> |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + </StackPanel> |
62 | 109 |
|
63 | 110 |
|
64 | 111 |
|
65 | 112 | <!--Right Column-->
|
66 |
| - <Border Grid.Column="1" BorderThickness="1" BorderBrush="Black"> |
| 113 | + <Border Grid.Column="1" BorderThickness="1" BorderBrush="Black" Grid.RowSpan="5"> |
67 | 114 | <Grid>
|
68 | 115 | <Grid.RowDefinitions>
|
69 | 116 | <RowDefinition Height="auto"/>
|
|
0 commit comments