첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.

728x90
반응형
728x170

TestSolution.zip
다운로드

▶ MainWindow.xaml

<library:BlurryWindow x:Class="TestProject.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:TestProject"
    xmlns:library="clr-namespace:TestLibrary;assembly=TestLibrary"
    mc:Ignorable="d"
    Icon="pack://application:,,,/TestLibrary;component/Image/application.png"
    Width="800"
    Height="600" 
    BorderBrush="White"
    BorderThickness="1"
    WindowStartupLocation="CenterScreen"
    Title="반투명 윈도우 사용하기"
    FontFamily="나눔고딕코딩"
    FontSize="16">
    <library:BlurryWindow.AdditionalMenuBarButtonCollection>
        <library:ButtonCollection>
            <Button x:Name="sampleButton"
                Width="100"
                ToolTip="무언가를 실행합니다!">
                <Button.Content>
                    <TextBlock Text="샘플" />
                </Button.Content>
            </Button>
        </library:ButtonCollection>
    </library:BlurryWindow.AdditionalMenuBarButtonCollection>
    <Grid>
        <TabControl
            Margin="5"
            TabStripPlacement="Left">
            <TabItem Header="반투명 핵심">
                <local:BlurryContentControl />
            </TabItem>
            <TabItem Header="반투명 사용자 컨트롤">
                <local:BlurryUserControl/>
            </TabItem>
            <TabItem Header="비활성화" IsEnabled="False"/>
            <TabItem Header="반투명 도지">
                <local:BlurryDogeControl />
            </TabItem>
            <TabItem Header="도지 대화 상자">
                <local:BlurryDogeDialogControl />
            </TabItem>
            <TabItem Header="배경 반투명">
                <local:BlurBehindDialogControl />
            </TabItem>
        </TabControl>
    </Grid>
</library:BlurryWindow>
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요