Skip to content

Commit

Permalink
Update EventWindow.xaml
Browse files Browse the repository at this point in the history
  • Loading branch information
emadadel4 committed Oct 15, 2024
1 parent c01427b commit 9a74921
Showing 1 changed file with 77 additions and 101 deletions.
178 changes: 77 additions & 101 deletions UI/Views/EventWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,112 +100,88 @@
</EventTrigger>
</Window.Triggers>



<Border Background="{DynamicResource PrimaryBackgroundColor}" BorderBrush="{DynamicResource SecondaryPrimaryBackgroundColor}" BorderThickness="4" CornerRadius="10">

<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>

<StackPanel x:Name="MainStackPanel" Height="Auto" Orientation="Vertical" Margin="8">

<!-- Title -->
<Grid Row="0" Background="Transparent">

<TextBlock Text="&#10006;"
Name="closebtn"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Margin="8"
Cursor="Hand"
Foreground="red" />


<StackPanel Orientation="Vertical" Margin="10">

<TextBlock
Name="title"
Height="Auto"
Width="Auto"
FontSize="20"
Text="What's New"
Foreground="{DynamicResource TextColorSecondaryColor}"
FontWeight="SemiBold"
TextWrapping="Wrap"
VerticalAlignment="Center"
HorizontalAlignment="Left" />

<TextBlock
Name="date"
Height="Auto"
Width="Auto"
Text="8/29/2024"
Foreground="{DynamicResource TextColorSecondaryColor2}"
TextWrapping="Wrap"
VerticalAlignment="Center"
HorizontalAlignment="Left" />
<Grid>


<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>

<StackPanel x:Name="MainStackPanel" Height="Auto" Background="Transparent" Orientation="Vertical" Margin="15">

</StackPanel>

</Grid>
<!-- End Title -->

<!-- Header -->
<Grid Row="1">
<ScrollViewer Name="ScrollViewer" VerticalScrollBarVisibility="Auto" Height="375">
<StackPanel Orientation="Vertical">
<!--Image-->
<Image
Name="Image"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Height="200"
Margin="1"
Source="https://raw.githubusercontent.com/emadadel4/ITT/main/Resources/Images/thumbnail.jpg"
Cursor="Hand"
/>
<!--End Image-->

<TextBlock
Name="Subtitle"
Text="Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet amet obcaecati dolorem, sit iusto consequatur, libero laudantium officia quo ea officiis nulla esse quod ex, mollitia asperiores! Accusantium, labore pariatur."
Height="Auto"
Width="Auto"
Visibility="Visible"
Margin="0,10,0,0"
Foreground="{DynamicResource TextColorSecondaryColor2}"
TextWrapping="Wrap"
TextAlignment="Left"
VerticalAlignment="Center"
HorizontalAlignment="Left" />
</StackPanel>
</ScrollViewer>
</Grid>
<!-- End Header -->

<!-- Footer -->
<Grid Row="2">
<TextBlock Width="Auto"
Name="DisablePopup"
Foreground="{DynamicResource TextColorSecondaryColor2}"
Text="Don't show again"
Background="Transparent"
TextAlignment="Center"
Cursor="Hand"
Padding="15"
Height="Auto"
Visibility="Visible"
HorizontalAlignment="Center"
VerticalAlignment="Center"
/>
</Grid>
<!-- End Footer -->
<!-- Title -->
<Grid Row="0" Background="Transparent">

<TextBlock Text="&#10006;"
Name="closebtn"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Margin="0"
Cursor="Hand"
Foreground="red" />


<StackPanel Orientation="Vertical" Margin="0">

<TextBlock
Name="title"
Height="Auto"
Width="Auto"
FontSize="20"
Text="What's New"
Foreground="{DynamicResource TextColorSecondaryColor}"
FontWeight="SemiBold"
TextWrapping="Wrap"
VerticalAlignment="Center"
HorizontalAlignment="Left" />

<TextBlock
Name="date"
Height="Auto"
Width="Auto"
Text="8/29/2024"
Foreground="{DynamicResource TextColorSecondaryColor2}"
TextWrapping="Wrap"
VerticalAlignment="Center"
HorizontalAlignment="Left" />

</StackPanel>

</Grid>
<!-- End Title -->

</StackPanel>

<Grid Row="1" Background="Transparent" Margin="0">
<ScrollViewer Name="ScrollViewer" VerticalScrollBarVisibility="Auto" Height="Auto">
<StackPanel Margin="20" Orientation="Vertical">
UpdateContent
</StackPanel>
</Grid>
</ScrollViewer>
</Grid>

<Grid Row="2" Background="Transparent">
<TextBlock
Name="DisablePopup"
Foreground="{DynamicResource TextColorSecondaryColor2}"
Text="Don't show again"
Background="Transparent"
TextAlignment="Center"
Cursor="Hand"
Padding="15"
Visibility="Visible"
HorizontalAlignment="Center"
VerticalAlignment="Center"
/>
</Grid>
</Grid>


</Border>
</Window>

0 comments on commit 9a74921

Please sign in to comment.