|
Este artículo se tradujo de forma manual. Mueva el puntero sobre las frases del artículo para ver el texto original.
|
Traducción
Original
|
UIElement.IsEnabled (Propiedad)
Ensamblado: PresentationCore (en PresentationCore.dll)
XMLNS para XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
<object IsEnabled="bool" .../>
Valor de propiedad
Tipo: System.BooleanImplementaciones
IInputElement.IsEnabledpublic partial class RoutedEventAddRemoveHandler { void MakeButton(object sender, RoutedEventArgs e) { Button b2 = new Button(); b2.Content = "New Button"; // Associate event handler to the button. You can remove the event // handler using "-=" syntax rather than "+=". b2.Click += new RoutedEventHandler(Onb2Click); root.Children.Insert(root.Children.Count, b2); DockPanel.SetDock(b2, Dock.Top); text1.Text = "Now click the second button..."; b1.IsEnabled = false; } void Onb2Click(object sender, RoutedEventArgs e) { text1.Text = "New Button (b2) Was Clicked!!"; }
Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2
.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.