wouldn't it be better to use Canvas.SetRight here? this way the right edges of the progress bar and text label will always be aligened.