Rank: Newbie
Groups: Registered
Joined: 7/13/2020(UTC) Posts: 2
Thanks: 2 times
|
Originally Posted by: doggy Quote: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>
How can I get this code to have the bar go all the way across when it receives a max value of 20??? Right now it takes about 850 to get it all the way across, what am I not doing right?
|