0

我有以下代码:

 <Button Width="30" Name="RestoreButton" Height="30" Focusable="False" VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="11" Background="Transparent" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" BorderThickness="0" BorderBrush="Transparent" Foreground="Transparent" Margin="0,0,30,0">
            <StackPanel>
                <Image Source="Images/maximizewindow.png" RenderTransformOrigin="1.692,0.564" />
                <TextBlock Text="Teljes méret" Foreground="Gray" />
            </StackPanel>
        </Button>

我创建了一个带有图像背景的按钮。但是,如果我移动或单击按钮,它不会显示文本块的文本。为什么?

4

0 回答 0