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
321actionvideo  
#1 Posted : Wednesday, November 9, 2016 10:17:52 AM(UTC)
321actionvideo

Rank: Advanced Member

Groups: Registered
Joined: 11/17/2015(UTC)
Posts: 34

Was thanked: 2 time(s) in 2 post(s)
I am wanting to show the current time on my screen. I have got it to work using the Text only xaml and {0:HH:mm tt}, but I would like to add it to program into my custom xaml.

Here is the xaml code I am using
<TextBlock x:Name="txtClock" HorizontalAlignment="top" Margin="0,0,0,0" VerticalAlignment="Center" Text="{}{0:HH:mm tt}" TextAlignment="Center" FontSize="30" FontFamily="Consolas" FontWeight="Bold" />


but it is just showing the text {0:HH:mm:ss tt} on the screen and not the actual time like I want it to.
321actionvideo  
#2 Posted : Wednesday, November 9, 2016 11:21:24 AM(UTC)
321actionvideo

Rank: Advanced Member

Groups: Registered
Joined: 11/17/2015(UTC)
Posts: 34

Was thanked: 2 time(s) in 2 post(s)
I figured it out by taking my code to the other code, so must have something to do with the

xmlns:my="clr-namespace:vMixTitleLibrary;assembly=vMixTitleLibrary"

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.