Hi all
I have a Silverlight 3 project which compiles and runs fine when compiled on a development machine. On our TFS environment with Silverlight 3 and the Silverlight 3 SDK installed, I get the following error:
C:\Users\tfsservice\AppData\Local\Temp\\Release\Sources\Source\Trunk\Themes\ UserDatesStyles.xaml(63,47,63,47): error : The property 'Command' does not exist on the type 'Button' in the XML namespace 'clr-namespace:Mvvm.Input;assembly=Mvvm'.
More information: Command is an attached property on Button that is part of the Mvvm assembly in the Mvvm.Input namespace.
Am I missing something on my TFS server? I would have thought that all I would require is the SDK. If I edit this project and change the ValidateXAML element to false, the TFS server does compile properly. However, this is obviously not the ideal situation.
Here is the XAML that causes it:
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:commands="clr-namespace:MvvmFramework.Input;assembly=MvvmFramework"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Style x:Key="UserDatesStyle" TargetType="controls:UserDates">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="controls:UserDates">
<Grid Height="600" Width="800" d:DesignWidth="800" d:DesignHeight="600">
<Button Content="Previous"
commands:CommandBinder.Command="{Binding PreviousPageCommand}"
Margin="0,0,10,0"
Style="{StaticResource PrevBtn}" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>