Metro Style in WPF applications _ Packages differences -
i want create metro style application, did researches , found lots of articles , tutorials that.
but still need clear comparison between modern ui wpf
, elysium
, mahapps
.
testing of them takes time ! need learn bout each one's features decide 1 start.
thanks,
first : download wpf shell integration library here
then use xml code :
<window x:class="mylibrary.mainwindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:shell="http://schemas.microsoft.com/winfx/2006/xaml/presentation/shell" title="mainwindow" windowstyle="singleborderwindow" resizemode="canresizewithgrip" mc:ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:designheight="449" d:designwidth="677" foreground="white" removed="black"> <shell:windowchrome.windowchrome> <shell:windowchrome captionheight="35" glassframethickness="0,0,0,1" resizeborderthickness="5" /> </shell:windowchrome.windowchrome> <grid x:name="layoutroot"> </grid> </window>
(note, need have referenced microsoft.windows.shell)
this best way that.. work on windows versions.
edit: if want add caption buttons on top of window add xaml code control @ top: (button example)
<button shell:windowchrome.ishittestvisibleinchrome="true"/>
Comments
Post a Comment