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
genericDashboard.png
genericDashboard2.png

Configuration
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>
      <DurationSeconds>30</DurationSeconds>
      <Url>http://finance.yahoo.com/q?d=t&amp;s=NOK</Url>
      <Zoom>70</Zoom>
    </ViewPart>


  • Text part:Caption ,Duration ,Header and lines.
    <ViewPart i:type="TextViewPart">
      <Caption>Next Quarter Goals</Caption>
      <DurationSeconds>30</DurationSeconds>
      <Lines xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">   
        <a:string>* Goal 1... </a:string>
        <a:string>* Goal 2... </a:string>
        <a:string>* Goal 3.. </a:string>
      </Lines>
      <Title>Next Quarter Goals</Title>
    </ViewPart>



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.

  [DataContract]
    public abstract class ViewPart
    {
        [DataMember]
        public int DurationSeconds { get; set; }

        [DataMember]
        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 >
        <Grid.RowDefinitions>
        	<RowDefinition Height="0.1*" />
        	<RowDefinition Height="0.1*" />
            <RowDefinition Height="0.1*" />
        	<RowDefinition Height="*" />
        </Grid.RowDefinitions>
		<Border Grid.Row="1" Margin="0,0,34,0"  CornerRadius="0,6,6,0" BorderThickness="1,0,0,0" >
			<Border.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FFDADADA" Offset="1"/>
							<GradientStop Color="#FFF3F3F3"/>
						</LinearGradientBrush>
			</Border.Background>
			<Image Grid.Row="1" Source="Images/2.JPG" HorizontalAlignment="Right" VerticalAlignment="Center"  />
		</Border>	
        <ItemsControl ItemsSource="{Binding Lines}" Grid.Row="3">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding}" FontSize="32" HorizontalAlignment="Left" Margin="50,0,0,0"/>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
			 </ItemsControl>
        <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" />     
    </Grid>
    </DataTemplate> 



visit my blog http://blogs.microsoft.co.il/blogs/oshvartz/

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