WPF WebBrowser C# Windows won't rotate the rendering
<p>This was supposed to be a simple task. I am trying to create a WPF application that would rotate the WebBrowser and it's web rendering upon clicking the button. So Ideally, this is what I want:</p>

<p>Original Browser:
<a href="https://i.stack.imgur.com/D1azy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D1azy.png" alt="enter image description here"></a></p>

<p>Rotated Browser:
<a href="https://i.stack.imgur.com/zTY9D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zTY9D.png" alt="enter image description here"></a></p>

<p>To achieve the task; following is my code:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace TestClawCam
{
    /// &lt;summary&gt;
    /// Interaction logic for MainWindow.xaml
    /// &lt;/summary&gt;
    public partial class MainWindow : Window
    {
        int height = 480;
        int width = 640;
        public MainWindow()
        {
            InitializeComponent();
            clawCam1.Source= new Uri("http://google.com");
            clawCam1.Width = width;
            clawCam1.Height = height;


        }

        private void rotateButton_Click(object sender, RoutedEventArgs e)
        {
            RotateTransform myTransform = new RotateTransform();
            myTransform.Angle = 90;
            clawCam1.RenderTransform = myTransform;

        }
    }
}
</code></pre>

<p>Upon running the code only the dimensions are changing but not the actual rendering. This is the output I am getting:</p>

<p>Original Browser:
<a href="https://i.stack.imgur.com/x8ZAD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x8ZAD.png" alt="enter image description here"></a></p>

<p>Rotated Browser:
<a href="https://i.stack.imgur.com/qwJcU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qwJcU.png" alt="enter image description here"></a></p>

<p>As you can see the dimensions changed but not the actual webpage. Following are the links I have already checked:</p>

<p><a href="https://stackoverflow.com/questions/27378319/rotating-webbrowser-from-current-orientation-is-stretchingzooming-the-webbrows">Rotating webbrowser from current orientation is stretching(zooming) the webbrowser contents Windows phone</a></p>

<p><a href="https://stackoverflow.com/questions/6274861/upside-down-browser-in-wpf-application">Upside down browser in WPF application</a></p>

<p><a href="https://stackoverflow.com/questions/15795957/rotate-windows-form-upside-down">Rotate Windows form upside down</a></p>

<p>Also, if it is a label/image/canvas it would rotate the dimensions and appears to rotate the whole object. Any help is much appreciated. </p>

<p>P.S. System configuration:</p>

<p>Windows 7</p>

<p>Visual Studio 2012</p>

<p>.Net Framework 4.5 </p>