小编use*_*763的帖子

如何在Windows 8中设置自定义应用栏按钮图标

我想设置我下载的自己的海关应用栏图标.如何设置这不起作用

<AppBarButton x:Name="save" Click="save_Click" Label="Save" Icon="Assets/icon/1.png" />
Run Code Online (Sandbox Code Playgroud)

c# xaml winrt-xaml windows-8.1

11
推荐指数
1
解决办法
5932
查看次数

在Windows 8中使用c#设置菜单弹出窗口背景颜色

我想用c#设置菜单弹出窗口背景,因为我在运行时创建弹出窗口我怎么能这样做我知道这个用xaml像这样

<Flyout.FlyoutPresenterStyle>
            <Style TargetType="FlyoutPresenter">
                <Setter Property="ScrollViewer.ZoomMode" Value="Enabled"/>
                <Setter Property="Background" Value="Black"/>
                <Setter Property="BorderBrush" Value="Gray"/>
                <Setter Property="BorderThickness" Value="5"/>
                <Setter Property="MinHeight" Value="300"/>
                <Setter Property="MinWidth" Value="300"/>
            </Style>
        </Flyout.FlyoutPresenterStyle>
Run Code Online (Sandbox Code Playgroud)

如何使用c#实现这一目标?

c# xaml windows-8.1

7
推荐指数
1
解决办法
4431
查看次数

如何在Windows 8.1的metro应用程序中使用c#以编程方式更改字体样式和字体粗细

我想在我的代码中使用c#更改FontStyle和FontWeight.

我试过这个:

textblock.FontStyle =FontStyle.Normal 
Run Code Online (Sandbox Code Playgroud)

textblock.FontWeight =FontWeight.Bold 
Run Code Online (Sandbox Code Playgroud)

但它不起作用.

c# xaml

3
推荐指数
1
解决办法
7010
查看次数

使用c#创建菜单弹出按钮

我想用C#创建菜单弹出窗口.我试过这个

List<string> l = new List<string>();
l.Add("Rotate");
l.Add("Scale");
l.Add("Bring to Front");
l.Add("Send to Back");
MenuFlyout m = new MenuFlyout();
MenuFlyoutItem mn = l;
m.Items.Add(mn);
Run Code Online (Sandbox Code Playgroud)

它给出了错误,怎么做?

xaml winrt-xaml windows-8.1

3
推荐指数
1
解决办法
5777
查看次数

标签 统计

xaml ×4

c# ×3

windows-8.1 ×3

winrt-xaml ×2