Skip to content

Instantly share code, notes, and snippets.

@sakapon
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakapon/5fdd0491989b6712e9a1 to your computer and use it in GitHub Desktop.
Save sakapon/5fdd0491989b6712e9a1 to your computer and use it in GitHub Desktop.
WpfSample / BorderlessWpf
<Window x:Class="BorderlessWpf.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="200" Width="200" AllowsTransparency="True" WindowStyle="None" Background="{x:Null}">
<Grid>
<Ellipse Fill="#993399FF" Height="100" Width="100"/>
</Grid>
</Window>
using System.Windows;
namespace BorderlessWpf
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
MouseLeftButtonDown += (o, e) => DragMove();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment