저는 Windows Universal Project (UWP) 프로젝트에서 작업 중입니다.이 프로젝트에서 맨 아래 Appbar에 관한 발행이 있습니다.하단 Appbar의 Appbar 버튼 크기 줄이기 Windows Universal App 모바일보기
저는 밑바닥 Appbar를 디자인하고 7 Appbar Button을 추가했습니다. 바탕 화면 및 도표보기에는 올바르게 표시되지만 모바일보기에서는 제대로 표시되지 않습니다. 모바일 및 데스크톱보기의 하단 Appbar 사진을 캡처했습니다. 친절하게도 모바일보기 용 솔루션을 제공합니다. 어떻게 모든 7 개의 appbar 버튼을 관리합니까? appbar 버튼 크기를 줄이는 방법은 무엇입니까? 모바일보기에서 적절하게 표시됩니다.
코드 :
<Page.BottomAppBar>
<AppBar x:Name="applicationbar" Background="#FFE45427">
<StackPanel x:Name="bottombar" Orientation="Horizontal" HorizontalAlignment="Center">
<AppBarButton Label="HOME" x:Name="appbarhome" Click="appbarhome_Click">
<AppBarButton.Icon>
<BitmapIcon UriSource="Images/DashboardImages/product-default-small.png" />
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Label="Sales" x:Name="appbarsales" Click="appbarsales_Click">
<AppBarButton.Icon>
<BitmapIcon UriSource="Images/DashboardImages/menu_sales.png"/>
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Label="Product" x:Name="appbarproduct" Click="appbarproduct_Click">
<AppBarButton.Icon>
<BitmapIcon UriSource="Images/DashboardImages/menu_product.png" />
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Label="POS" x:Name="appbarpos" Click="appbarpos_Click">
<AppBarButton.Icon>
<BitmapIcon UriSource="Images/DashboardImages/menu_pos.png"/>
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Label="Customer" x:Name="customer" Click="customer_Click">
<AppBarButton.Icon>
<BitmapIcon UriSource="Images/DashboardImages/menu_customers.png"/>
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Label="About US" x:Name="aboutUs" Click="aboutUs_Click">
<AppBarButton.Icon>
<BitmapIcon UriSource="Images/DashboardImages/menu_aboutus.png"/>
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Label="Logout" x:Name="mobile_logout_commandbar" Click="mobile_logout_commandbar_Click">
<AppBarButton.Icon>
<BitmapIcon UriSource="Images/DashboardImages/menu_logout.png"/>
</AppBarButton.Icon>
</AppBarButton>
</StackPanel>
</AppBar>
</Page.BottomAppBar>
이미지 :
크기가 작을 때 크기 변경 내용을 보려면 [SecondaryCommands] (https://msdn.microsoft.com/library/windows/apps/dn279434) 메뉴의 일부 항목을 입력해야합니다. 버튼의 폭을 줄이면 탭하는 것이 더 어려워지고이 문제의 해결책은 아닙니다. –