Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Rendertransform and offsets

$
0
0

Hi,

please look at this code

<UserControl x:Class="Cardio.Pages.StatisticsPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="800"
             Background="Green"><Grid Background="#FFE21414" RenderTransformOrigin="0.5,0.5"><Grid.RenderTransform><ScaleTransform ScaleX="0.75"
                            ScaleY="0.75" /></Grid.RenderTransform></Grid></UserControl>

wich give me this visual

is it possible to get equals offset both in X and Y directions by manipulating only the rendertransforms of the grid and not it's margins ? 


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>