1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
| <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0">
<Label Content="RESULTATS DE L'ANALYSE" HorizontalAlignment="Left" Margin="0,8,0,0" Name="label3" VerticalAlignment="Top" Width="auto" Foreground="#FF5C3A3A" FontSize="18" FontFamily="Times New Roman" Opacity="1">
</Label>
<Label Content="impact_global" HorizontalAlignment="Center" Margin="0,40,0,0" Name="LabelImpactglobal" VerticalAlignment="Top" Width="auto" FontFamily="Times New Roman" FontSize="20" Foreground="#D6FF2710" OpacityMask="#FF5B6ED2">
<Label.Triggers>
<EventTrigger RoutedEvent="Label.Loaded">
<!-- ou bien Label.mouseover -->
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard BeginTime="00:00:00" SpeedRatio="2" AutoReverse="False" RepeatBehavior="6x" Storyboard.TargetName="LabelImpactglobal" Storyboard.TargetProperty="(Foreground).(SolidColorBrush.Color)">
<!-- ou bien RepeatBehavior="0.0.4" ou "Forever"-->
<ColorAnimation From="Beige" To="#D6FF2710" By="#FAF8981D" Duration="0:0:2"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</Label.Triggers>
<Label.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="White" Offset="0" />
<GradientStop Color="#C75B6AA1" Offset="0.689" />
</LinearGradientBrush>
</Label.Background>
</Label>
<Grid>
<charting:Chart x:Name="chart" Width="350" Height="250" Initialized="chart_Initialized">
<charting:Chart.Series>
<charting:PieSeries ItemsSource="{Binding}" DependentValuePath="Impact"
IndependentValuePath="Nom"
Title="Pet Preference" IsSelectionEnabled="True" />
</charting:Chart.Series>
</charting:Chart>
<TextBlock Text="{Binding Nom}"></TextBlock>
</Grid>
</StackPanel>
<!--<DataGrid AutoGenerateColumns="true" HorizontalAlignment="Left" Margin="0,40,0,0" Name="dataGrid1" VerticalAlignment="Top" ItemsSource="{Binding}" AutoGeneratingColumn="dataGrid1_AutoGeneratingColumn">-->
<DataGrid Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" VerticalScrollBarVisibility="Auto" AutoGenerateColumns="False" Name="dataGrid1" Style="{DynamicResource DataGridStyle1}" ItemsSource="{Binding AllImpactedNode}" Initialized="dataGrid1_Initialized" CanUserResizeColumns="False" CanUserReorderColumns="False" MinColumnWidth="73" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" AlternatingRowBackground="#FFE4C1E8" RowBackground="#FFFFF490">
<DataGrid.Columns>
<DataGridTextColumn Header="Nom" Width="SizeToHeader" CellStyle="{StaticResource CenterCellStyle}" IsReadOnly="True" Binding="{Binding Nom}"/>
<DataGridTextColumn Header="Poids" Width="SizeToHeader" CellStyle="{StaticResource CenterCellStyle}" IsReadOnly="True" Binding="{Binding Poids}"/>
<DataGridTextColumn Header="Distance" Width="SizeToHeader" CellStyle="{StaticResource CenterCellStyle}" IsReadOnly="True" Binding="{Binding Distance}"/>
<DataGridTextColumn Header="In" Width="SizeToHeader" CellStyle="{StaticResource CenterCellStyle}" IsReadOnly="True" Binding="{Binding In}"/>
<DataGridTextColumn Header="Out" Width="SizeToHeader" CellStyle="{StaticResource CenterCellStyle}" IsReadOnly="True" Binding="{Binding Out}"/>
<DataGridTextColumn Header="Motricite" Width="SizeToHeader" CellStyle="{StaticResource CenterCellStyle}" IsReadOnly="True" Binding="{Binding Motricite}"/>
<DataGridTextColumn Header="Influence" Width="SizeToHeader" CellStyle="{StaticResource CenterCellStyle}" IsReadOnly="True" Binding="{Binding Influence}"/>
<DataGridTextColumn Header="CPI" Width="SizeToHeader" CellStyle="{StaticResource CenterCellStyle}" IsReadOnly="True" Binding="{Binding CPI, StringFormat='00.00'}"/>
<DataGridTextColumn Header="CATT" Width="SizeToCells" CellStyle="{StaticResource CenterCellStyle}" IsReadOnly="True" Binding="{Binding CATT, StringFormat='00.0000'}"/>
<DataGridTextColumn Header="PoidsRelatif" Width="SizeToCells" CellStyle="{StaticResource CenterCellStyle}" IsReadOnly="True" Binding="{Binding PoidsRelatif, StringFormat='00.00'}"/>
<DataGridTextColumn Header="Impact" Width="SizeToCells" CellStyle="{StaticResource CenterCellStyle}" IsReadOnly="True" Binding="{Binding Impact, StringFormat='00.00 %'}" CanUserResize="False" />
</DataGrid.Columns>
</DataGrid>
</Grid> |
Partager