When I tested your code and set a value to widthboard property in code-behind
I wrote in the mainloading event widthboard = 60
Probably i don't understand how the xaml works ?
That exactly the problem where in the code behind i have to set widthboard so that when the xaml Width="{x:Bind Path= widthboard is applied get the value
Thanks