Exemplo n.º 1
0
        public UiDxTextureViewer()
        {
            HorizontalAlignment = HorizontalAlignment.Left;
            VerticalAlignment = VerticalAlignment.Top;

            _viewport = new UiDxViewport();
            _viewport.DrawSprites += DrawSprites;

            HorizontalAlignment = HorizontalAlignment.Stretch;
            VerticalAlignment = VerticalAlignment.Stretch;

            Content = _viewport;
        }
Exemplo n.º 2
0
        public UiDxTextureViewer()
        {
            HorizontalAlignment = HorizontalAlignment.Left;
            VerticalAlignment   = VerticalAlignment.Top;

            _viewport              = new UiDxViewport();
            _viewport.DrawSprites += DrawSprites;

            HorizontalAlignment = HorizontalAlignment.Stretch;
            VerticalAlignment   = VerticalAlignment.Stretch;

            Content = _viewport;
        }