- FrictSLUnitTest.zip
- README.txt
- Sample.Silverlight.WCF.sln
- Source
- Sample.Silverlight.WCF.Tests.Clumsy.Web
- Sample.Silverlight.WCF.Tests.Clumsy
- Sample.Silverlight.WCF.Tests
- Sample.Silverlight.WCF.Web
- Sample.Silverlight.WCF
- Tools
- NUnit
- nunit.framework.dll
- nunit.silverlight.dll
- Rhino.Mocks
- Castle.Core-Silverlight.dll
- Castle.DynamicProxy-Silverlight.dll
- Rhino.Mocks 3.5.Silverlight.dll
|
<UserControl x:Class="Sample.Silverlight.WCF.Views.TaskManagementView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Utility="clr-namespace:Sample.Silverlight.WCF.Utility" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"
Loaded="UserControl_Loaded">
<UserControl.Resources>
<Utility:BooleanToForegroundConverter x:Key="foregroundConverter"/>
<Utility:BooleanToVisibilityConverter x:Key="visibilityConverter"/>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" Width="400" Height="300">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="282*" />
<ColumnDefinition Width="118*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition/>
<RowDefinition Height="30"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBox Margin="2,2" Text="{Binding Description, Mode=TwoWay, UpdateSourceTrigger=Explicit}"
TextChanged="DescriptionTextChanged"/>
<Button Grid.Row="0" Grid.Column="1" Content="Create" Margin="2,2"
Command="{Binding CreateCommand}"/>
<ListBox Grid.Row="1" Grid.ColumnSpan="2" Margin="2,2"
ItemsSource="{Binding Tasks}"
SelectedItem="{Binding Selected, Mode=TwoWay}">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<TextBlock Text="{Binding Description}"
Foreground="{Binding IsCompleted, Converter={StaticResource foregroundConverter}}"/>
<Line Stretch="Fill" X2="20" X1="0" StrokeThickness="1" Stroke="Black"
Visibility="{Binding IsCompleted, Converter={StaticResource visibilityConverter}}"/>
<ToolTipService.ToolTip>
<ToolTip>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Grid.Column="0" Grid.Row="0" Foreground="Black" Text="Created: "/>
<TextBlock Grid.Column="1" Grid.Row="0" FontWeight="Bold"
Foreground="Black" Text="{Binding Created}"/>
<TextBlock Grid.Column="0" Grid.Row="1" Foreground="Black" Text="Completed: "/>
<TextBlock Grid.Column="1" Grid.Row="1" FontWeight="Bold"
Foreground="Black" Text="{Binding Completed}"/>
</Grid>
</ToolTip>
</ToolTipService.ToolTip>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Button Grid.Row="2" Grid.Column="0" Content="Mark Complete" Margin="2,2"
Command="{Binding MarkCompleteCommand}"/>
<Button Grid.Row="2" Grid.Column="1" Content="Delete" Margin="2,2"
Command="{Binding DeleteCommand}"/>
</Grid>
</Grid>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.