You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.7 KiB

2 years ago
<Window x:Class="WeatherApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WeatherApp"
mc:Ignorable="d"
2 years ago
Title="MainWindow" Height="40" Width="300" ResizeMode="NoResize" AllowsTransparency="True" Background="Transparent"
WindowStyle="None" Topmost="True" ShowInTaskbar="False"
MouseLeftButtonDown="Window_MouseLeftButtonDown"
Closing="Window_Closing"
Loaded="Window_Loaded">
<Window.ContextMenu>
<ContextMenu>
<MenuItem Header="위치">
<TextBox x:Name="tbxLocation" Width="150" KeyDown="tbxLocation_KeyDown"/>
</MenuItem>
<MenuItem Header="색상 반전" Click="ColorReverse_MenuItem_Click"/>
<MenuItem Header="종료" Click="Exit_MenuItem_Click">
</MenuItem>
</ContextMenu>
</Window.ContextMenu>
2 years ago
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50"/>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image x:Name="imgWeather" Grid.Column="0" Source="https://openweathermap.org/img/wn/10d@2x.png"/>
2 years ago
<TextBlock x:Name="tbLocation" Grid.Column="1" Text="Location" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold"/>
<TextBlock x:Name="tbTime" Grid.Column="2" Text="yyyy-MM-dd hh:mm:ss" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold"/>
2 years ago
</Grid>
</Window>