forked from oussamabonnor1/Fun-Facts-Calculator-WPF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFunFact.xaml
29 lines (28 loc) · 1.32 KB
/
FunFact.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
<Window x:Class="DesktopApp.FunFact"
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:DesktopApp"
mc:Ignorable="d"
Title="Fun Fact" Height="360" Width="600">
<Grid Background="#29363F" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image Source="{DynamicResource Logo}" Margin="50">
<Image.Resources>
<BitmapImage x:Key="Logo" CreateOptions="IgnoreImageCache" CacheOption="OnLoad" UriSource="C:\Users\oussama\source\repos\DesktopApp\DesktopApp\Res\calculator.png"/>
</Image.Resources>
</Image>
<Border Grid.Column="1" Margin="25 0 25 0 ">
<TextBlock
x:Name="textBlockFact"
Text="404 is a number indicating that the Fun Fact was not found"
Foreground="#FF999FA8"
FontSize="24"
VerticalAlignment="Center" TextWrapping="Wrap"/>
</Border>
</Grid>
</Window>