logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
slxxi  
#1 Posted : Tuesday, August 15, 2017 4:55:17 PM(UTC)
slxxi

Rank: Advanced Member

Groups: Registered
Joined: 8/15/2017(UTC)
Posts: 36
Location: Berlin

Was thanked: 1 time(s) in 1 post(s)
Hi,
I'm trying to visualize a Lower third where the Complete Name and the Score should appear in one row, directly one after another.

My Datasource is a XML-File where Firstname, Lastname and the Score are separated.
So currently i have to create 3 Textfields, that get 3 separate Values assigned. ( See attached Image)
I have no control of the length of the Names, so the 3 fields are split far from another to make sure even the longest names are displaed.

Is it possible to combine multiple Columns in advance and assign the new "Textblock" to only one Textfield.
For Example:

Firstname: John
Lastname: Doe
Score: 33.000

becomes new Textblock: "John Doe - 33.000" which is assigned to one Textfield


Or is there a Way to make the width of the Textfields dynamic, so that Textfield1 is adjusted to the total width of the Firstname, then the Textfield2 is positioned directly after it, etc.


Thanks in advance
slxxi attached the following image(s):
vmix-titles.jpg (76kb) downloaded 18 time(s).

You cannot view/download attachments. Try to login or register.
doggy  
#2 Posted : Tuesday, August 15, 2017 5:29:19 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,223
Belgium
Location: Belgium

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Hi

Just my opinion but personally when it comes to lists i prefer them column like , looks neater especially like a score lists when displayed

i had the some problem when names didn't fit in a texblock and dind't like the standard way of cutting of part of the text like with dots etc but there is a trick that works nicely for the occasional text (name) that is a little longer than what woul normally fit

wrap the textblock inside a viewbox in the xaml code , it makes adapt the font in size so the full name still fits inside the textblock for fixed length

Code:

' example out one of my titles
<Viewbox StretchDirection="DownOnly" Width="487" HorizontalAlignment="Left" Margin="127,23.5,0,21.5" Height="70" >
          <TextBlock x:Name="Handler"  Text="" Foreground="#FFFFFDFD" FontFamily="Novecento sans wide DemiBold" FontSize="53.333"  />
</Viewbox>
slxxi  
#3 Posted : Wednesday, August 16, 2017 4:37:22 AM(UTC)
slxxi

Rank: Advanced Member

Groups: Registered
Joined: 8/15/2017(UTC)
Posts: 36
Location: Berlin

Was thanked: 1 time(s) in 1 post(s)
Thanks for the Workaround, but i really need it the way i described it.
Everey Textfield has to the spezified font-size.

The above image might be a little misleading.
Its not going to be a scoreboard, but more a Resultlist on a Stadium LED-Billboard.
In the End the complete image will be mapped to pieces of 10m each, so the combined Textfield that i want to have will be centered on a speficic tile.

Any further hint is appreciated
slxxi attached the following image(s):
stadium.jpg (57kb) downloaded 10 time(s).

You cannot view/download attachments. Try to login or register.
doggy  
#4 Posted : Wednesday, August 16, 2017 5:44:54 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,223
Belgium
Location: Belgium

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Probably better of then creating a dedicated title with data binding and combining the data etc reading directly from the data file ( not through datasources) using Blend or Visual Studio, will need some coding though

Googeling on XAML coding might be helpfull
ex Concatenate strings instead of using a stack of TextBlocks
Jehar  
#5 Posted : Thursday, August 17, 2017 11:41:22 AM(UTC)
Jehar

Rank: Newbie

Groups: Registered
Joined: 1/4/2014(UTC)
Posts: 3

Thanks: 1 times
To add to doggy's suggestion:

Whenever I'm bringing in data from a google sheet/csv, I'll generally set up a cell that combines multiple cells with my preferred format and delimiter. This populates using the raw data cells, so it's still dynamic in that respect. If you have the ability to control how your XML is generated, I'd look into adding a value that combines the strings as you described.
slxxi  
#6 Posted : Thursday, August 17, 2017 1:23:01 PM(UTC)
slxxi

Rank: Advanced Member

Groups: Registered
Joined: 8/15/2017(UTC)
Posts: 36
Location: Berlin

Was thanked: 1 time(s) in 1 post(s)
Sadly the xml is provided by a 3rd party, so i can't really cotrol it.
I'm now going tu use an "extenal Controller" that grabs the xml, combines the fields and sets the Textfield directly via the API.
But thanks for your suggestions
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.