-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
154 lines (145 loc) · 7.91 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:av="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="av" x:Class="DiskManager.MainWindow"
>
<Grid>
<Grid.ColumnDefinitions>
<!-- First column with 20% width -->
<ColumnDefinition Width="1*"/>
<!-- Second column with 80% width -->
<ColumnDefinition Width="4*"/>
</Grid.ColumnDefinitions>
<!-- Left Column (First Column) -->
<Grid Grid.Column="0" Background="#33334c">
<Grid.RowDefinitions>
<RowDefinition Height="2*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="3*"/>
</Grid.RowDefinitions>
<!-- Row 1 -->
<!-- Row 1 -->
<Border Background="#FF27273A" Grid.Row="0" Padding="15">
<!-- Add your content for the first row here -->
<Viewbox>
<TextBlock x:Name="Heading" Text="Drive Manager" VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Consolas" FontSize="1" FontWeight="Bold" Foreground="White"/>
</Viewbox>
</Border>
<!-- Row 2: Normal Button with Hover Effect -->
<Button x:Name="button1" Grid.Row="1" BorderBrush="{x:Null}" BorderThickness="1" Background="{x:Null}" Click="Button1_Click">
<Button.Style>
<Style TargetType="{x:Type Button}">
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontSize" Value="16"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="FontSize" Value="22"/>
<!-- Increase the font size on hover -->
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
<Viewbox>
<StackPanel Orientation="Horizontal">
<Image Source="Images\row_first.png" Width="30" Height="40" Margin="5"/>
<TextBlock x:Name="textBlock1" Text="Space Utilization" Foreground="White" FontWeight="Bold" VerticalAlignment="Center">
<TextBlock.RenderTransform>
<ScaleTransform ScaleX="1" ScaleY="1"/>
</TextBlock.RenderTransform>
</TextBlock>
</StackPanel>
</Viewbox>
</Button>
<!-- Row 3: Normal Button with Hover Effect -->
<Button x:Name="button2" Grid.Row="2" BorderBrush="{x:Null}" BorderThickness="1" Background="{x:Null}" Click="Button2_Click">
<Button.Style>
<Style TargetType="{x:Type Button}">
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontSize" Value="16"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="FontSize" Value="20"/>
<!-- Increase the font size on hover -->
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
<Viewbox>
<StackPanel Orientation="Horizontal">
<Image Source="Images\row_second.png" Width="30" Height="40" Margin="5"/>
<TextBlock x:Name="textBlock2" Text="Advance Search" Foreground="White" FontWeight="Bold" VerticalAlignment="Center">
<TextBlock.RenderTransform>
<ScaleTransform ScaleX="1" ScaleY="1"/>
</TextBlock.RenderTransform>
</TextBlock>
</StackPanel>
</Viewbox>
</Button>
<!-- Row 4: Normal Button with Hover Effect -->
<Button x:Name="button3" Grid.Row="3" BorderBrush="{x:Null}" BorderThickness="1" Background="{x:Null}" Click="Button3_Click">
<Button.Style>
<Style TargetType="{x:Type Button}">
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontSize" Value="16"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="FontSize" Value="20"/>
<!-- Increase the font size on hover -->
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
<Viewbox>
<StackPanel Orientation="Horizontal">
<Image Source="Images\row_third.png" Width="30" Height="40" Margin="5"/>
<TextBlock x:Name="textBlock3" Text="Delete" Foreground="White" FontWeight="Bold" VerticalAlignment="Center">
<TextBlock.RenderTransform>
<ScaleTransform ScaleX="1" ScaleY="1"/>
</TextBlock.RenderTransform>
</TextBlock>
</StackPanel>
</Viewbox>
</Button>
<!-- Row 5: Normal Button with Hover Effect -->
<Button x:Name="button4" Grid.Row="4" BorderBrush="{x:Null}" BorderThickness="1" Background="{x:Null}" Click="Button4_Click">
<Button.Style>
<Style TargetType="{x:Type Button}">
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontSize" Value="16"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="FontSize" Value="20"/>
<!-- Increase the font size on hover -->
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
<Viewbox>
<StackPanel Orientation="Horizontal">
<Image Source="Images\row_four.png" Width="30" Height="40" Margin="5"/>
<TextBlock x:Name="textBlock4" Text="About Us" Foreground="White" FontWeight="Bold" VerticalAlignment="Center" >
<TextBlock.RenderTransform>
<ScaleTransform ScaleX="1" ScaleY="1"/>
</TextBlock.RenderTransform>
</TextBlock>
</StackPanel>
</Viewbox>
</Button>
<Viewbox Grid.Row="6" VerticalAlignment="Bottom">
<TextBlock Text="Abhishek Mallick" Foreground="White" FontSize="6" VerticalAlignment="Bottom"
HorizontalAlignment="Center"
Margin="10,0,10,5"/>
</Viewbox>
</Grid>
<!-- Right Column (Second Column) -->
<Border x:Name="show_area" Background="#86b0cc" Grid.Column="1" RenderTransformOrigin="0.5,0.5">
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
<!-- Add your content for the right column here -->
<StackPanel x:Name="MAIN_AREA"/>
</ScrollViewer>
</Border>
</Grid>
</Window>