Cómo: WPF: Ventana sin bordes
Martes, marzo 9, 2010 20:51Posted in category Sin categoría
Para crear una ventana sin borde en WPF:
En el tag Window debes agregar ‘WindowStyle=”None” ResizeMode=”NoResize”‘
<window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="prueba.MainWindow" x:Name="Window" Title="MainWindow" Width="200" Height="200" Background="#FF300606" WindowStyle="None" ResizeMode="NoResize"> <grid x:Name="LayoutRoot"> <textBlock Margin="24,67,90,41" TextWrapping="Wrap" Foreground="White"><run Text="Ventana con Borde"/></textBlock> </grid> </window>
Con Borde:
Sin Borde:
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.


BredeBS » Cómo: WPF: Cerrar ventana con Confirmación says:
marzo 9th, 2010 at 23:04
[...] luego haré la aplicación de eso. Lo bueno es que se complementa con la aplicación WPF sin borde de ventana que mostré hace unas [...]
BredeBS » Cómo: WPF con fondo transparente says:
marzo 19th, 2010 at 15:25
[...] al Tag Window el parámetro AllowTransparency=”True” y sumándolo al post anterior de cómo realizar una ventana sin bordes con WPF nos queda este [...]