BlurBitmapEffect.KernelType Propiedad
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Nota: Esta API ya está obsoleta. La alternativa no obsoleta es BlurEffect. Obtiene o establece el tipo de kernel de desenfoque que se va a usar para .BlurBitmapEffect
public:
property System::Windows::Media::Effects::KernelType KernelType { System::Windows::Media::Effects::KernelType get(); void set(System::Windows::Media::Effects::KernelType value); };
public System.Windows.Media.Effects.KernelType KernelType { get; set; }
member this.KernelType : System.Windows.Media.Effects.KernelType with get, set
Public Property KernelType As KernelType
Valor de propiedad
Tipo de kernel de desenfoque. El valor por defecto es Gaussian.
Ejemplos
En el ejemplo siguiente se muestra cómo especificar el KernelType de un BlurBitmapEffect.
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<StackPanel>
<Button Width="200">You Can't Read This!
<Button.BitmapEffect>
<!-- <BitmapEffectGroup> would go here if you wanted to apply more
then one effect to the Button. However, in this example only
one effect is being applied so BitmapEffectGroup does not need
to be included. -->
<!-- The larger the Radius, the more blurring. The default range is 20.
In addition, the KernelType is set to a box kernel. A box kernel
creates less disruption (less blur) then the default Gaussian kernel. -->
<BlurBitmapEffect Radius="10" KernelType="Box" />
</Button.BitmapEffect>
</Button>
</StackPanel>
</Page>
Comentarios
Información de la propiedad dependency
| Elemento | Value |
|---|---|
| Campo identificador | KernelTypeProperty |
Propiedades de metadatos establecidas en true |
Ninguno |