Hi,
I am working on a custom StepBar
control, and the Horizontal orientation is functioning as expected.
However, I am encountering issues when implementing the Vertical orientation.
Since the ProgressBar
control does not have an Orientation
property, I am using a CompositeTransform
to rotate it vertically. Here is the code snippet I am using:
<ProgressBar Name="PART_ProgressBarBack"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
RenderTransformOrigin="0.5,0.5">
<ProgressBar.RenderTransform>
<CompositeTransform Rotation="90" />
</ProgressBar.RenderTransform>
</ProgressBar>
The behavior is problematic:
- When I resize the app, the
ProgressBar
's size and position change unexpectedly.
- If I set
HorizontalAlignment="Left"
, the ProgressBar
disappears.
I would like to know how to correctly rotate the ProgressBar
for a vertical layout without affecting its size or position.
I have attached a sample app to demonstrate the issue.
Thank you for your assistance!
https://github.com/user-attachments/files/18348236/StepBar-Vertical-Sample.zip