how to declare xmlns:local to a subfolder within my xamarin forms app?
<p>Hello I'm working on a xamrain forms app that has a main menu and when you click the math button it supposed to take you to the MathHome page however it crashes after you click the button on the home page </p>

<p>heres my code for the mathpage:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:SchoolTools.Math.ViewModels;assembly=SchoolTools"
             x:Class="SchoolTools.MathPage"&gt;
  &lt;ContentPage.Resources&gt;
    &lt;ResourceDictionary&gt;
      &lt;Style x:Key="NumberStyle" TargetType="Button"&gt;
        &lt;Setter Property="BackgroundColor" Value="White"/&gt;
        &lt;Setter Property="TextColor" Value="Black"/&gt;
        &lt;Setter Property="BorderRadius" Value="0"/&gt;
        &lt;Setter Property="Font" Value="36"/&gt;
      &lt;/Style&gt;
      &lt;Style x:Key="OperationsStyle" TargetType="Button"&gt;
        &lt;Setter Property="BackgroundColor" Value="#FFA500"/&gt;
        &lt;Setter Property="TextColor" Value="White"/&gt;
        &lt;Setter Property="BorderRadius" Value="0"/&gt;
        &lt;Setter Property="Font" Value="36"/&gt;
      &lt;/Style&gt;
      &lt;Style x:Key="BackSpaceButtonStyle" TargetType="Button"&gt;
        &lt;Setter Property="BackgroundColor" Value="Black"/&gt;
        &lt;Setter Property="TextColor" Value="White"/&gt;
        &lt;Setter Property="BorderRadius" Value="0"/&gt;
        &lt;Setter Property="Font" Value="Bold,40"/&gt;
        &lt;Setter Property="VerticalOptions" Value="CenterAndExpand"/&gt;
        &lt;Setter Property="HorizontalOptions" Value="CenterAndExpand"/&gt;
      &lt;/Style&gt;
      &lt;Style x:Key="CleanButtonStyle" TargetType="Button"&gt;
        &lt;Setter Property="BackgroundColor" Value="Teal"/&gt;
        &lt;Setter Property="TextColor" Value="Black"/&gt;
        &lt;Setter Property="BorderRadius" Value="0"/&gt;
        &lt;Setter Property="Font" Value="36"/&gt;
      &lt;/Style&gt;
      &lt;Style x:Key="MainLabelStyle" TargetType="Label"&gt;
        &lt;Setter Property="BackgroundColor" Value="Black"/&gt;
        &lt;Setter Property="TextColor" Value="White"/&gt;
        &lt;Setter Property="Font" Value="35"/&gt;
        &lt;Setter Property="YAlign" Value="Center"/&gt;
        &lt;Setter Property="XAlign" Value="Center"/&gt;
      &lt;/Style&gt;
    &lt;/ResourceDictionary&gt;
  &lt;/ContentPage.Resources&gt;

  &lt;Grid Padding="5,0" RowSpacing="1" BackgroundColor="Black" ColumnSpacing="1"&gt;
    &lt;Grid.BindingContext&gt;
      &lt;local:MainViewModel /&gt;
    &lt;/Grid.BindingContext&gt;

    &lt;Grid.RowDefinitions&gt;
      &lt;RowDefinition Height="*"/&gt;
      &lt;RowDefinition Height="*"/&gt;
      &lt;RowDefinition Height="*"/&gt;
      &lt;RowDefinition Height="*"/&gt;
      &lt;RowDefinition Height="*"/&gt;
      &lt;RowDefinition Height="*"/&gt;
    &lt;/Grid.RowDefinitions&gt;
    &lt;Grid.ColumnDefinitions&gt;
      &lt;ColumnDefinition Width="*" /&gt;
      &lt;ColumnDefinition Width="*" /&gt;
      &lt;ColumnDefinition Width="*" /&gt;
      &lt;ColumnDefinition Width="*" /&gt;
    &lt;/Grid.ColumnDefinitions&gt;

    &lt;Label Grid.Row="1" Grid.Column="0"  Grid.ColumnSpan="3"
        Text="{Binding DisplayValue}" Style="{DynamicResource MainLabelStyle}" /&gt;
    &lt;Button Text="←" Grid.Row="1" Grid.Column="3" Command="{Binding BackspaceCommand}"
        Style="{DynamicResource BackSpaceButtonStyle}" /&gt;

    &lt;Button Text="7" Grid.Row="3" Grid.Column="0" Command="{Binding NumberComamnd}"
        CommandParameter="7" Style="{DynamicResource NumberStyle}"/&gt;
    &lt;Button Text="8" Grid.Row="3" Grid.Column="1" Command="{Binding NumberComamnd}"
    CommandParameter="8" Style="{DynamicResource NumberStyle}"/&gt;
    &lt;Button Text="9" Grid.Row="3" Grid.Column="2" Command="{Binding NumberComamnd}"
    CommandParameter="9" Style="{DynamicResource NumberStyle}"/&gt;
    &lt;Button Text="4" Grid.Row="4" Grid.Column="0" Command="{Binding NumberComamnd}"
    CommandParameter="4" Style="{DynamicResource NumberStyle}"/&gt;
    &lt;Button Text="5" Grid.Row="4" Grid.Column="1" Command="{Binding NumberComamnd}"
    CommandParameter="5" Style="{DynamicResource NumberStyle}"/&gt;
    &lt;Button Text="6" Grid.Row="4" Grid.Column="2" Command="{Binding NumberComamnd}"
    CommandParameter="6" Style="{DynamicResource NumberStyle}"/&gt;
    &lt;Button Text="1" Grid.Row="5" Grid.Column="0" Command="{Binding NumberComamnd}"
    CommandParameter="1" Style="{DynamicResource NumberStyle}"/&gt;
    &lt;Button Text="2" Grid.Row="5" Grid.Column="1" Command="{Binding NumberComamnd}"
    CommandParameter="2" Style="{DynamicResource NumberStyle}"/&gt;
    &lt;Button Text="3" Grid.Row="5" Grid.Column="2" Command="{Binding NumberComamnd}"
    CommandParameter="3" Style="{DynamicResource NumberStyle}"/&gt;
    &lt;Button Text="0" Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="3"
    CommandParameter="0" Style="{DynamicResource NumberStyle}" Command="{Binding NumberComamnd}" /&gt;

    &lt;Button Text="." Grid.Row="6" Grid.Column="3" Command="{Binding AddPointCommand}"
    Style="{DynamicResource OperationsStyle}"/&gt;

    &lt;Button Text="/" Grid.Row="2" Grid.Column="2" Command="{Binding OperatorCommand}"
    CommandParameter="/" Style="{DynamicResource OperationsStyle}"/&gt;
    &lt;Button Text="x" Grid.Row="2" Grid.Column="3" Command="{Binding OperatorCommand}"
    CommandParameter="x" Style="{DynamicResource OperationsStyle}" Font="25"/&gt;
    &lt;Button Text="-" Grid.Row="3" Grid.Column="3" Command="{Binding OperatorCommand}"
    CommandParameter="-" Style="{DynamicResource OperationsStyle}"/&gt;
    &lt;Button Text="+" Grid.Row="4" Grid.Column="3" Command="{Binding OperatorCommand}"
    CommandParameter="+" Style="{DynamicResource OperationsStyle}"/&gt;

    &lt;Button Text="√" Grid.Row="2" Grid.Column="1" Command="{Binding OperatorCommand}"
    CommandParameter="√" Style="{DynamicResource OperationsStyle}"/&gt;

    &lt;Button Text="=" Grid.Row="5" Grid.Column="3" Command="{Binding CalculationCommand}"
            Style="{DynamicResource OperationsStyle}"/&gt;
    &lt;Button Text="C" Grid.Row="2" Grid.Column="0" Command="{Binding CleanCommand}"
            Style="{DynamicResource CleanButtonStyle}"/&gt;
  &lt;/Grid&gt;
&lt;/ContentPage&gt;
</code></pre>

<p>I think my  xmlns:local is messed up the class the xaml references is MainViewModel witch is in a folder in the project called Math and then sub folder within math called ViewModels </p>

<p>Any ideas on how to fix this issue?</p>