Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Vertical slider takes horizontal space as lenght?

$
0
0

Hey Guys,
I am working since yesterday with xamarin and and xaml. I have a specific layout in my mind and tried this:

!--Mobile-->
-Label Grid.Row="0" x:Name="mLabel" Text="Mobile" HorizontalTextAlignment="Center" FontSize="32"/>
-Grid Grid.Row="1">
--Grid.ColumnDefinitions>
---ColumnDefinition Width="25"/>
---ColumnDefinition Width="10
"/>
---ColumnDefinition Width="65"/>
--/Grid.ColumnDefinitions>
--Grid.RowDefinitions>
---RowDefinition Height="
" />
--/Grid.RowDefinitions>

--Slider Grid.Row="0" Grid.Column="1" x:Name="mSlider" Maximum="100" Value="75" Minimum="0" ValueChanged="mSlider_ValueChanged" Rotation="-90"/>
--Image Grid.Row="0" Grid.Column="2" VerticalOptions="Start" Source="{local:ImageResource Doja.Images.Battery.png}"/>
-/Grid>

The problem is that the slider is only as long as the 10* width (thats my guess). :/ I want it to be as big as the image (the grid cell height)

PS: Can someone explain me how to post Xaml correctly mine disappears?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>