- <Window
- x:Class="WeatherApp.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="Weather App" Height="500" Width="760"
- WindowStyle="None"
- ResizeMode="NoResize"
- Background="Transparent"
- AllowsTransparency="True">
- <Border Background="#bdc3c7" CornerRadius="20">
- <StackPanel>
- <StackPanel Orientation="Horizontal" >
- <Border CornerRadius="10" Background="#1e272e" Width="250" Height="40" Margin="50,50,0,0">
- <Grid>
- <Rectangle StrokeThickness="1"></Rectangle>
- <TextBox HorizontalAlignment="Left"
- Width="250"
- BorderThickness="0"
- Background="Transparent"
- Padding="5"
- Margin="7,0,0,0"
- Foreground="#CFCFCF"
- x:Name="txtSearch"
- FontSize="20"
- VerticalContentAlignment="Center"
- Text=" "
- FontFamily="Roboto"
- FontWeight="Medium"/>
- </Grid>
- </Border>
- <Border Width="100" Height="40" Margin="10,50,0,0">
- <Button x:Name="btnSearch" Click="BtnSearch_Click" Content="Search" FontSize="18" Background="#d35400" FontFamily="Roboto" FontWeight="Medium" BorderThickness="0" >
- <Button.Resources>
- <Style TargetType="Border">
- <Setter Property="CornerRadius" Value="10"></Setter>
- </Style>
- </Button.Resources>
- </Button>
- </Border>
- <TextBlock x:Name="txtDayOfWeek" Text="{Binding CurrentDayOfWeek}" FontSize="40" Margin="140,50,0,0" Width="150" FontFamily="Roboto" FontWeight="Medium"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,0,0,0" Height="170">
- <Image Source="Images/location.png" Width="35" Height="35" VerticalAlignment="Center" Margin="46,0,0,0"/>
- <TextBlock x:Name="txtCity" Text="{Binding CurrentWeather.City}" FontSize="40" Margin="0,63,0,0" TextAlignment="Justify" FontFamily="Roboto" FontWeight="Medium" />
- <Image Source="Images/tempo.png" Width="50" Height="50" VerticalAlignment="Center" Margin="10,0,0,5"/>
- <TextBlock x:Name="txtTemperature" FontSize="50" Text="{Binding CurrentWeather.Main.Temperature}" Margin="0,55,0,0" TextAlignment="Justify" FontFamily="Roboto" FontWeight="Medium"/>
- <TextBlock x:Name="txtCelcius" FontSize="30" Text="°С" Margin="0,60,0,0" FontFamily="Roboto" FontWeight="Medium"/>
- <Border CornerRadius="20" Background="#bdc3c7" Width="100" Height="100" Margin="0,0,0,0" >
- <Image x:Name="imgWeatherIcon" Width="100" Height="100" Visibility="Collapsed" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Border>
- </StackPanel>
- <StackPanel>
- <StackPanel Orientation="Horizontal">
- <Border Width=" 200" Height="200" Background="#669bbc" CornerRadius="20" Margin="50,0,0,0" Padding="10">
- <StackPanel>
- <StackPanel>
- <Image Source="Images/humidity.png" Height="50" Width="50" HorizontalAlignment="Center" Margin="5"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
- <StackPanel>
- <TextBlock x:Name="txtHumidity" Text="{Binding CurrentWeather.Main.Humidity}" Margin="55,0,0,0" FontSize="50" TextAlignment="Justify" FontFamily="Roboto" FontWeight="Medium"/>
- </StackPanel>
- <StackPanel>
- <TextBlock Text="%" FontSize="30" Margin="0,15,0,0" FontFamily="Roboto" FontWeight="Bold"/>
- </StackPanel>
- </StackPanel>
- <StackPanel>
- <TextBlock Text="Humidity" FontSize="30" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,10,0,0" FontFamily="Roboto" FontWeight="Regular" />
- </StackPanel>
- </StackPanel>
- </Border>
- <Border Width=" 200" Height="200" Background="#669bbc" CornerRadius="20" Margin="35,0,0,0" Padding="10">
- <StackPanel>
- <StackPanel>
- <Image Source="Images/wind.png" Height="50" Width="50" HorizontalAlignment="Center" Margin="5" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0" HorizontalAlignment="Center">
- <StackPanel>
- <TextBlock x:Name="txtWindSpeed" Text="{Binding CurrentWeather.Wind.Speed}" Margin="15,3,0,0" TextAlignment="Justify" FontSize="40" FontFamily="Roboto" FontWeight="Medium"/>
- </StackPanel>
- <StackPanel>
- <TextBlock Text="km/h" FontSize="30" Margin="5,18,0,0" FontFamily="Roboto" FontWeight="Medium"/>
- </StackPanel>
- </StackPanel>
- <StackPanel>
- <TextBlock Text="Wind Speed" FontSize="30" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,10,0,0" FontFamily="Roboto" FontWeight="Regular"/>
- </StackPanel>
- </StackPanel>
- </Border>
- <Border Width=" 200" Height="200" Background="#669bbc" CornerRadius="20" Margin="35,0,50,0" Padding="10">
- <StackPanel>
- <StackPanel>
- <Image Source="Images/pressure.png" Height="50" Width="50" HorizontalAlignment="Center" Margin="5"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0" HorizontalAlignment="Center">
- <StackPanel>
- <TextBlock x:Name="txtPressure" Text="{Binding CurrentWeather.Main.Pressure}" Margin="15,4,0,0" TextAlignment="Justify" FontSize="45" FontFamily="Roboto" FontWeight="Medium"/>
- </StackPanel>
- <StackPanel>
- <TextBlock Text="kPa" FontSize="30" Margin="0,18,0,0" FontFamily="Roboto" FontWeight="Medium"/>
- </StackPanel>
- </StackPanel>
- <StackPanel>
- <TextBlock Text="Pressure" FontSize="30" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,10,0,0" FontFamily="Roboto" FontWeight="Regular"/>
- </StackPanel>
- </StackPanel>
- </Border>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </Border>
- </Window>
[text] ltybc
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new: