SizeChangedInfo(UIElement, Size, Boolean, Boolean) Constructor

Definición

Inicializa una nueva instancia de la clase SizeChangedInfo.

public:
 SizeChangedInfo(System::Windows::UIElement ^ element, System::Windows::Size previousSize, bool widthChanged, bool heightChanged);
public SizeChangedInfo (System.Windows.UIElement element, System.Windows.Size previousSize, bool widthChanged, bool heightChanged);
new System.Windows.SizeChangedInfo : System.Windows.UIElement * System.Windows.Size * bool * bool -> System.Windows.SizeChangedInfo
Public Sub New (element As UIElement, previousSize As Size, widthChanged As Boolean, heightChanged As Boolean)

Parámetros

element
UIElement

Elemento en el que se cambia el tamaño.

previousSize
Size

Tamaño previo, antes del cambio.

widthChanged
Boolean

Es true si ha cambiado el componente Width del tamaño.

heightChanged
Boolean

Es true si ha cambiado el componente Height del tamaño.

Comentarios

Para los dos parámetros booleanos, tenga en cuenta que debe notificarlos como true solo si los cambios en el valor son significativos para la representación o deben interpretar los valores como tal si se leen valores existentes. Los cambios menores en los valores de tamaño son posibles debido a efectos secundarios de precisión, especialmente cuando se aplican funciones matemáticas a los valores dobles.

Se aplica a