Fixed pixel alignment in the Canvas widget
This commit is contained in:
Родитель
eac9e7a81d
Коммит
a71d4557d3
|
@ -39,6 +39,7 @@ namespace Xwt.WPFBackend
|
|||
throw new ArgumentNullException ("graphics");
|
||||
|
||||
graphics.SmoothingMode = SmoothingMode.AntiAlias;
|
||||
graphics.PixelOffsetMode = PixelOffsetMode.Half;
|
||||
Graphics = graphics;
|
||||
}
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ namespace Xwt.WPFBackend
|
|||
public WindowBackend ()
|
||||
{
|
||||
Window = new System.Windows.Window ();
|
||||
Window.UseLayoutRounding = true;
|
||||
rootPanel = CreateMainGrid ();
|
||||
|
||||
Window.Content = rootPanel;
|
||||
|
|
Загрузка…
Ссылка в новой задаче