|
Este artículo proviene de un motor de traducción automática. Mueva el puntero sobre las frases del artículo para ver el texto original. Más información.
|
Traducción
Original
|
SystemColors.MenuTextColor (Propiedad)
Espacio de nombres: System.Windows
Ensamblado: PresentationFramework (en PresentationFramework.dll)
XMLNS para XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" WindowTitle="Dynamic System Colors Example" Background="White"> <StackPanel Margin="20"> <!-- Uses dynamic references to system colors to set the colors of gradient stops. If these system colors change while this application is running, the gradient will be updated automatically. --> <Button Content="Hello, World!"> <Button.Background> <LinearGradientBrush> <LinearGradientBrush.GradientStops> <GradientStop Offset="0.0" Color="{DynamicResource {x:Static SystemColors.DesktopColorKey}}" /> <GradientStop Offset="1.0" Color="{DynamicResource {x:Static SystemColors.ControlLightLightColorKey}}" /> </LinearGradientBrush.GradientStops> </LinearGradientBrush> </Button.Background> </Button> </StackPanel> </Page>
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" WindowTitle="Static System Colors Example" Background="White"> <StackPanel Margin="20"> <!-- Uses static references to system colors to set the colors of gradient stops. If these system colors change while this application is running, this button will not be updated until the page is loaded again. --> <Button Content="Hello, World!"> <Button.Background> <LinearGradientBrush> <LinearGradientBrush.GradientStops> <GradientStop Offset="0.0" Color="{x:Static SystemColors.DesktopColor}" /> <GradientStop Offset="1.0" Color="{x:Static SystemColors.ControlLightLightColor}" /> </LinearGradientBrush.GradientStops> </LinearGradientBrush> </Button.Background> </Button> </StackPanel> </Page>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (no se admite el rol Server Core), Windows Server 2008 R2 (se admite el rol Server Core con SP1 o versiones posteriores; no se admite Itanium)
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.