fake google

main
syneffort 2 years ago
parent 40427b102e
commit df09724fe6
  1. 23
      PacticeSolution/FakeGoogle/MainWindow.xaml

@ -9,6 +9,25 @@
Title="FakeGoogle" Height="500" Width="800" Title="FakeGoogle" Height="500" Width="800"
MinHeight="500" MinWidth="800" MinHeight="500" MinWidth="800"
FontFamily="맑은 고딕"> FontFamily="맑은 고딕">
<Window.Resources>
<Style TargetType="{x:Type Button}">
<Setter Property="Background" Value="#303134"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border CornerRadius="5" Background="{TemplateBinding Background}" BorderBrush="Transparent">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#3A3A3A"/>
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="3*"/> <RowDefinition Height="3*"/>
@ -33,8 +52,8 @@
<ColumnDefinition/> <ColumnDefinition/>
<ColumnDefinition/> <ColumnDefinition/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Button x:Name="btnSearch" Background="#303134" BorderBrush="Transparent" Foreground="WhiteSmoke" Grid.Column="0" HorizontalAlignment="Right" Height="35" Width="120" Margin="10" Content="Google 검색"/> <Button x:Name="btnSearch" Foreground="WhiteSmoke" Grid.Column="0" HorizontalAlignment="Right" Height="35" Width="120" Margin="10" Content="Google 검색"/>
<Button x:Name="btnLucky" Background="#303134" BorderBrush="Transparent" Foreground="WhiteSmoke" Grid.Column="1" HorizontalAlignment="Left" Height="35" Width="120" Margin="10" Content="I'm feeling Lucky"/> <Button x:Name="btnLucky" Foreground="WhiteSmoke" Grid.Column="1" HorizontalAlignment="Left" Height="35" Width="120" Margin="10" Content="I'm feeling Lucky"/>
</Grid> </Grid>
</Grid> </Grid>
</Window> </Window>

Loading…
Cancel
Save