« first day (863 days earlier)      last day (3286 days later) » 

10:15 PM
hi
is here anyone programer WP8?
 
11:02 PM
@BradleyDotNET @NETscape @JohanLarsson thanks for the advice, I'll try to revise the question
 
I love your attitude man.
 
I had to adjust it after joining StackOverflow :P
 
I'm certain that the problem is, the angular gauge is blocking the block bar from showing it's values. But I'm going to edit my question to make it clearer. One guy did post an answer and suggested using a canvas inside to wrap around the two controls.
 
do you know what Z-order is?
Your block guy can be behind
 
11:15 PM
z order is the order on the z-axis
?
 
<Grid>
    <Rectangle Fill="Yellow" />
    <Rectangle Fill="Blue" />
</Grid>
Try ^
 
okay
 
do you expect a blue or yellow rectangle?
 
blue
 
correct
 
11:16 PM
because it overlay on top of yellow
 
yeah
can that be the issue with the gauges?
 
more than likely as I don't see any obvious problem with the binding
so I'm hoping its just the layout of the two gauges
I did try to edit the layout, so that both controls are within a canvas
but I got errors stating the width, height cannot be negative, although they are set to "Auto"
 
pretty sure you want a grid
 
okay scratch the canvas then
grid instead
so my grid is already set up, just need to define the z order?
 
Margin="149,2,-89,2"
^ man wtf
 
11:21 PM
That's just how I know to set up controls, specify the margin on the screen
I know you told me to change this, but I wasn't sure how
 
Try ^
the place the grid where you want it using a toplevel grid for example
<Grid>
    <Grid.RowDefinitions>
        <RowDefinition />
        <RowDefinition />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition />
        <ColumnDefinition />
    </Grid.ColumnDefinitions>
    <Rectangle Grid.Row="0"
               Grid.Column="0"
               Fill="Yellow"
               />
    <Rectangle Grid.Row="1"
               Grid.Column="1"
               Fill="Blue"
               />
</Grid>
^ have you used grid row & columns?
 
nope not entirely familiar with them, as I said usually just use margins
could be something worth learning though
this
 
it is def worth learning
Not that much to learn either
What you see ^^ covers 66% of all there is to know about grids
play with ^
 
Getting there, just need to figure out this z order, row, collum stuff
 
z order is not very imoportatnt
you know it already
 
11:32 PM
you see now the gauge has moved from right, and vertical on screen
to middle
so this is where the row,collum comes into play
 
yep
You probably want a grid in the root of your window with two columns
the place the grid with the gauge in Grid.Column="1"
 
so where should I start, this stuff should be in there as standard?
 <Grid.RowDefinitions>
        <RowDefinition />
        <RowDefinition />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition />
        <ColumnDefinition />
    </Grid.ColumnDefinitions>
 
Then a griud in column 0 with some rows etc
 
before I specify any values for row etc?
 
how do you mean?
 
11:35 PM
so like this
 
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/> // Auto sizes to content
        <RowDefinition Height="*"/> // * uses remaining space, in tis case 33% of remaining
        <RowDefinition Height="2*"/> // this will get 66% of remaining
        <RowDefinition Height="150"/> // This will be 150 pixels high
    </Grid.RowDefinitions>
 
nope
start a new solution an play with the gist I wrote for you
or add a temp usercontrol to your current project and paste it in there
play a while and then delete the usercontrol
 
okay
temp control I think
 
You will save so much time if you learn this now
 
11:39 PM
yeah
I hope so
easier than using margins for everything I'd say
 
I use Grid for 80% of all positioning
Stackpanel for 10%
Then dockpanel & wrappanel & Canvas only sometimes
 
so I can just replace the rectangles with the gauges and play with that
 
yeasier to use the rectangles
they will show you very clearly what is happening when you change things
 
11:42 PM
ya will start with rectangles first
really I need to figure out how to move the blue one, to top right
 
<Rectangle Grid.Row="0" <- can you guess what this does?
           Grid.Column="0"
           Fill="Yellow"
           />
 
put the yellow in top left of user control
?
grid 0 collum 0
is what that implies
at least in my head
 
you are correct
 
aha!
 <Rectangle Grid.Row="0"
               Grid.Column="1"
               Fill="Blue"
               />
 
notice how nice they work when you resize the window?
 
11:47 PM
okay so this moves my gauge to the top right, but its still vertical, needs to be horizontal
what property do you need to edit in that instance?
 
MaxAngle="0"
MinAngle="-180"
That is to be expected given ^
You probably want:
MaxAngle="-90"
MinAngle="-270"
The API for the gauges is not supernice
 
oh yeah
because its a full circle
okay this still squashes the control a bit, what is the procedure for resizing the control with a grid? Can I just drag the corner of the control's box as normal
that is actually a way easier method
:D
but the gauge numbers are a bit squashed together
 

« first day (863 days earlier)      last day (3286 days later) »