c# - Wpf ModernUI window elements arrangement -
i trying use modernui window element, , stuck first element top margin (where gradient placed). use modern ui light style. setting 0 margin doesn't work.
how can redefine style/decrease top margin?
view xaml part:
<mui:modernwindow x:class="myproject.views.loginwindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mui="http://firstfloorsoftware.com/modernui" height="380" width="300"> <grid style="{staticresource contentroot}"> <grid.rowdefinitions> <rowdefinition height="*" /> <rowdefinition height="2*" /> <rowdefinition height="2*" /> <rowdefinition height="30" /> <rowdefinition height="2*" /> </grid.rowdefinitions> <label grid.row="0" content="ВХОД В СИСТЕМУ" fontweight="bold" fontsize="20" verticalalignment="top" margin="5"/> ... </grid>
finally figured out.
problem in referenced assembly firstfloor.modernui.dll.
my project target framework 4.5 , installed fresh version of modernui through nuget package manager. after installed version 1.0.6.0.
when changed reference previous version 1.0.5.0, problem gone, , window elements fit, should.
and dissapeared xaml warnings like: resource not resolved.
Comments
Post a Comment