0

I would like to create a WPF window that really doesn't have any appearence except for the single TextBlock control with transparent background. The final result would look like this:

WPF Popup TextBlock

How can I create such a "ghost" window?

4

1 回答 1

0

尝试以下方法:

<Window x:Class="MainWindow" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="MainWindow" Height="50" Width="200" AllowsTransparency="True" WindowStyle="None" Background="Transparent"> 
    <TextBlock x:Name="TextClock" FontSize..... etc....> 
    </TextBlock> 
</Window> 
于 2012-05-04T22:43:20.007 回答