if (view.Margin == new Thickness(view.Margin.Top > 0, -1, 0, 0)) { //code in here }
Error 2 Argument 1: cannot convert from 'bool' to 'double' C:\Users\Kyle\documents\visual studio 2010\Projects\Project Hat\Project Hat\MainGame.xaml.cs 33 46 Project Hat
Error 1 The best overloaded method match for 'System.Windows.Thickness.Thickness(double, double, double, double)' has some invalid arguments C:\Users\Kyle\documents\visual studio 2010\Projects\Project Hat\Project Hat\MainGame.xaml.cs 33 32 Project Hat
view.Margin.Top > 0
Thickness
double
new Thickness(view.Margin.Top>0?1:0, -1, 0, 0)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)