ListView - I can't put an imagen inside an ImgenButton

// I'm using Cross Platform, So i got two projects Portable(? and Android, this code is in Portable
// I wanna put and imagen in the imagenbutton --> "BotonVerDetalle"

// Any idea?



<ListView.ItemTemplate>

                                     <Frame  CornerRadius="20" BackgroundColor="#E0F7FA" Padding="0" Margin="5,5,5,5">
                                        <StackLayout Orientation="Vertical">
                                            <Frame CornerRadius="15" BackgroundColor="#4FC3F7" Padding="0" Margin="5,5,5,5"                  

HorizontalOptions="FillAndExpand">


<Grid.RowDefinitions>

</Grid.RowDefinitions>

                                                        <Grid.ColumnDefinitions>
                                                            <ColumnDefinition Width="Auto"/>
                                                        </Grid.ColumnDefinitions>

                                                        <Frame CornerRadius="20" BackgroundColor="#007ACC" Padding="0" Grid.Column="0" Margin="5,5,0,0" >
                                                            <Label Text="{Binding RazonSocial}" Grid.Row="0" Margin="10,0,10,0"  Font="Bold,20" TextColor="White" VerticalOptions="Center"      />
                                                        </Frame>
                                                    </Grid>

                                                    <Label Text="{Binding Direccion}" Grid.Row="1" Grid.Column="0"  Margin="8,0,0,10" Font="Bold,20" />
                                                    <!--<Label Text="{Binding Codigo}" Grid.Row="2" Grid.Column="0"  Margin="8,0,0,0" Font="Bold,20" />-->
                                                </StackLayout>
                                            </Frame>
                                            <StackLayout Orientation="Horizontal"   x:Name="Item">
                                                 <Label x:Name="labelNumCodCli" Text="Nº:" Margin="10,0,0,0" Font="Bold,20" HorizontalOptions="Start" VerticalOptions="Center"/>
                                                 <Label Text="{Binding Codigo}" Margin="3,0,0,0" Font="Bold,20" HorizontalOptions="Start"  VerticalOptions="Center" />
                                                 <ImageButton x:Name="BotonVerDetalle"
                                                  Clicked="BotonVerDetalle_Clicked" 
                                                  BackgroundColor="#33ADCF" Grid.Row="3"  WidthRequest="100" 
                                                  HeightRequest="40" Margin="205,0,10,5"    CornerRadius="10"
                                                  HorizontalOptions="End"  VerticalOptions="Center">
                                                 </ImageButton>                                                              
                                            </StackLayout>
                                        </StackLayout>
                                    </Frame>
                                </ViewCell>
                            </DataTemplate>
                        </ListView.ItemTemplate>
                    </ListView>
            </StackLayout>
Tagged:
Sign In or Register to comment.