WP and Win10
Effects: (Numbers are reference values, and UI-independent)
<page x:class= "_05.allcontrols._borderusepage" xmlns= "http://schemas.microsoft.com/winfx/2006/xaml/ Presentation "xmlns:x=" Http://schemas.microsoft.com/winfx/2006/xaml "xmlns:local=" Using:_05.allcontrols "xmlns:d= "http://schemas.microsoft.com/expression/blend/2008" xmlns:mc= "http://schemas.openxmlformats.org/ markup-compatibility/2006 "mc:ignorable=" D "background=" {ThemeResource Applicationpagebackgroundthemebrush} "> <!--happy play: div one cell phone--<Grid> <!--phone overall--<border borderbrush= "Green" B Orderthickness= "4" cornerradius= "10,10,10,10" > <Grid> <!--Home Screen-- <border borderbrush= "Gray" borderthickness= "2" margin= "10,60,10,30" > <textblock fontfamily= "Microsoft Ya Hei" > Sorry, the system has been linked to reverse-day reload win10! </TextBlock> </Border> <!--bottom--<border BorDerbrush= "Black" borderthickness= "2" cornerradius= "0,0,10,10" VERTICALALIGNM Ent= "Bottom" height= "> <!--Bottom button--<Grid> <symbolicon symbol= "Back" horizontalalignment= "left" margin= "50,0,0,0" width= "/>" <symbolicon symbol= "Home" horizontalalignment= "Center" width= "/> <symbolicon Sym" Bol= "Zoom" horizontalalignment= "right" margin= "0,0,50,0" width= "/>" </Grid> </Border> </Grid> </Border> </Grid></Page>
Wpf
Effect: (Border want Div must note ==>windowstyle= "None" background= "Transparent" allowstransparency= "True" mouseleftbuttondown= " Dragwindow ")
Code:
<window x:class= "Watermarkapp.mainwindow" xmlns= "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x= "Http://schemas.microsoft.com/winfx/2006/xaml" title= "watermark Tool" height= "545" width= "298" background= "Transpa Rent "allowstransparency=" True "windowstyle=" None "showintaskbar=" False "windowstartuplocation=" Centerscreen "Mous eleftbuttondown= "Dragwindow" > <!--Happy play: div a phone--<!--phone overall--<border borderbrush= "Green" Background= "Black" borderthickness= "4" cornerradius= "10,10,10,10" > <Grid> <!--Home Screen--<border borderbrush= "Gray" borderthickness= "2" Margi n= "10,50,10,40" > <grid background= "#FF151515" > <Grid.RowDefinitions> <RowDefinition></RowDefinition> <rowdefinition></rowdefinit Ion> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <textblock fontfamily= "Microsoft ya Black" > Sorry, the system has been hung please contact the reverse-day reload win10! </TextBlock> <button grid.row= "1" opacity= "0.4" horizontalalignment= "Center" verticalalignmen t= "Center" height= "width=" click= "Button_Click" > Single watermark </Button> <button grid.row= "2" opacity= "0.4" horizontalalignment= "center" verticalalignment= "center" height= "[width=]" click= "Button_click_1" "> Volume watermark </Button> <button grid.row=" 3 "opacity=" 0.4 "horizontalalignment=" Center "Verticalal Ignment= "Center" height= "width=" click= "Button_click_2" > Close program </Button> </Grid> </Border> <!--bottom--<border borderbrush= "Black"Borderthickness=" 2 "cornerradius=" 0,0,10,10 "verticalalignment=" Bottom " height= > <!--bottom button--<Grid> <textblock text= "Poison" horizontalalignment= "left" verticalalignment= "Center" margin= "80,0,0,0" width= "foreground=" "Gray" Mouseleave= "Textblock_mouseleave"/> <textblock text= "inverse" horizontalalignment= "Center" Verticalali Gnment= "Center" width= "foreground=" "Gray" mouseleave= "Textblock_mouseleave_1"/> <textblock Te Xt= "Day" horizontalalignment= "right" verticalalignment= "Center" margin= "0,0,80,0" width= "foreground=" "Gray" Mouseleave= "textblock_mouseleave_2"/> </Grid> </Border> </Grid> & Lt;/border></window>
Expansion: Dragwindow Event
WP, Win10 Development, or WPF development when you draw a custom form ~ For example: a phone