Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,209 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Quote:I've been watching Datasources videos on VMIx's channel but didn't see anything about XAML it's the same as with GT titles , you link your datasource items to the textboxes in your title Say you have votes.JPG (34kb) downloaded 4 time(s).link the data from the column header with the same name ( in this case) in the title (first row is column names setting ) click on another row in the datasource to see the data in the title change for another city Change data in the original source and you will also see the data update in the datasource table ( which you can keep visible) , if there is a change in the city that is currently displayed in the title you will see it update there also here is an example with the same naming in the textblocks Code:<UserControl Width="1920" Height="1080" Panel.ZIndex="500" InputMethod.IsInputMethodEnabled="True" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:mtl="clr-namespace:vMixTitleLibrary;assembly=vMixTitleLibrary">
<Grid InputMethod.IsInputMethodEnabled="True">
<Rectangle Fill="#FF1414CF" Stroke="#FF000000" Width="{Binding Path=Text, ElementName=Votes1}" Height="50" Margin="320,350,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" InputMethod.IsInputMethodEnabled="True" />
<TextBlock Text="500" FontWeight="Bold" FontSize="36" Foreground="#FFA0E242" TextWrapping="Wrap" Name="Votes1" Width="86.333" Height="55.621" Margin="1195,344.379,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="-4.931,4.462" InputMethod.IsInputMethodEnabled="True" />
<Rectangle Fill="#FF1414CF" Stroke="#FF000000" Width="{Binding Path=Text, ElementName=Votes2}" Height="50" Margin="320,430,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" InputMethod.IsInputMethodEnabled="True" />
<TextBlock Text="300" FontWeight="Bold" FontSize="36" Foreground="#FFA0E242" TextWrapping="Wrap" Name="Votes2" Width="86.333" Height="55.621" Margin="1195,424.379,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="-4.931,4.462" InputMethod.IsInputMethodEnabled="True" />
<Rectangle Fill="#FF1414CF" Stroke="#FF000000" Width="{Binding Path=Text, ElementName=Votes3}" Height="50" Margin="320,510,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" InputMethod.IsInputMethodEnabled="True" />
<TextBlock Text="250" FontWeight="Bold" FontSize="36" Foreground="#FFA0E242" TextWrapping="Wrap" Name="Votes3" Width="86.333" Height="55.621" Margin="1195,504.379,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="-4.931,4.462" InputMethod.IsInputMethodEnabled="True" />
<TextBlock Text="Candidate1" FontSize="36" Foreground="#FFF9EE03" TextWrapping="Wrap" Name="Candidate1" Width="275" Height="50" Margin="40,350,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" InputMethod.IsInputMethodEnabled="True" />
<TextBlock Text="Candidate3" FontSize="36" Foreground="#FFF9EE03" TextWrapping="Wrap" Name="Candidate2" Width="275" Height="50" Margin="40,430,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" InputMethod.IsInputMethodEnabled="True" />
<TextBlock Text="Candidate3" FontSize="36" Foreground="#FFF9EE03" TextWrapping="Wrap" Name="Candidate3" Width="275" Height="50" Margin="40,510,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" InputMethod.IsInputMethodEnabled="True" />
<Image Stretch="Fill" Width="1920" Height="1080" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="0" InputMethod.IsInputMethodEnabled="True" />
<mtl:TextBlockDesign FontWeight="Bold" Fill="#FFFFFF00" FontSize="72" TextAlignment="Center" Text="City" Name="City" Width="480.595399188092" Height="82.7933349609375" Margin="690.703653585927,150.297699594046,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="Visible" InputMethod.IsInputMethodEnabled="True" />
</Grid>
</UserControl>
save this as a .xaml file and load into vMix and link to data source you can do small edits with the 'legacy Title designer' note that the textblock names are the same as used in the sheet headers ( not needed but makes linking easier (auto) ) mind you the color bars are rectangles which you can not design there but you can copy them with a regular text editor and move their position or rename them with the designer The key to the bar changing according the value of the votes is '{Binding Path=Text, ElementName=Votes1}' which you will have to edit in manually if you add lines start with that
|
1 user thanked doggy for this useful post.
|
|