|
<UserControl
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:local="clr-namespace:RIATasks" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
xmlns:System_Windows_Controls_Primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls"
x:Class="RIATasks.MainPage"
mc:Ignorable="d"
Width="534" Height="391">
<UserControl.Resources>
<local:MainPageModel x:Key="MainPageModelDataSource" />
<DataTemplate x:Key="StringTemplate">
<StackPanel>
<TextBlock Text="{Binding Mode=OneWay}"/>
</StackPanel>
</DataTemplate>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource MainPageModelDataSource}}">
<Grid.Background>
<RadialGradientBrush>
<GradientStop Color="#FF525D7C" Offset="0.398"/>
<GradientStop Color="#5F5E75BA" Offset="0.994"/>
</RadialGradientBrush>
</Grid.Background>
<StackPanel x:Name="Buttons" HorizontalAlignment="Left" Orientation="Horizontal" VerticalAlignment="Top" Margin="8,9,0,0">
<Button x:Name="btnAddTask" Content="Add New Task" Height="23" Style="{StaticResource ButtonStyleOffice2010}" Visibility="{Binding AddVisibility, Mode=OneWay}" Width="123" Foreground="White" FontWeight="Bold">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<i:InvokeCommandAction x:Name="AddTask" Command="{Binding TabControlVM.AddNewTaskCommand}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
</StackPanel>
<local:TabControl x:Name="tabControl" DataContext="{Binding TabControlVM, Mode=OneWay}" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="4,33,0,0" Width="520"/>
<ListBox Height="47" ItemTemplate="{StaticResource StringTemplate}" ItemsSource="{Binding TabControlVM.Message}" Margin="11,0,19,15" VerticalAlignment="Bottom" Foreground="Red" BorderThickness="2" Visibility="{Binding TabControlVM.MessageVisibility, Mode=OneWay}" BorderBrush="#FFF70D0D">
<ListBox.Background>
<SolidColorBrush Color="#FFEDED8D" Opacity="0.995"/>
</ListBox.Background>
</ListBox>
</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.