Can't control ProgressBar Height/Thickness
Alright here's my code
Here's what it looks like in Blend
http://i.imgur.com/GfcqmMc.png
Here's what it looks like in Unity
http://i.imgur.com/adSy6YR.png
Code: Select all
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" Width="800" Height="600" Background="#2F2F2F">
<ProgressBar
d:Comment1="These values don't need to be set for blend to display what I want"
d:Comment2="They're included to show what I have tried setting"
Margin="0 0 0 0"
Height="700"
Width="Auto"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
VerticalContentAlignment="Stretch"
HorizontalContentAlignment="Stretch"
BorderThickness="0"
d:Comment3="Just some other settings"
Background="Black"
Foreground="Green"
Value="0.5"
Maximum="1"/>
</Grid>
http://i.imgur.com/GfcqmMc.png
Here's what it looks like in Unity
http://i.imgur.com/adSy6YR.png
Re: Can't control ProgressBar Height/Thickness
I was able to work around this by setting its height to 1 and wrapping it in a viewbox.
-
sfernandez
Site Admin
- Posts: 2984
- Joined:
Re: Can't control ProgressBar Height/Thickness
The default template we use in Unity has a fixed height that can be controlled by modifying the MinHeight property. Maybe we have to change this to be more intuitive.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 60 guests