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
elleye  
#1 Posted : Sunday, March 2, 2025 10:42:36 PM(UTC)
elleye

Rank: Newbie

Groups: Registered
Joined: 9/18/2021(UTC)
Posts: 4
United States

Hello All,

I have the following xaml code that I am using to display live captions in vMix. I want to replace the <DropShadowEffect BlurRadius="10" /> with a property that will provide a black background color for the live captions.

I am hoping someone here can help.


<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">
<mtl:TextBlockDesign Fill="#FFFFFFFF" FontSize="70" TextAlignment="Center" Text="Captions will appear here. Go back to Web Captioner to finish setup." Name="WebCaptionerCaptions" Width="1728" Height="200" Margin="96,784,0,100" HorizontalAlignment="Left" VerticalAlignment="Bottom" Visibility="Visible" InputMethod.IsInputMethodEnabled="True">
<mtl:TextBlockDesign.Effect>
<DropShadowEffect BlurRadius="10" />
</mtl:TextBlockDesign.Effect>

</mtl:TextBlockDesign>
</Grid>
</UserControl>

Much appreciated!

Eric
doggy  
#2 Posted : Sunday, March 2, 2025 11:16:20 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 300 times
Was thanked: 989 time(s) in 821 post(s)
Have you googled "xaml textblockdesign" ?
elleye  
#3 Posted : Monday, March 3, 2025 7:35:41 AM(UTC)
elleye

Rank: Newbie

Groups: Registered
Joined: 9/18/2021(UTC)
Posts: 4
United States

I have, but have not had any luck in figuring this out and I have an event in a few days - of course.
Eric
doggy  
#4 Posted : Monday, March 3, 2025 9:29:49 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 300 times
Was thanked: 989 time(s) in 821 post(s)
Originally Posted by: elleye Go to Quoted Post
I have, but have not had any luck in figuring this out and I have an event in a few days - of course.
Eric


of course you have ;-)

so you want a black background where the text will be is this correct?

of course in a few days and of course you searched

first find searchig for "xaml text with colored background" : https://stackoverflow.co...round-color-of-textblock

and there are more
Users browsing this topic
Guest
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.