How to redraw a grid witouth the navigation bar
Hi all. I have a problem to redraw the buttons when there are present the navigation bar on the bottom of the screen.
I tried to solve this problem with the event LayoutChanged="pannello_LayoutChanged" where 'pannello_LayoutChanged' is a method that redraw the canvas but not the buttons:
private void pannello_LayoutChanged(object sender, EventArgs e)
{
Supporto supporto = new Supporto();
supporto.Set_Clear(true);
canvasView.InvalidateSurface();
}
My need is to redraw the Buttons when the user cancels the bar below of navigation.
below the XAML.
Thanks in advanced for any reply
<xct:TabView >
<xct:TabViewItem Text="Grafici" BackgroundColor="White" HeightRequest="35" TextColorSelected="Red">
<xct:TabViewItem.Content>
<StackLayout Margin="0,0,0,0" >
<skia:SKCanvasView x:Name="canvasView" BackgroundColor="White" PaintSurface="canvasView_PaintSurface" HeightRequest="920" IgnorePixelScaling="False"/>
<Grid x:Name="pannello" IsVisible="False" LayoutChanged="pannello_LayoutChanged" >
<Grid.RowDefinitions>
<RowDefinition>
</RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Button x:Name="recasp1" Text="Rec.Asp" Clicked="Button_Clicked_6" Grid.Row="0" Grid.Column="0"/>
<Button x:Name="buttopiu1" Text="+" Clicked="Button_Clicked_8" Grid.Row="0" Grid.Column="3"/>
<Button x:Name="buttomeno1" Text="-" Clicked="Button_Clicked_1" Grid.Row="0" Grid.Column="2"/>
<Button x:Name="Button_g" Text="+g" Clicked="Button_g_Clicked" Grid.Row="0" Grid.Column="5"/>
<Button x:Name="Button_j" Text="J" Clicked="Button_j_Clicked" Grid.Row="1" Grid.Column="0"/>
<Button x:Name="Button_A" Text="A" Clicked="Button_A_Clicked" Grid.Row="0" Grid.Column="7"/>
<Button x:Name="Button_zero" Text="-g" Clicked="Button_zero_Clicked" Grid.Row="0" Grid.Column="6"/>
<Button x:Name="Button_T" Text="T" Clicked="Button_T_Clicked" Grid.Row="1" Grid.Column="2"/>
<Button x:Name="Button_f" Text="f" Clicked="Button_f_Clicked" Grid.Row="1" Grid.Column="3"/>
<Button x:Name="Button_m" Text="m" Clicked="Button_meno_Clicked" Grid.Row="1" Grid.Column="1"/>
<Button x:Name="Button_d" Text="d" Clicked="Button_d_Clicked" Grid.Row="1" Grid.Column="5"/>
<Button x:Name="Button_r" Text="r" Clicked="Button_r_Clicked" Grid.Row="1" Grid.Column="6"/>
<Button x:Name="buttopiup" Text=">>" Pressed="buttopiupiu_Pressed" Released="buttopiupiu_Released" Grid.Row="0" Grid.Column="4"/>
<Button x:Name="buttomenom" Text="<<" Pressed="buttomenomeno_Pressed" Released="buttomenomeno_Released" Grid.Row="0" Grid.Column="1"/>
<Button x:Name="Button_spc" Text="Scegli" Clicked="Button_spc_Clicked" Grid.Row="1" Grid.Column="4"/>
<Button x:Name="Home" Text="Home" Clicked="Button_Clicked_4" Grid.Row="1" Grid.Column="7"/>
</Grid>