Last active
August 29, 2015 14:16
-
-
Save sakapon/5fdd0491989b6712e9a1 to your computer and use it in GitHub Desktop.
WpfSample / BorderlessWpf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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