title: How to fix UWP App crash on CUIElement::IsRightToLeft
body: <p>In MS Store App Health Section,</p>
  <p>we are seeing crash in our App in &quot;CUIElement::IsRightToLeft&quot; function of UWP framework.
  Anyone can help to figure out why this happening?</p>
  <p>BTW: it doesn't seems always crash and in developer-end it never happened</p>
  <p>Error Title</p>
  <pre><code>null_pointer_read_stack_overflow_1007_windows.ui.xaml.dll!cuielement::isrighttoleft
  </code></pre>
  <p>Summary of crash callstack from MS Store Health section provided below</p>
  <pre><code>
  &quot;0    Windows.UI.Xaml.dll    CUIElement::IsRightToLeft    0x0000000000000048    &quot;
  &quot;1    Windows.UI.Xaml.dll    CFrameworkElement::EvaluateIsRightToLeft    0x000000000000009D    &quot;
  &quot;2    Windows.UI.Xaml.dll    CUIElement::IsRightToLeft    0x000000000000004E    &quot;
  &quot;3    Windows.UI.Xaml.dll    CFrameworkElement::EvaluateIsRightToLeft    0x000000000000009D    &quot;
  .
  .
  .
  .
  
  &quot;235    Windows.UI.Xaml.dll    DirectUI::ScrollViewer::ZoomToFactorInternal    0x00000000002A9158    &quot;
  &quot;236    Windows.UI.Xaml.dll    DirectUI::ScrollViewer::ChangeViewInternal    0x0000000000000A98    &quot;
  &quot;237    Windows.UI.Xaml.dll    DirectUI::ScrollViewer::ZoomToFactorInternal    0x00000000002A9158    &quot;
  &quot;238    Windows.UI.Xaml.dll    DirectUI::ScrollViewer::ChangeViewInternal    0x0000000000000A98    &quot;
  &quot;239    Windows.UI.Xaml.dll    DirectUI::ScrollViewer::ZoomToFactorInternal    0x00000000002A9158    &quot;
  </code></pre>