摘要:可以在<VisualState x:Name="Snapped">下控制appbar按钮的可见,但要记得不要单独在某个页面设置,要在globalappbar.xaml里面设置。
阅读全文
摘要:<Page.BottomAppBar> <AppBar> <AppBar.Resources> <Style x:Key="MyAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}"> <Setter Property="AutomationProperties.AutomationId" Value="MyAppBarButton"
阅读全文
摘要:全局资源App.xml的ContentFontsize在APP中定义,但没有给确定的数字,这样会导致应用退出如下:<TextBlock TextWrapping="Wrap"Width="20" Height="Auto" FontSize="{StaticResourceContentFontsize}" Canvas.Top="42" Canvas.Left="60">改为:<TextBlock TextWrapping="Wrap"
阅读全文
摘要:今天把VS2012 RC版裝起來玩看看!要找把程式碼註解掉時,居然找不到像VS2010上的圖示!把游標到工具列上才知道,VS2012的圖示變了哦!快捷鍵也變了哦!註解:VS2010是(Ctrl+E,C),VS2012是(Ctrl+K, Ctrl+C)反註解:VS2010是(Ctrl+E,U),VS2012是(Ctrl+K, Ctrl+U)
阅读全文