English 中文(简体)
视窗8
原标题:Windows 8 bottom app bar

我曾试图获得<代码>。 应用条码,在<条码>上实施(<条码>C#/XAML),但不知道何时开始。 I ve Trial using <Application Bar/> tag and I have a 未找到的类型:误差。

网上没有帮助,有人能否用答案更新这一职位,以便它也能提到其他方案人员?

仅有一个<条码>Java 字典样本,这些样本非常有用。

最佳回答

这一工作应当:

<AppBar
    VerticalAlignment="Bottom">
    <Button
        AutomationProperties.Name="Play"
        Style="{StaticResource PlayAppBarButtonStyle}"
        Command="{Binding PlayCommand}" />
</AppBar>

- 您将把它放在你网页的布局内。

* E/CN.15/2009/1。

注:根据文件,请在Page.BottomAppBar,尽管至少在Windows 8 消费者审查中,但至少在Windows 8 消费者审查中,它在任何Grid中都做了罚款,如果你在Pagetttn与页控制紧密结合的话,那是方便的。

* E/CN.15/2009/1。 2, response from MSFT:

The recommended approach is to use the Page.BottomAppBar/TopAppBar properties.

  • There are known hit-testing issues in the Consumer Preview if AppBars are added without using these properties
  • The AppBars do not use the proper animations if they are added without using these properties
  • If AppBars are added as children of arbitrary elements then it s easier for multiple controls to attempt to create/modify AppBars, resulting in an inconsistent user experience

* E/CN.15/2009/1。 3

WinRT XAML Toolkit可在任何地方使用,根据Vertical/Horizontal-Alignment计算得出的数值可将其其他内容排在首位,并具有CanOpen财产,使其无法开放。

问题回答
<Page.TopAppBar>
    <AppBar>
        <TextBlock x:Name="TextBlock1" Text="Sample Text" Margin="0,0,0,0" Height="Auto" VerticalAlignment="Center" HorizontalAlignment="Left"/>
    </AppBar>
</Page.TopAppBar>




相关问题
How to bind a TabControl to an ObservableCollection in XAML

I have the following line of code in my code-behind class. TabControl.ItemsSource = ((MainWindowViewModel)DataContext).TabItemViewModels; I would like to move this to the XAML file. In brief, ...

Bind to ancestor of adorned element

Here is the case: <DataTemplate x:Key="ItemTemplate" DataType="local:RoutedCustomCommand"> <Button Command="{Binding}" Content="{Binding Text}" ...

FlowDocument Force a PageBreak (BreakPageBefore)

I m using C# to create a FlowDocument and fill it with data within a table. Example: FlowDocument flowDoc = new FlowDocument(); Table table1 = new Table(); flowDoc.Blocks.Add(table1); table1....

Editing a xaml icons or images

Is it possible to edit a xaml icons or images in the expression design or using other tools? Is it possible to import a xaml images (that e.g you have exported) in the expression designer for editing?...

WPF TreeView binding through XAML

So I have a class structure like this Store Owner Cashier List of Products Product Name Price List of Vendors Company Name Contact Name So there are 4 ...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签