- Fresh start
- Added new core project - Done main layout design - Done video, channel, playlist and advert cards
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<UserControl
|
||||
x:Class="FoxTube.Controls.Cards.AdvertCard"
|
||||
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:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
|
||||
xmlns:Windows10version1809="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract, 7)"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="400"
|
||||
HorizontalAlignment="Stretch"
|
||||
Margin="3"
|
||||
SizeChanged="UserControl_SizeChanged">
|
||||
|
||||
<controls:DropShadowPanel BlurRadius="10" ShadowOpacity=".5"
|
||||
OffsetX="2" OffsetY="2"
|
||||
Color="Black"
|
||||
HorizontalContentAlignment="Stretch"
|
||||
VerticalContentAlignment="Stretch">
|
||||
<Button Background="{ThemeResource SystemControlBackgroundChromeMediumBrush}" Style="{StaticResource ButtonRevealStyle}" Windows10version1809:CornerRadius="5" Padding="0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RowSpacing="5">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="20"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<controls:ImageEx PlaceholderStretch="UniformToFill" CornerRadius="5,5,0,0" PlaceholderSource="/Assets/DefaultVideoThumbnail.png"/>
|
||||
|
||||
<controls:DropShadowPanel VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5" OffsetX="2" OffsetY="2">
|
||||
<StackPanel Padding="5,2,5,3" Background="Orange" CornerRadius="5">
|
||||
<TextBlock Text="Sponsored content" Foreground="Black" FontSize="12"/>
|
||||
</StackPanel>
|
||||
</controls:DropShadowPanel>
|
||||
|
||||
<controls:DropShadowPanel VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="5,10" OffsetX="2" OffsetY="2">
|
||||
<StackPanel Padding="5,2,5,3" Background="Yellow" CornerRadius="5">
|
||||
<TextBlock Text="Call to action" Foreground="Black" FontSize="12"/>
|
||||
</StackPanel>
|
||||
</controls:DropShadowPanel>
|
||||
|
||||
<Grid Grid.Row="1" ColumnSpacing="10" Margin="10,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<controls:ImageEx CornerRadius="999" BorderThickness="3" BorderBrush="{ThemeResource SystemControlBackgroundChromeMediumBrush}" Background="Red"
|
||||
Width="50" Height="50" VerticalAlignment="Bottom" Margin="0,-30,0,0" PlaceholderSource="/Assets/Icons/Contact.png" PlaceholderStretch="UniformToFill"/>
|
||||
<TextBlock Text="██████████" Grid.Column="1"/>
|
||||
<TextBlock Text="██████████" Grid.Column="2"/>
|
||||
</Grid>
|
||||
|
||||
<TextBlock Margin="10,0" Grid.Row="2" MaxLines="2" TextTrimming="CharacterEllipsis" TextWrapping="WrapWholeWords" Text="██████████"/>
|
||||
</Grid>
|
||||
</Button>
|
||||
</controls:DropShadowPanel>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user