This project is read-only.
Project Description
WPF application develop to use as Dashboard for presentation of multiple TFS reports (ALM dashboad) - generic viewer of "view parts".
Currenly supports live web pages and WPF slide tamplate

Screen Shots

The configuration is taken from XML file "viewParts.xml" that holds the view parts configuratio and located in the output directory.
  • Web part:Caption, Url, Duration and Zoom.

   <ViewPart i:type="WebViewPart">
      <Caption>Nokia Stock Rate</Caption>

  • Text part:Caption ,Duration ,Header and lines.
    <ViewPart i:type="TextViewPart">
      <Caption>Next Quarter Goals</Caption>
      <Lines xmlns:a="">   
        <a:string>* Goal 1... </a:string>
        <a:string>* Goal 2... </a:string>
        <a:string>* Goal 3.. </a:string>
      <Title>Next Quarter Goals</Title>

Implement A view part
The application is viewing in loop all view parts derives.
Currently supported:
  • Web View Part.
  • Text View Part.

In order to implement specific view part dervive from view part.

    public abstract class ViewPart
        public int DurationSeconds { get; set; }

        public string Caption { get; set; }

Add to the "DataTemplates.xaml" file the data template related to your view part.
e.g. for Text web part:
    <DataTemplate x:Key="TextViewPart">
           <Grid >
        	<RowDefinition Height="0.1*" />
        	<RowDefinition Height="0.1*" />
            <RowDefinition Height="0.1*" />
        	<RowDefinition Height="*" />
		<Border Grid.Row="1" Margin="0,0,34,0"  CornerRadius="0,6,6,0" BorderThickness="1,0,0,0" >
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FFDADADA" Offset="1"/>
							<GradientStop Color="#FFF3F3F3"/>
			<Image Grid.Row="1" Source="Images/2.JPG" HorizontalAlignment="Right" VerticalAlignment="Center"  />
        <ItemsControl ItemsSource="{Binding Lines}" Grid.Row="3">
                    <TextBlock Text="{Binding}" FontSize="32" HorizontalAlignment="Left" Margin="50,0,0,0"/>
        <TextBlock Grid.Row="1" FontSize="48" Grid.ColumnSpan="2" FontWeight="Bold" FontFamily="Times New Roman" Text="{Binding Title}" HorizontalAlignment="Left" Margin="30,0,0,0" />     

visit my blog

Last edited May 7, 2011 at 9:51 AM by offirsh, version 8