title: How to create LibVLCSharp custom playback controls in Xamarin Forms?
body: <p>I've been searching for days now for a guide on how to create the custom playback controls for LibVLCSharp that everyone seems to talk about, which I never found a guid for.</p>
  
  <p>I simply want to create other buttons with event handlers for the bottom playback control panel, I tried this but throws a <strong>System.NullReferenceException</strong> exception on startup while getting into break mode...</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;vlc:MediaPlayerElement MediaPlayer="{Binding MediaPlayer}" LibVLC="{Binding LibVLC}"&gt;
      &lt;vlc:MediaPlayerElement.PlaybackControls&gt;
          &lt;vlc:PlaybackControls&gt;
              &lt;vlc:PlaybackControls.ControlTemplate&gt;
                  &lt;ControlTemplate&gt;
                      &lt;Grid&gt;
                          &lt;StackLayout Orientation="Horizontal" HorizontalOptions="CenterAndExpand"&gt;
                              &lt;Button Grid.Column="0" Text="Test 1"/&gt;
                              &lt;Button Grid.Column="1" Text="Test 1"/&gt;
                              &lt;Button Grid.Column="2" Text="Test 1"/&gt;
                          &lt;/StackLayout&gt;
                      &lt;/Grid&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/vlc:PlaybackControls.ControlTemplate&gt;
          &lt;/vlc:PlaybackControls&gt;
      &lt;/vlc:MediaPlayerElement.PlaybackControls&gt;
  &lt;/vlc:MediaPlayerElement&gt;
  </code></pre>
  
  <p>I want it to act just like the original one (Auto hides, overlays on tapping, etc...) but with my own layout and controls. I also thought about using the existing one and try to override their handler to implement my own code and override the text property for each button to change its icon but no luck of finding any help.</p>
  
  <p>Thanks in advance ^_^</p>