Hello,
I think I have found a strange bug when we use WhileWindowLandscape and WhileKeyboardVisible simultaneously on Android device (Work fine on preview)
I have reproduce my bug on a very small app (I have keep the same structure on my app).
So I want hide the topBar and the bottomBar when I go in landscape mode but I keep the bottomButton visible while I don’t have the keyboard visible.
So i export on my device the app and :
-
Start the app on portrait mode (topBar/bottomButton/bottomBar are visible it’s good)
-
Rotate my device (topBar/bottomBar are collapsed and bottomButton are visible it’s good)
-
Rotate again my device (topBar/bottomButton/bottomBar are visible it’s good)
-
Rotate again my device (topBar/bottomButton/bottomBar are collapsed it’s not good)
I have the bug on my 3 devices (Zte Blade / Lenovo A10-70 / Galasy S5)
(I use Windows 10)
Edit: I have set the WhileKeyboardVisible in WhileWindowLandscape/WhileWindowPortrait because if I use only WhileWindowLandscape and outside WhileKeyboardVisible(with Change and not Set) when 2 Rotate the bottomButton/bottomBar are collapsed too in portrait mode.
Edit2: I don’t know if it’s a bug too but when i use Scrollview in a dockpanel(Dock=“Fill”) and inside the scrollview I put a grid( Rows="auto, auto, 1*) and inside the grid I have TextInput / TextInput / TextView. The TextView dont take all space available in the grid. It’s because Scrollview is endless ?
<App>
<ClientPanel>
<WhileWindowLandscape>
<Set topBar.Visibility="Collapsed" />
<Set bottomBar.Visibility="Collapsed" />
<Set bottomButton.Visibility="Visible" />
<WhileKeyboardVisible>
<Change bottomButton.Visibility="Collapsed" />
</WhileKeyboardVisible>
</WhileWindowLandscape>
<WhileWindowPortrait>
<Set topBar.Visibility="Visible" />
<Set bottomBar.Visibility="Visible" />
<Set bottomButton.Visibility="Visible" />
<WhileKeyboardVisible>
<Change bottomBar.Visibility="Collapsed" />
<Change bottomButton.Visibility="Collapsed" />
</WhileKeyboardVisible>
</WhileWindowPortrait>
<Rectangle ux:Name="topBar" Height="80" Alignment="VerticalCenter" Color="Red" Dock="Top">
<DropShadow />
</Rectangle>
<ScrollView Dock="Fill" ClipToBounds="true" Background="Green">
<Grid Rows="auto, auto, 1*">
<TextInput PlaceholderText="PlaceholderText" />
<TextInput PlaceholderText="PlaceholderText2" />
<TextView PlaceholderText="PlaceholderText" />
</Grid>
</ScrollView>
<StackPanel Dock="Bottom">
<Rectangle ux:Name="bottomButton" Color="#FF9A65" Height="36" Margin="6" Width="100" CornerRadius="2"/>
<StackPanel ux:Name="bottomBar" Visibility="Visible" Height="80" Background="#152248" Alignment="VerticalCenter"/>
</StackPanel>
</ClientPanel>
</App>