Rank: Advanced Member
Groups: Registered
Joined: 7/19/2017(UTC) Posts: 45 Thanks: 11 times Was thanked: 14 time(s) in 7 post(s)
|
I solved it! I used a method Doggy described here: https://forums.vmix.com/...ts&m=33878#post33878I didn't realise also that if you put in HEX values instead of colour names it can still use it as a valid input. Here is the result: Lastly, feel free to use this as a template, as a thank you: https://www.dropbox.com/...ScoreboardBase.xaml?dl=0Enjoy. :) PS: If you don't want to download it, the code is below. Code:<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mtl="clr-namespace:vMixTitleLibrary;assembly=vMixTitleLibrary"
x:Class="MainWindow"
x:Name="Window"
Width="1920" Height="1080">
<Grid x:Name="LayoutRoot">
<TextBlock x:Name="HOME_COLOUR" HorizontalAlignment="Left" Height="16" Margin="-168,88,0,0" TextWrapping="Wrap" Text="#ff0066" VerticalAlignment="Top" Width="58.667" Foreground="White"/>
<TextBlock x:Name="HOME_COLOUR_DARK" HorizontalAlignment="Left" Height="16" Margin="-168,108,0,0" TextWrapping="Wrap" Text="#cc0052" VerticalAlignment="Top" Width="58.667" Foreground="White"/>
<TextBlock x:Name="AWAY_COLOUR" HorizontalAlignment="Left" Height="16" Margin="-168,128,0,0" TextWrapping="Wrap" Text="#0066ff" VerticalAlignment="Top" Width="58.667" Foreground="White"/>
<TextBlock x:Name="AWAY_COLOUR_DARK" HorizontalAlignment="Left" Height="16" Margin="-168,148,0,0" TextWrapping="Wrap" Text="#0052cc" VerticalAlignment="Top" Width="58.667" Foreground="White"/>
<Rectangle Fill="#FF212121" HorizontalAlignment="Left" Height="70" Margin="96,54,0,0" Stroke="Black" VerticalAlignment="Top" Width="1040" Panel.ZIndex="0"/>
<Rectangle Fill="{Binding Text, ElementName=HOME_COLOUR}" HorizontalAlignment="Left" Width="290" Height="70" Margin="96,54,0,0" Stroke="Black" VerticalAlignment="Top" Panel.ZIndex="1" StrokeThickness="0"/>
<Rectangle Fill="{Binding Text, ElementName=HOME_COLOUR_DARK}" HorizontalAlignment="Left" Width="100" Height="70" Margin="386,54,0,0" Stroke="Black" VerticalAlignment="Top" Panel.ZIndex="1" StrokeThickness="0"/>
<Rectangle Fill="{Binding Text, ElementName=AWAY_COLOUR}" HorizontalAlignment="Left" Width="290" Height="70" Margin="486,54,0,0" Stroke="Black" VerticalAlignment="Top" Panel.ZIndex="1" StrokeThickness="0"/>
<Rectangle Fill="{Binding Text, ElementName=AWAY_COLOUR_DARK}" HorizontalAlignment="Left" Width="100" Height="70" Margin="776,54,0,0" Stroke="Black" VerticalAlignment="Top" Panel.ZIndex="1" StrokeThickness="0"/>
<mtl:TextBlockDesign x:Name="homeTeam" Text="HOME TEAM" Margin="116,70,0,970" Width="269" Height="70" HorizontalAlignment="Left" Fill="White" FontSize="36" VerticalAlignment="Center" FontWeight="Bold" Panel.ZIndex="2"/>
<mtl:TextBlockDesign x:Name="awayTeam" Text="AWAY TEAM" Margin="506,70,0,970" Width="269" Height="70" HorizontalAlignment="Left" Fill="White" FontSize="36" VerticalAlignment="Center" FontWeight="Bold" Panel.ZIndex="2"/>
<mtl:TextBlockDesign x:Name="homeScore" Text="0" Margin="396,54,1440,955" Width="80" Height="70" HorizontalAlignment="Center" Fill="White" FontSize="60" VerticalAlignment="Center" FontWeight="Bold" TextAlignment="Center" Panel.ZIndex="2"/>
<mtl:TextBlockDesign x:Name="awayScore" Text="0" Margin="786,54,1050,955" Width="80" Height="70" HorizontalAlignment="Center" Fill="White" FontSize="60" VerticalAlignment="Center" FontWeight="Bold" TextAlignment="Center" Panel.ZIndex="2"/>
<mtl:TextBlockDesign x:Name="period" Text="1st" Margin="876,54,910,955" Width="130" Height="70" HorizontalAlignment="Center" Fill="White" FontSize="32" VerticalAlignment="Center" TextAlignment="Center" Panel.ZIndex="2"/>
<mtl:TextBlockDesign x:Name="gameTime" Text="20:00" Margin="1006,54,785,955" Width="110" Height="70" HorizontalAlignment="Center" Fill="White" FontSize="32" VerticalAlignment="Center" TextAlignment="Center" Panel.ZIndex="2"/>
</Grid>
</UserControl>
File Attachment(s): ScoreboardBase.xaml (4kb) downloaded 45 time(s).You cannot view/download attachments. Try to login or register.
|