co_nl_on
Topic Author
Posts: 11
Joined: 24 Jan 2015, 20:29

Can't control ProgressBar Height/Thickness

08 Feb 2015, 06:02

Alright here's my code
<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>
Here's what it looks like in Blend
http://i.imgur.com/GfcqmMc.png

Here's what it looks like in Unity :cry:
http://i.imgur.com/adSy6YR.png
 
co_nl_on
Topic Author
Posts: 11
Joined: 24 Jan 2015, 20:29

Re: Can't control ProgressBar Height/Thickness

08 Feb 2015, 23:49

I was able to work around this by setting its height to 1 and wrapping it in a viewbox.
 
User avatar
sfernandez
Site Admin
Posts: 1970
Joined: 22 Dec 2011, 19:20

Re: Can't control ProgressBar Height/Thickness

09 Feb 2015, 14:14

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: Google [Bot] and 4 guests