Rank: Administration
Groups: Administrators
Joined: 1/13/2010(UTC) Posts: 5,211 Location: Gold Coast, Australia Was thanked: 4301 time(s) in 1523 post(s)
|
Updated October 2012IntroductionXAML is the format vMix uses for the Title feature. If you are familiar with XML and XAML, the following instructions maybe useful to you if you would like to build your own vMix compatible titles. ExampleThe following is an example of an XAML file that can be used in vMix as an overlay. http://www.vmix.com.au/d...load/vMixXamlExample.zipHow to use this example: Open in vMixExtract the zip file to an empty folder and from vMix go to: 1. Add New Input 2. Select the Xaml tab. 3. Click Browse 4. Browse to the empty folder created above and browse through the two vMixXamlExample folders until MainControl.xaml appears. 5. Click Open 6. Click OK. 7. The overlay is now ready to use. Edit text in vMixvMix includes the ability to edit any text within the overlay live. To do this: 1. Right click the Input Preview and select Text Editor from the menu. 2. Change the text to anything you like. Font, colour and size can also be changed within this window. 3. The updated text should immediately appear in vMix. Edit XAML in Expression Blend 4This example can be edited from Microsoft Expression Blend 4. To do this open up Microsoft Expression Blend 4 and browse to the vMixXamlExample folder and open up the vMixXamlExample file. This example can also be edited from Visual Basic 2010 Express which is free from the Microsoft web site.
|
2 users thanked admin for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 4/28/2010(UTC) Posts: 6 Location: Timisoara
Thanks: 1 times
|
Is there a way to use a font of your own choice (by embedding it in the application?) I can't seem to get it working. It keeps displaying the default font (even though the custom font is installed in Windows too).
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/21/2010(UTC) Posts: 111
Thanks: 46 times Was thanked: 2 time(s) in 2 post(s)
|
EASY TO works and achieves the desired Thank you.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 10/31/2010(UTC) Posts: 6 Location: Brisbane
|
FYI.
It wouldn't work in 720 x 576, seemed the gfx was offset, so I changed to 1920 x 1080 and could see the message and background...
nice work...
After playing with it a while..
Lemme Rephrase... AWESOME!
PS: I changed the font and it works for me.
<TextBlock x:Name="textBlock" Height="37.5" TextWrapping="Wrap" Text="Welcome to vMix!" Foreground="White"
FontFamily="Blackoak Std" FontSize="20" FontWeight="Bold" Canvas.Left="16.5" Canvas.Top="18.5" Width="539" RenderTransformOrigin="0.5,0.5">
Update: Seems some fonts wont load... One that had long version text didnt seem to work. But most did, such as TrueType Outlines.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 10/13/2010(UTC) Posts: 7
Thanks: 3 times
|
This is great!!! Thank you!!
Just a question... is it possible to build a news crawl and a digital watch in XAML?
Thank you in advance!!!
Andrea
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/21/2011(UTC) Posts: 69 Location: Brazil
Was thanked: 4 time(s) in 4 post(s)
|
Martin, You can play animations created with Microsoft Expression Blend 4? Its you post an example?
tranks
Mauro
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/16/2012(UTC) Posts: 3 Location: venezuela
|
martin one can create one gif animation in a video or a headband or a logo ..?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/10/2012(UTC) Posts: 36
Thanks: 9 times
|
i tried to edit the xaml with vb.net 2010 but i have got and error on the stroke tickness.
is there a way to avoid the border around logos?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/3/2014(UTC) Posts: 58 Location: UK
Thanks: 19 times Was thanked: 4 time(s) in 1 post(s)
|
Hi I would like to cleanly clip text if the user 'over inputs'
ClipToBounds="True"
i.e. <mtl:TextBlockDesign FontStyle="Normal" FontWeight="Bold" FontFamily="Calibri" Fill="#FFFFFFFF" FontSize="100" Text="Text" Name="TCSld1" Width="874.567441363378" Height="122.069999694824" Margin="1,-14,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Opacity="100" Visibility="Visible" ClipToBounds="True" InputMethod.IsInputMethodEnabled="True" /> However this does not work :(
How can i modify to xaml to ensure text does not wrap on to additional lines or go ... when it over extends a defined area but rather just clip the text
Thanks
Keith
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,222 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
TextTrimming="CharacterEllipsis" when using standard TextBlock
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/22/2013(UTC) Posts: 92 Location: Rochester, NY Was thanked: 13 time(s) in 9 post(s)
|
Something else you can try if you don't want to clip the text . . . My favorite trick for scoreboard type applications where team names and things vary in length is to wrap your textblock in a viewbox: Code:
<Viewbox Stretch="Uniform" Height="55" Canvas.Left="183" Width="252" Canvas.Top="13" >
<TextBlock Text="ANDERSON" FontWeight="Bold" FontFamily="Arial" Foreground="Black" x:Name="TeamA"/>
</Viewbox>
Obviously there's a limit . . . if the text gets way too long, the resulting text will be way too small. -Brian TESN.US
|
2 users thanked tesn for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/3/2014(UTC) Posts: 58 Location: UK
Thanks: 19 times Was thanked: 4 time(s) in 1 post(s)
|
doddgy & tesn thanks for the replies https://msdn.microsoft.c...ttrimming(v=vs.100).aspxTextTrimming="None" is what i want! So what i have done is take this line: <mtl:TextBlockDesign Fill="#FFFFFF00" FontSize="164" Text="Text" Name="Text2" Width="758.961038961039" Height="188.58332824707" Margin="142.987012987013,375.714285714286,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="Visible" InputMethod.IsInputMethodEnabled="True" /> and make it into: <TextBlock Text="Text" FontWeight="Bold" FontSize="164" TextTrimming="None" Name="Text1" Width="905.72972972973" Height="188.58332824707" Margin="10,10,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="Visible" InputMethod.IsInputMethodEnabled="True" /> What i now don't understand is why does everything work when i am not using the TextDlockDesign type from the vMix class? Why does the title editor even use this class why not just use native TextBlock ?? (I may not have used class in the right context!) Will the TextBlock animate i wonder - this is my next thing to test out :) Thanks folks
|
|
|
|
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close