0

私の質問は難しいのと同じくらい簡単です:

ウィンドウのガラス フレームを Visual Studio 11 のように単色のものに置き換えるにはどうすればよいですか?

既に Windows フォームを使用してその境界線をなしに設定して遊んでいましたが、これには Aero-Snap 機能がありません。Adobe Brackets は見慣れたものを使用していましたが、Visual Studio ほど完璧ではありませんでした。Visual Studio は WPF を使用していると思いますので、可能なはずです。

4

1 に答える 1

1

ウィンドウ テンプレートをより単純なものに置き換えるだけです。

<Window x:Class="WpfApplication11.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525"
        WindowStyle="None" AllowsTransparency="True">
    <Window.Template>
        <ControlTemplate TargetType="Window">
            <Grid Background="Blue">
                <ContentPresenter ContentSource="Content"/>
            </Grid>
        </ControlTemplate>
    </Window.Template>
</Window>

または

MahApps.Metroを使用する

編集:これは と でのみ機能しWindowStyle="None"ますAllowsTransparency="True"

于 2013-10-07T18:49:59.373 に答える