Show / Hide Table of Contents

Class FrameworkElementExtensions

Contiene extensiones para la clase FrameworkElement.

Inheritance
object
FrameworkElementExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Helpers
Assembly: MCART.Wpf.Common.dll
Syntax
public static class FrameworkElementExtensions

Methods

| Edit this page View Source

Bind(FrameworkElement, DependencyProperty, INotifyPropertyChanged)

Enlaza una propiedad de dependencia de un DependencyObject a un INotifyPropertyChanged.

Declaration
public static void Bind(this FrameworkElement obj, DependencyProperty dp, INotifyPropertyChanged source)
Parameters
Type Name Description
FrameworkElement obj

Objeto destino del enlace

DependencyProperty dp

Propiedad de dependencia a enlazar.

INotifyPropertyChanged source

origen del enlace.

| Edit this page View Source

Bind(FrameworkElement, DependencyProperty, INotifyPropertyChanged, BindingMode)

Enlaza una propiedad de dependencia de un INotifyPropertyChanged a un FrameworkElement.

Declaration
public static void Bind(this FrameworkElement obj, DependencyProperty dp, INotifyPropertyChanged source, BindingMode mode)
Parameters
Type Name Description
FrameworkElement obj

Objeto destino del enlace

DependencyProperty dp

Propiedad de dependencia a enlazar.

INotifyPropertyChanged source

origen del enlace.

BindingMode mode

Modo del enlace.

| Edit this page View Source

Bind(FrameworkElement, DependencyProperty, INotifyPropertyChanged, DependencyProperty)

Enlaza una propiedad de dependencia de un INotifyPropertyChanged a un FrameworkElement.

Declaration
public static void Bind(this FrameworkElement obj, DependencyProperty targetDp, INotifyPropertyChanged source, DependencyProperty sourceDp)
Parameters
Type Name Description
FrameworkElement obj

Objeto destino del enlace

DependencyProperty targetDp

Propiedad de dependencia de destino del enlace.

INotifyPropertyChanged source

origen del enlace.

DependencyProperty sourceDp

Propiedad de dependencia de destino del enlace.

| Edit this page View Source

Bind(FrameworkElement, DependencyProperty, INotifyPropertyChanged, DependencyProperty, BindingMode)

Enlaza una propiedad de dependencia de un INotifyPropertyChanged a un FrameworkElement.

Declaration
public static void Bind(this FrameworkElement obj, DependencyProperty targetDp, INotifyPropertyChanged source, DependencyProperty sourceDp, BindingMode mode)
Parameters
Type Name Description
FrameworkElement obj

Objeto destino del enlace

DependencyProperty targetDp

Propiedad de dependencia de destino del enlace.

INotifyPropertyChanged source

origen del enlace.

DependencyProperty sourceDp

Propiedad de dependencia de destino del enlace.

BindingMode mode

Modo del enlace.

| Edit this page View Source

Bind(FrameworkElement, DependencyProperty, object, DependencyProperty, BindingMode)

Enlaza una propiedad de dependencia de un object a un FrameworkElement.

Declaration
public static void Bind(this FrameworkElement obj, DependencyProperty targetDp, object source, DependencyProperty sourceDp, BindingMode mode)
Parameters
Type Name Description
FrameworkElement obj

Objeto destino del enlace

DependencyProperty targetDp

Propiedad de dependencia de destino del enlace.

object source

origen del enlace.

DependencyProperty sourceDp

Propiedad de dependencia de destino del enlace.

BindingMode mode

Modo del enlace.

| Edit this page View Source

Bind(FrameworkElement, DependencyProperty, DependencyObject)

Enlaza una propiedad de dependencia de un DependencyObject a un FrameworkElement.

Declaration
public static void Bind(this FrameworkElement obj, DependencyProperty dp, DependencyObject source)
Parameters
Type Name Description
FrameworkElement obj

Objeto destino del enlace

DependencyProperty dp

Propiedad de dependencia a enlazar.

DependencyObject source

origen del enlace.

| Edit this page View Source

Bind(FrameworkElement, DependencyProperty, DependencyObject, BindingMode)

Enlaza una propiedad de dependencia de un DependencyObject a un FrameworkElement.

Declaration
public static void Bind(this FrameworkElement obj, DependencyProperty dp, DependencyObject source, BindingMode mode)
Parameters
Type Name Description
FrameworkElement obj

Objeto destino del enlace

DependencyProperty dp

Propiedad de dependencia a enlazar.

DependencyObject source

origen del enlace.

BindingMode mode

Modo del enlace.

| Edit this page View Source

Bind(FrameworkElement, DependencyProperty, DependencyObject, DependencyProperty)

Enlaza una propiedad de dependencia de un DependencyObject a un FrameworkElement.

Declaration
public static void Bind(this FrameworkElement obj, DependencyProperty targetDp, DependencyObject source, DependencyProperty sourceDp)
Parameters
Type Name Description
FrameworkElement obj

Objeto destino del enlace

DependencyProperty targetDp

Propiedad de dependencia de destino del enlace.

DependencyObject source

origen del enlace.

DependencyProperty sourceDp

Propiedad de dependencia de destino del enlace.

| Edit this page View Source

Bind(FrameworkElement, DependencyProperty, DependencyObject, DependencyProperty, BindingMode)

Enlaza una propiedad de dependencia de un DependencyObject a un FrameworkElement.

Declaration
public static void Bind(this FrameworkElement obj, DependencyProperty targetDp, DependencyObject source, DependencyProperty sourceDp, BindingMode mode)
Parameters
Type Name Description
FrameworkElement obj

Objeto destino del enlace

DependencyProperty targetDp

Propiedad de dependencia de destino del enlace.

DependencyObject source

origen del enlace.

DependencyProperty sourceDp

Propiedad de dependencia de destino del enlace.

BindingMode mode

Modo del enlace.

| Edit this page View Source

Render(FrameworkElement)

Crea un mapa de bits de un FrameworkElement.

Declaration
public static RenderTargetBitmap Render(this FrameworkElement f)
Parameters
Type Name Description
FrameworkElement f

FrameworkElement a renderizar.

Returns
Type Description
RenderTargetBitmap

Un objeto RenderTargetBitmap que contiene una imagen renderizada de f.

| Edit this page View Source

Render(FrameworkElement, int)

Crea un mapa de bits de un FrameworkElement.

Declaration
public static RenderTargetBitmap Render(this FrameworkElement f, int dpi)
Parameters
Type Name Description
FrameworkElement f

FrameworkElement a renderizar.

int dpi

Valor de puntos por pulgada a utilizar para crear el mapa de bits.

Returns
Type Description
RenderTargetBitmap

Un objeto RenderTargetBitmap que contiene una imagen renderizada de f.

| Edit this page View Source

Render(FrameworkElement, Size, Size, int)

Crea un mapa de bits de un FrameworkElement estableciendo el tamaño en el cual se dibujará el control, por lo que no necesita haberse mostrado en la interfaz de usuario.

Declaration
public static RenderTargetBitmap Render(this FrameworkElement f, Size inSize, Size outSize, int dpi)
Parameters
Type Name Description
FrameworkElement f

FrameworkElement a renderizar.

Size inSize

Tamaño del control a renderizar.

Size outSize

Tamaño del canvas en donde se renderizará el control.

int dpi

Valor de puntos por pulgada a utilizar para crear el mapa de bits.

Returns
Type Description
RenderTargetBitmap

Un objeto RenderTargetBitmap que contiene una imagen renderizada de f.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX