Skip to content

Commit

Permalink
Improve Lock/Unlock page UX
Browse files Browse the repository at this point in the history
  • Loading branch information
gus33000 committed Jun 23, 2024
1 parent d5b34cd commit 0f10eb6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
23 changes: 12 additions & 11 deletions WOA Device Manager/Pages/LockBootloaderPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,18 @@
</StackPanel>
</StackPanel>

<StackPanel x:Name="UnknownStatePanel" Visibility="{x:Bind device.IsUnknownLockState}">
<InfoBar x:Name="UnknownLockState"
IsOpen="{x:Bind device.IsUnknownLockState}"
IsClosable="False"
Severity="Error"
Title="Cannot check device lock state"
Message="Your phone is not in a mode currently that allows WOA Device Manager to verify its lock status. Reboot your device into Android or Bootloader or FastBoot in order to check its status!">
<InfoBar.ActionButton>
<Button Content="Refresh" Click="RefreshButton_Click" />
</InfoBar.ActionButton>
</InfoBar>
<StackPanel x:Name="UnknownLockState" Padding="32" Spacing="32" CornerRadius="4" BorderThickness="1" BorderBrush="#4C8E8E8E" Background="{ThemeResource AcrylicBackgroundFillColorDefaultBrush}" Visibility="{x:Bind device.IsUnknownLockState}">
<TextBlock Text="Cannot check device lock state" FontSize="24" FontWeight="SemiBold" HorizontalAlignment="Left" />

<RichTextBlock>
<Paragraph>
<Run Text="Your phone is not in a mode currently that allows WOA Device Manager to verify its lock status. Reboot your device into Android or Bootloader or FastBoot in order to check its status!"/>
</Paragraph>
</RichTextBlock>

<StackPanel Orientation="Horizontal" Width="Auto" Height="Auto" HorizontalAlignment="Right" VerticalAlignment="Bottom">
<Button Content="Refresh" Click="RefreshButton_Click" />
</StackPanel>
</StackPanel>
</StackPanel>
</ScrollViewer>
Expand Down
23 changes: 12 additions & 11 deletions WOA Device Manager/Pages/UnlockBootloaderPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,18 @@
</StackPanel>
</StackPanel>

<StackPanel x:Name="UnknownStatePanel" Visibility="{x:Bind device.IsUnknownLockState}">
<InfoBar x:Name="UnknownUnlockState"
IsOpen="{x:Bind device.IsUnknownLockState}"
IsClosable="False"
Severity="Error"
Title="Cannot check device lock state"
Message="Your phone is not in a mode currently that allows WOA Device Manager to verify its lock status. Reboot your device into Android or Bootloader or FastBoot in order to check its status!">
<InfoBar.ActionButton>
<Button Content="Refresh" Click="RefreshButton_Click" />
</InfoBar.ActionButton>
</InfoBar>
<StackPanel x:Name="UnknownUnlockState" Padding="32" Spacing="32" CornerRadius="4" BorderThickness="1" BorderBrush="#4C8E8E8E" Background="{ThemeResource AcrylicBackgroundFillColorDefaultBrush}" Visibility="{x:Bind device.IsUnknownLockState}">
<TextBlock Text="Cannot check device unlock state" FontSize="24" FontWeight="SemiBold" HorizontalAlignment="Left" />

<RichTextBlock>
<Paragraph>
<Run Text="Your phone is not in a mode currently that allows WOA Device Manager to verify its unlock status. Reboot your device into Android or Bootloader or FastBoot in order to check its status!"/>
</Paragraph>
</RichTextBlock>

<StackPanel Orientation="Horizontal" Width="Auto" Height="Auto" HorizontalAlignment="Right" VerticalAlignment="Bottom">
<Button Content="Refresh" Click="RefreshButton_Click" />
</StackPanel>
</StackPanel>
</StackPanel>
</ScrollViewer>
Expand Down

0 comments on commit 0f10eb6

Please sign in to comment.