C# wpf progressbar.RenderTransform在设计器中的窗口外
当我将180度变换应用于进度条时,它会跳出窗口。以下是它在设计器中的外观。 我怎样才能让它在窗户里移动呢 这是我的密码:C# wpf progressbar.RenderTransform在设计器中的窗口外,c#,wpf,C#,Wpf,当我将180度变换应用于进度条时,它会跳出窗口。以下是它在设计器中的外观。 我怎样才能让它在窗户里移动呢 这是我的密码: <Window x:Class="game.Player2Screen" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Ti
<Window x:Class="game.Player2Screen"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Player2Screen" Height="298" Width="310">
<ProgressBar Name="ProgressBarTimer" Orientation="Vertical" Foreground="Blue" Background="Black" MouseLeftButtonDown="ProgressBarTimer_MouseLeftButtonDown"
Value="0" HorizontalAlignment="Center" Maximum="100" VerticalAlignment="Top" Height="250" Width="265" >
<ProgressBar.RenderTransform>
<RotateTransform Angle="180"/>
</ProgressBar.RenderTransform>
</ProgressBar>
</Window>
您需要指定渲染变换原点
请参见也许您希望使用
布局转换
而不是渲染转换
WPF处理图形组件的方式是: