Bonjour à tous,
Je suis embêté, ca fait plusieurs jours que mon concepteur graphique de VS2015 m'affiche une erreur.
J'ai plusieurs projets dans ma solution, dont 1 qui est un diagramme de Gantt. Mon projet principal y fait appel et du coup, ça plante en cascade. J'ai l'impression que c'est bien lui la source du souci.
Le message d'erreur est générique et varie par moments.
Voici mon code :
Mon message est dès fois qu'il y a une key en double (ce n'est pas le cas, j'ai regardé + validation W3C validator).
Code xaml : Sélectionner tout - Visualiser dans une fenêtre à part
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455 <UserControl x:Class="nGantt.GanttControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:ng="clr-namespace:nGantt.GanttChart" mc:Ignorable="d" DataContext="{Binding}" xmlns:Convert="clr-namespace:nGantt.Classes"> <UserControl.Resources> <Convert:ConvEmptyToVisibility x:Key="EmptyToVisibility"/> <Style x:Key="AffBtns" TargetType="StackPanel"> <Setter Property="Visibility" Value="Hidden" /> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=IsMouseOver}" Value="True"> <Setter Property="Visibility" Value="Visible" /> </DataTrigger> <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=Grid, AncestorLevel=2}, Path=IsMouseOver}" Value="True" > <Setter Property="Visibility" Value="Visible" /> </DataTrigger> </Style.Triggers> </Style> <ControlTemplate x:Key="ExpanderWithoutButton" TargetType="{x:Type Expander}"> <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="3" SnapsToDevicePixels="true"> <DockPanel> <ContentPresenter Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" DockPanel.Dock="Top" Margin="1" Focusable="false" Cursor="Hand" /> <ContentPresenter x:Name="ExpandSite" Visibility="Collapsed" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Focusable="false" /> </DockPanel> </Border> <ControlTemplate.Triggers> <Trigger Property="IsExpanded" Value="true"> <Setter Property="Visibility" Value="Visible" TargetName="ExpandSite"/> </Trigger> <Trigger Property="IsEnabled" Value="false"> <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> <DataTemplate x:Key="GanttTimeLineGridLines"> <ItemsControl ItemsSource="{Binding}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Vertical"/> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <ItemsControl ItemsSource="{Binding Path=Items}" VerticalAlignment="Center" VerticalContentAlignment="Stretch" Height="{Binding ElementName=Scroller, Path=ExtentHeight}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <ng:GanttRowPanel DataContext="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}" MinDate="{Binding Path=GanttData.MinDate}" MaxDate="{Binding Path=GanttData.MaxDate}"/> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemContainerStyle> <Style> <Setter Property="ng:GanttRowPanel.StartDate" Value="{Binding Path=Start}"/> <Setter Property="ng:GanttRowPanel.EndDate" Value="{Binding Path=End}"/> </Style> </ItemsControl.ItemContainerStyle> <ItemsControl.ItemTemplate> <DataTemplate> <Border BorderBrush="Gray" BorderThickness="0,0,1,0" Background="{Binding BackgroundColor}"/> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </DataTemplate> <DataTemplate x:Key="GanttTimeLineTemplate"> <ItemsControl ItemsSource="{Binding}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Vertical"/> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <ItemsControl ItemsSource="{Binding Path=Items}" Height="20"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <ng:GanttRowPanel DataContext="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}" MinDate="{Binding Path=GanttData.MinDate}" MaxDate="{Binding Path=GanttData.MaxDate}"/> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemContainerStyle> <Style> <Setter Property="ng:GanttRowPanel.StartDate" Value="{Binding Path=Start}"/> <Setter Property="ng:GanttRowPanel.EndDate" Value="{Binding Path=End}"/> </Style> </ItemsControl.ItemContainerStyle> <ItemsControl.ItemTemplate> <DataTemplate> <Border BorderBrush="Gray" BorderThickness="0,1,1,0"> <TextBlock Text="{Binding Path=Name}" HorizontalAlignment="Center" VerticalAlignment="Center" ToolTip="{Binding Path=Name}"/> </Border> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </DataTemplate> <DataTemplate x:Key="GanttRowTemplate"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="130" ></ColumnDefinition> <ColumnDefinition Width="1"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition></RowDefinition> <RowDefinition Height="1"></RowDefinition> </Grid.RowDefinitions> <Grid Grid.Column="0" Grid.Row="0" ToolTip="{Binding Path=RowHeader.Name}" Margin="15,0,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" ></ColumnDefinition> <ColumnDefinition Width="auto"></ColumnDefinition> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" Text="{Binding Path=RowHeader.Name}" TextWrapping="Wrap" HorizontalAlignment="Stretch" VerticalAlignment="Center"></TextBlock> <StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right" Style="{StaticResource AffBtns}"> <Button Click="btnRowUpd_Click" Style="{x:Null}"> <Image Source="./Images/Editer-32.png" Width="16" /> </Button> <Button Click="btnRowDel_Click" Style="{x:Null}"> <Image Source="./Images/Supprimer-32.png" Width="16" /> </Button> </StackPanel> </Grid> <Grid Name="RowGrid" Grid.Column="2" Grid.Row="0" Width="Auto" Height="{Binding ElementName=RowHeightSlider, Path=Value}" Margin="0,5,0,5"> <Grid.RowDefinitions> <RowDefinition Height="{Binding ElementName=RowHeightSlider, Path=Value}"/> </Grid.RowDefinitions> <Canvas Name="selectionCanvas" Background="Transparent" Grid.Column="2" Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Height="{Binding ElementName=RowHeightSlider, Path=Value}" MouseMove="selectionRectangle_MouseMove" MouseLeftButtonUp="Grid_MouseLeftButtonUp" MouseLeftButtonDown="Grid_MouseLeftButtonDown" MouseLeave="selectionCanvas_MouseLeave"> <Border Name="selectionRectangle" CornerRadius="3" Opacity="0.7" Height="{Binding ElementName=RowHeightSlider, Path=Value}" HorizontalAlignment="Stretch" BorderBrush="#FF0062FF" Background="#FFADADAD" Margin="0,0,0,5" BorderThickness="1" Visibility="Hidden" ContextMenuOpening="selectionRectangle_ContextMenuOpening" IsHitTestVisible="True" > <Border.ContextMenu> <ContextMenu ItemsSource="{Binding Path=DataContext.SelectionContextMenuItems, Source={x:Reference root}}"> <ContextMenu.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Name}"/> </DataTemplate> </ContextMenu.ItemTemplate> <ContextMenu.ItemContainerStyle> <Style TargetType="MenuItem"> <Setter Property="CommandParameter" Value="{Binding Path=DataContext.SelectionPeriod, Source={x:Reference root}}"/> <Setter Property="Command" Value="{Binding ContextMenuItemClickCommand}" /> </Style> </ContextMenu.ItemContainerStyle> <ContextMenu.Style> <Style TargetType="{x:Type ContextMenu}"> <Setter Property="Visibility" Value="Visible"></Setter> <Style.Triggers> <Trigger Property="HasItems" Value="False"> <Setter Property="Visibility" Value="Hidden" /> </Trigger> </Style.Triggers> </Style> </ContextMenu.Style> </ContextMenu> </Border.ContextMenu> </Border> </Canvas> <ItemsControl Grid.Row="0" ItemsSource="{Binding Path=Tasks}" Height="{Binding ElementName=RowHeightSlider, Path=Value}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <ng:GanttRowPanel DataContext="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}" MinDate="{Binding Path=GanttData.MinDate}" MaxDate="{Binding Path=GanttData.MaxDate}"/> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemContainerStyle> <Style> <Setter Property="ng:GanttRowPanel.StartDate" Value="{Binding Path=Start}"/> <Setter Property="ng:GanttRowPanel.EndDate" Value="{Binding Path=End}"/> </Style> </ItemsControl.ItemContainerStyle> <ItemsControl.ItemTemplate> <DataTemplate> <Border Name="brdTask" CornerRadius="3" MouseDown="brdTask_MouseDown" IsHitTestVisible="True" Padding="7,5,7,2" IsEnabled="{Binding IsEnabled}"> <Border.ContextMenu> <ContextMenu ItemsSource="{Binding Path=DataContext.GanttTaskContextMenuItems, Source={x:Reference root}}"> <ContextMenu.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Name}"/> </DataTemplate> </ContextMenu.ItemTemplate> <ContextMenu.ItemContainerStyle> <Style TargetType="MenuItem"> <Setter Property="CommandParameter" Value="{Binding PlacementTarget.DataContext, RelativeSource={RelativeSource AncestorType=ContextMenu}}"/> <Setter Property="Command" Value="{Binding ContextMenuItemClickCommand}" /> </Style> </ContextMenu.ItemContainerStyle> <ContextMenu.Style> <Style TargetType="{x:Type ContextMenu}"> <Setter Property="Visibility" Value="Visible"></Setter> <Style.Triggers> <Trigger Property="HasItems" Value="False"> <Setter Property="Visibility" Value="Hidden" /> </Trigger> </Style.Triggers> </Style> </ContextMenu.Style> </ContextMenu> </Border.ContextMenu> <Border.ToolTip> <StackPanel Orientation="Vertical"> <Label Content="{Binding Path=Name}" FontWeight="Bold"></Label> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=Start, StringFormat={}{0:yyyy-MM-dd}}"/> <TextBlock Text=" a "/> <TextBlock Text="{Binding Path=End, StringFormat={}{0:yyyy-MM-dd}}"/> </StackPanel> </StackPanel> </Border.ToolTip> <Border.Style> <Style TargetType="Border"> <Setter Property="Border.Background"> <Setter.Value> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FF2669A8" Offset="0"/> <GradientStop Color="#FF336FA8" Offset="0.112"/> <GradientStop Color="#FF4390D8" Offset="1"/> </LinearGradientBrush> </Setter.Value> </Setter> <Setter Property="BorderThickness" Value="1"></Setter> <Setter Property="BorderBrush" Value="Gray"></Setter> <Style.Triggers> <Trigger Property="Border.IsMouseOver" Value="True"> <Setter Property="Border.Opacity" Value="0.9" /> </Trigger> <DataTrigger Binding="{Binding Path=IsSelected}" Value="True"> <Setter Property="BorderThickness" Value="2"></Setter> <Setter Property="BorderBrush" Value="#FFE08943"></Setter> </DataTrigger> </Style.Triggers> </Style> </Border.Style> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="auto"/> </Grid.RowDefinitions> <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="GanttTaskBorderContentArea"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="32"/> </Grid.ColumnDefinitions> <!-- Contenu visuel de la Task --> <TextBlock MaxWidth="{Binding ElementName=GanttTaskBorderContentArea, Path=ActualWidth}" Text="{Binding Path=Name}" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" TextTrimming="CharacterEllipsis" Grid.Column="0" Visibility="{Binding Name, Converter={StaticResource EmptyToVisibility}, ConverterParameter=False}" /> <Image Source="./Images/Comment-16.png" Grid.Column="1" Visibility="{Binding Name, Converter={StaticResource EmptyToVisibility}, ConverterParameter=True}"/> </Grid> <Border Grid.Row="1" BorderBrush="DarkGray" BorderThickness="1" Height="8" Background="Gray" Visibility="{Binding TaskProgressVisibility}"> <Border.ToolTip> <TextBlock Text="{Binding PercentageCompletedText}"></TextBlock> </Border.ToolTip> <Grid> <Border Name="VUMeter"> <Border.Background> <LinearGradientBrush> <LinearGradientBrush.GradientStops> <GradientStop Color="Red" Offset="0"></GradientStop> <GradientStop Color="Yellow" Offset="0.5"></GradientStop> <GradientStop Color="Green" Offset="1"></GradientStop> </LinearGradientBrush.GradientStops> </LinearGradientBrush> </Border.Background> </Border> <Border HorizontalAlignment="Stretch" Background="Gray"> <Border.RenderTransform> <ScaleTransform CenterX="{Binding ElementName=VUMeter, Path=ActualWidth}" ScaleX="{Binding PercentageCompleted}" ScaleY="1"></ScaleTransform> </Border.RenderTransform> </Border> </Grid> </Border> </Grid> </Border> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </Grid> <Rectangle Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Fill="Gray"></Rectangle> <Rectangle Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Fill="Gray"></Rectangle> </Grid> </DataTemplate> <DataTemplate DataType="{x:Type ng:ExpandableGanttRowGroup}"> <Grid> <Expander Template="{StaticResource ExpanderWithoutButton}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Margin="0" Padding="0" BorderThickness="0" IsExpanded="{Binding Path=IsExpanded}"> <Expander.Header> <Border Margin="0" BorderThickness="0,1,0,1" Opacity="0.7" CornerRadius="0" Background="WhiteSmoke" BorderBrush="DarkGray" Height="25" Padding="3" Width="{Binding ElementName=Scroller, Path=ExtentWidth}"> <Grid x:Name="grGroup"> <Grid.ColumnDefinitions> <ColumnDefinition Width="auto"/> <ColumnDefinition Width="4"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Image Grid.Column="0" Width="16" Height="16" VerticalAlignment="Center" Source="{Binding ImagePath}"></Image> <ToggleButton Grid.Column="2" VerticalAlignment="Center" x:Name="tbGroup" IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Expander}}}"> <ToggleButton.Template> <ControlTemplate> <Grid Grid.Column="2"> <Grid.ColumnDefinitions> <ColumnDefinition Width="auto"></ColumnDefinition> <ColumnDefinition Width="*" ></ColumnDefinition> </Grid.ColumnDefinitions> <StackPanel Orientation="Horizontal" Grid.Column="0" Style="{StaticResource AffBtns}"> <Button Click="btnRowAdd_Click" Style="{x:Null}"> <Image Source="./Images/Ajouter-32.png" Width="16" /> </Button> </StackPanel> <TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{Binding Path=Name}" FontWeight="Bold" /> </Grid> </ControlTemplate> </ToggleButton.Template> </ToggleButton> </Grid> </Border> </Expander.Header> <ItemsControl ItemsSource="{Binding Path=Rows}" > <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Vertical"></StackPanel> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <ContentControl ContentTemplate="{StaticResource GanttRowTemplate}" Content="{Binding}"/> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </Expander> <!--<Rectangle VerticalAlignment="Stretch" HorizontalAlignment="Left" Width="8" Fill="WhiteSmoke" Margin="0,25,0,2"></Rectangle>--> <Border VerticalAlignment="Stretch" HorizontalAlignment="Left" Margin="0,25,0,2" Background="WhiteSmoke" Width="9"> <Rectangle VerticalAlignment="Stretch" HorizontalAlignment="Left" Width="2" Margin="3,4,0,2" > <Rectangle.Fill> <LinearGradientBrush SpreadMethod="Reflect" StartPoint="0 0" EndPoint="0 0.05"> <GradientStop Offset="0.5" Color="Gray"/> <GradientStop Offset="0.5" Color="Transparent"/> </LinearGradientBrush> </Rectangle.Fill> </Rectangle> </Border> </Grid> </DataTemplate> <DataTemplate DataType="{x:Type ng:HeaderedGanttRowGroup}"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="auto"></RowDefinition> <RowDefinition Height="auto"></RowDefinition> </Grid.RowDefinitions> <Border BorderThickness="0,1,0,1" CornerRadius="0" Opacity="1" Background="WhiteSmoke" Height="25" BorderBrush="DarkGray" Padding="3" Width="{Binding ElementName=Scroller, Path=ExtentWidth}"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="auto"/> <ColumnDefinition Width="4"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Image Grid.Column="0" Width="16" Height="16" VerticalAlignment="Center" Source="{Binding ImagePath}"></Image> <Grid Grid.Column="2"> <Grid.ColumnDefinitions> <ColumnDefinition Width="auto"></ColumnDefinition> <ColumnDefinition Width="*" ></ColumnDefinition> </Grid.ColumnDefinitions> <StackPanel Orientation="Horizontal" Grid.Column="0" Style="{StaticResource AffBtns}"> <Button Click="btnRowAdd_Click" Style="{x:Null}"> <Image Source="./Images/Ajouter-32.png" Width="16" /> </Button> </StackPanel> <TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{Binding Path=Name}" FontWeight="Bold" /> </Grid> </Grid> </Border> <ItemsControl Grid.Row="1" ItemsSource="{Binding Path=Rows}" > <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Vertical"> </StackPanel> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <ContentControl ContentTemplate="{StaticResource GanttRowTemplate}" Content="{Binding}" /> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </Grid> </DataTemplate> <DataTemplate DataType="{x:Type ng:GanttRowGroup}"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="1"></RowDefinition> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <Rectangle Fill="Gray" Height="1" HorizontalAlignment="Stretch" StrokeThickness="1" StrokeDashArray="5, 4, 2, 4" VerticalAlignment="Center"></Rectangle> <ItemsControl ItemsSource="{Binding Path=Rows}" Grid.Row="1"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Vertical"> </StackPanel> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <ContentControl ContentTemplate="{StaticResource GanttRowTemplate}" Content="{Binding}" /> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </Grid> </DataTemplate> <DataTemplate x:Key="GanttGrid"> <Grid Name="GanttMainGrid"> <Grid.RowDefinitions> <RowDefinition Height="auto"></RowDefinition> <RowDefinition Height="1"></RowDefinition> <RowDefinition Height="*"></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="130"></ColumnDefinition> <ColumnDefinition Width="1"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <!-- TimeLines --> <Label Grid.Row="0" Grid.Column="0" Content="{Binding Path=DataContext.Title, Source={x:Reference root}}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" FontWeight="Bold"/> <ContentControl Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" ContentTemplate="{StaticResource GanttTimeLineTemplate}" Content="{Binding Path=TimeLines}" BorderBrush="Blue" BorderThickness="1" Margin="0,0,18,0"/> <!-- Support rows --> <Rectangle Grid.Row="0" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Fill="Gray"/> <Rectangle Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Fill="Gray"/> <ScrollViewer Grid.Row="2" Grid.ColumnSpan="3" Name="Scroller" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Visible"> <Grid> <!-- Gridlines --> <ContentControl ContentTemplate="{StaticResource GanttTimeLineGridLines}" Content="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=GridLineTimeLine}" Margin="130,0,1,0"/> <!-- RowGroups --> <ItemsControl ItemsSource="{Binding Path=RowGroups}"/> </Grid> </ScrollViewer> </Grid> </DataTemplate> </UserControl.Resources> <Grid Margin="0,5,0,0" x:Name="root" > <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition> <RowDefinition Height="5"></RowDefinition> <RowDefinition Height="auto"></RowDefinition> </Grid.RowDefinitions> <ContentControl Grid.Row="0" ContentTemplate="{StaticResource GanttGrid}" Content="{Binding Path=GanttData}"/> <StackPanel Orientation="Horizontal" Grid.Row="2" Visibility="Collapsed"> <Label>Size</Label> <Slider Minimum="30" Maximum="100" Value="30" Name="RowHeightSlider" Width="200" Height="22"/> </StackPanel> </Grid> </UserControl>
Code x : Sélectionner tout - Visualiser dans une fenêtre à part
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
63
64
65
66
67
68
69 System.ArgumentException Un élément avec la même clé a déjà été ajouté. à System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) à System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.MockType(Type type) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockType.InitializeMockType() à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockType.get_RuntimeType() à Microsoft.VisualStudio.DesignTools.Platform.Metadata.ProjectContextType.get_Metadata() à Microsoft.VisualStudio.DesignTools.WpfDesigner.WpfPlatformMetadata.ShouldTrimSurroundingWhiteSpace(IType typeId) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseContent(XamlParserContext parserContext, IDocumentNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, IProperty childProperty, TypeConverter textTypeConverter, ITypeId textType, PropertyHandling propertyHandling) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.AddPropertiesAndChildren(XamlParserContext parserContext, DocumentCompositeNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, Predicate`1 propertyFilter) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.AddPropertiesAndChildren(XamlParserContext parserContext, DocumentCompositeNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseCompositeElement(XamlParserContext parserContext, IDocumentNodeReference nodeReference, IType typeId, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseElementContent(XamlParserContext parserContext, IDocumentNodeReference nodeReference, IType typeId, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseElement(XamlParserContext parserContext, IDocumentNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, DocumentNode& node) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseContent(XamlParserContext parserContext, IDocumentNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, IProperty childProperty, TypeConverter textTypeConverter, ITypeId textType, PropertyHandling propertyHandling) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.AddPropertiesAndChildren(XamlParserContext parserContext, DocumentCompositeNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, Predicate`1 propertyFilter) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.AddPropertiesAndChildren(XamlParserContext parserContext, DocumentCompositeNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseCompositeElement(XamlParserContext parserContext, IDocumentNodeReference nodeReference, IType typeId, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseElementContent(XamlParserContext parserContext, IDocumentNodeReference nodeReference, IType typeId, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseRootElement(XamlParserContext parserContext, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.Parse(XamlParserContext parserContext, XmlDocumentReference xmlDocumentReference, XmlDocument xmlDocument) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseInternal(XamlParserContext parserContext) à Microsoft.VisualStudio.DesignTools.Markup.XamlLanguageService.ParseDocument(CancellationToken cancelToken) à Microsoft.VisualStudio.DesignTools.Markup.LanguageServiceBase`1.ParseDocument() à Microsoft.VisualStudio.DesignTools.Markup.MarkupDocument.ReparseDocument(Boolean notify) à Microsoft.VisualStudio.DesignTools.Markup.MarkupDocument.TypeResolver_TypesChanging(Object sender, TypesChangedEventArgs e) à System.EventHandler`1.Invoke(Object sender, TEventArgs e) à Microsoft.VisualStudio.DesignTools.Platform.Metadata.TypeResolver.OnTypesChanged(TypesChangedEventArgs e) à Microsoft.VisualStudio.DesignTools.Platform.Metadata.TypeResolver.OnAssemblyCollectionChanged(NotifyCollectionChangedEventArgs e) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.XamlProjectMetadata.OnAssemblyCollectionChanged(NotifyCollectionChangedEventArgs e) à Microsoft.VisualStudio.DesignTools.Designer.Project.ProjectAssemblyCollection.FireChangedEvent(NotifyCollectionChangedEventArgs eventArguments) à Microsoft.VisualStudio.DesignTools.Designer.Project.ProjectAssemblyCollection.AssemblyCollection_EnumerationChanged(Object sender, EnumerationChangedEventArgs`1 e) à System.EventHandler`1.Invoke(Object sender, TEventArgs e) à Microsoft.VisualStudio.DesignTools.Utility.Collections.NotifyingCollectionBase`1.EventInvoker(EnumerationChangedEventArgs`1 eventArguments) à Microsoft.VisualStudio.DesignTools.Utility.Events.SuspendingEventManager`1.ForwardEvents() à Microsoft.VisualStudio.DesignTools.Utility.Events.Suspender.SuspendDisposer.Dispose(Boolean disposing) à Microsoft.VisualStudio.DesignTools.Utility.Events.Suspender.SuspendDisposer.Dispose() à Microsoft.VisualStudio.DesignTools.Designer.Assemblies.ProjectAssemblyResolver.AssemblyNotificationHandler.<.ctor>b__5_0() à Microsoft.VisualStudio.DesignTools.Utility.Events.Suspender.SuspendDisposer.Dispose(Boolean disposing) à Microsoft.VisualStudio.DesignTools.Utility.Events.Suspender.SuspendDisposer.Dispose() à Microsoft.VisualStudio.DesignTools.Utility.Collections.SuspendableKeyedCollection`2.<.ctor>b__6_0() à Microsoft.VisualStudio.DesignTools.Utility.Events.Suspender.SuspendDisposer.Dispose(Boolean disposing) à Microsoft.VisualStudio.DesignTools.Utility.Events.Suspender.SuspendDisposer.Dispose() à Microsoft.VisualStudio.DesignTools.Designer.Project.BuildWatcher.ReleaseSuppressors(Boolean forceRelease) à Microsoft.VisualStudio.DesignTools.Designer.Project.BuildWatcher.ProjectService_BuildCompleted(Object sender, EventArgs e) à System.EventHandler`1.Invoke(Object sender, TEventArgs e) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalEvent`3.<>c__DisplayClass13_0.<Invoke>b__0() à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.InvokeWorker() à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.Invoke(Boolean waitingInExternalCall) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.InvokeCall(Call call) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.ProcessQueue(CallQueue queue) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.ProcessInboundQueue(Int32 identity) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.ProcessMessage(Int32 msg, IntPtr wParam, IntPtr lParam, Boolean elevatedQuery, Boolean& handled) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.OnWindowMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.MessageOnlyHwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) à MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) à System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) à System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) à System.Windows.Application.RunDispatcher(Object ignore) à System.Windows.Application.RunInternal(Window window) à System.Windows.Application.Run(Window window) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.RunApplication() à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.<>c__DisplayClass5_0.<Main>b__0() à System.Threading.ThreadHelper.ThreadStart_Context(Object state) à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) à System.Threading.ThreadHelper.ThreadStart()
Des fois un type null :Des fois
Code x : Sélectionner tout - Visualiser dans une fenêtre à part
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 System.ArgumentNullException La valeur ne peut pas être null. Nom du paramètre*: type à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.TypeDefinition..ctor(TypeDefinitionContext context, Type type) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockDefinition..ctor(TypeDefinitionContext context, Type sourceType, Type mockType) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.TypeDefinitionContext.DefineNestedType(Type type, TypeDefinition declaringType) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.DefineType(Type type) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.MockType(Type type) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockType.InitializeMockType() à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockType.get_RuntimeType() à Microsoft.VisualStudio.DesignTools.Platform.Metadata.ProjectContextType.InitializeClass() à Microsoft.VisualStudio.DesignTools.Designer.ViewModel.XamlSceneNode.get_TrueTargetType() à Microsoft.VisualStudio.DesignTools.XamlDesigner.UI.PropertyInspector.XamlPropertyInspectorContext.GetTypeForPropertyEditing(SceneNode sceneNode) à Microsoft.VisualStudio.DesignTools.Designer.UI.PropertyMerger.GetMergedPropertiesForSelection(IEnumerable`1 selectedSceneNodes, List`1 properties, Boolean includeStatics) à Microsoft.VisualStudio.DesignTools.Designer.UI.PropertyMerger.GetPropertiesFromSelection(IEnumerable`1 selectedSceneNodes, Boolean includeStatics) à Microsoft.VisualStudio.DesignTools.Designer.UI.PropertyMerger.GetMergedProperties(IEnumerable`1 selectedSceneNodes, Boolean includeStatics) à Microsoft.VisualStudio.DesignTools.Designer.UI.PropertyInspector.PropertyInspectorModel.GetPropertiesToShowInternal(IReadOnlyList`1 selectedObjects) à Microsoft.VisualStudio.DesignTools.Designer.UI.PropertyInspector.PropertyInspectorModel.GetRenderedProperties(IReadOnlyList`1 selectedObjects) à Microsoft.VisualStudio.DesignTools.Designer.UI.PropertyInspector.PropertyInspectorModel.UpdateOnSelectionChanged(Boolean forceUpdate, Boolean shouldCloseOpenTransactions, Boolean clearAddedProperties) à Microsoft.VisualStudio.DesignTools.Designer.UI.PropertyInspector.PropertyInspectorModel.UpdateSelectionCore(Boolean forceUpdate, Boolean shouldCloseOpenTransactions, Boolean clearAddedProperties) à Microsoft.VisualStudio.DesignTools.Designer.UI.PropertyInspector.PropertyInspectorModel.UpdateSelection(Boolean forceUpdate, Boolean shouldCloseOpenTransactions, Boolean clearAddedProperties) à Microsoft.VisualStudio.DesignTools.Designer.UI.PropertyInspector.PropertyInspectorModel.PropertyManager_MultiplePropertyReferencesChanged(Object sender, MultiplePropertyReferencesChangedEventArgs args) à Microsoft.VisualStudio.DesignTools.Designer.Properties.PropertyManager.FireAllPropertyChangedEvents(SceneUpdatePhaseEventArgs args) à Microsoft.VisualStudio.DesignTools.Designer.Properties.PropertyManager.SelectionManager_LateActiveSceneUpdatePhase(Object sender, SceneUpdatePhaseEventArgs args) à Microsoft.VisualStudio.DesignTools.Designer.ViewModel.SceneUpdatePhaseEventHandler.Invoke(Object sender, SceneUpdatePhaseEventArgs e) à Microsoft.VisualStudio.DesignTools.Designer.Selection.SelectionManager.FireLateActiveSceneUpdatePhase(SceneUpdatePhaseEventArgs args) à Microsoft.VisualStudio.DesignTools.Designer.View.SceneViewUpdateScheduleTask.UpdateLate() à Microsoft.VisualStudio.DesignTools.Utility.Scheduler.ScheduleTask.Update() à Microsoft.VisualStudio.DesignTools.Utility.Scheduler.SchedulingService.DispatchTasksAtPriority(DispatcherPriority priority) à Microsoft.VisualStudio.DesignTools.Utility.Scheduler.SchedulingService.DispatcherToken.Dispatch(Object arg) à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) à System.Windows.Threading.DispatcherOperation.InvokeImpl() à System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) à System.Windows.Threading.DispatcherOperation.Invoke() à System.Windows.Threading.Dispatcher.ProcessQueue() à System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) à MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) à MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) à System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) à MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) à MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) à System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) à System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) à System.Windows.Application.RunDispatcher(Object ignore) à System.Windows.Application.RunInternal(Window window) à System.Windows.Application.Run(Window window) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.RunApplication() à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.<>c__DisplayClass5_0.<Main>b__0() à System.Threading.ThreadHelper.ThreadStart_Context(Object state) à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) à System.Threading.ThreadHelper.ThreadStart()
Code x : Sélectionner tout - Visualiser dans une fenêtre à part
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94 Microsoft.MetadataReader.UnresolvedAssemblyException L'Universe de type ne peut pas résoudre l'assembly*: nGantt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. à Microsoft.MetadataReader.SimpleUniverse.Microsoft.MetadataReader.ITypeUniverse.ResolveAssembly(AssemblyName name) à Microsoft.MetadataReader.SimpleUniverse.Microsoft.MetadataReader.ITypeUniverse.ResolveAssembly(Module scope, Token tokenAssemblyRef) à Microsoft.MetadataReader.MetadataOnlyModule.ResolveTypeRef(ITypeReference typeReference) à Microsoft.MetadataReader.MetadataOnlyTypeReference.GetResolvedTypeWorker() à Microsoft.MetadataReader.TypeProxy.GetResolvedType() à Microsoft.MetadataReader.TypeProxy.get_Module() à Microsoft.MetadataReader.MetadataOnlyTypeDef.Equals(Type other) à Microsoft.MetadataReader.MetadataOnlyTypeDef.Equals(Type other) à Microsoft.MetadataReader.TypeProxy.Equals(Type t) à Microsoft.MetadataReader.MetadataOnlyTypeDef.Equals(Type other) à Microsoft.MetadataReader.TypeProxy.Equals(Type t) à Microsoft.MetadataReader.TypeProxy.Equals(Object objOther) à System.Type.op_Inequality(Type left, Type right) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.TypeDefinitionContext.TypeBuilderEqualityComparer.Equals(Type x, Type y) à System.Collections.Generic.Dictionary`2.FindEntry(TKey key) à System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.DefineType(Type type) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.DefineProperty(TypeDefinition typeDefinition, PropertyInfo propertyInfo) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.PopulateMockType(Type type, MockTypeDefinition mockType) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.DefineType(Type type) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.DefineProperty(TypeDefinition typeDefinition, PropertyInfo propertyInfo) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.PopulateMockType(Type type, MockTypeDefinition mockType) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.DefineType(Type type) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockTypes.MockTypeGenerator.MockType(Type type) à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockType.InitializeMockType() à Microsoft.VisualStudio.DesignTools.XamlDesigner.Metadata.MockType.get_RuntimeType() à Microsoft.VisualStudio.DesignTools.Platform.Metadata.ProjectContextType.get_Metadata() à Microsoft.VisualStudio.DesignTools.WpfDesigner.WpfPlatformMetadata.ShouldTrimSurroundingWhiteSpace(IType typeId) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseContent(XamlParserContext parserContext, IDocumentNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, IProperty childProperty, TypeConverter textTypeConverter, ITypeId textType, PropertyHandling propertyHandling) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.AddPropertiesAndChildren(XamlParserContext parserContext, DocumentCompositeNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, Predicate`1 propertyFilter) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.AddPropertiesAndChildren(XamlParserContext parserContext, DocumentCompositeNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseCompositeElement(XamlParserContext parserContext, IDocumentNodeReference nodeReference, IType typeId, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseElementContent(XamlParserContext parserContext, IDocumentNodeReference nodeReference, IType typeId, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseElement(XamlParserContext parserContext, IDocumentNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, DocumentNode& node) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseContent(XamlParserContext parserContext, IDocumentNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, IProperty childProperty, TypeConverter textTypeConverter, ITypeId textType, PropertyHandling propertyHandling) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.AddPropertiesAndChildren(XamlParserContext parserContext, DocumentCompositeNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, Predicate`1 propertyFilter) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.AddPropertiesAndChildren(XamlParserContext parserContext, DocumentCompositeNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseCompositeElement(XamlParserContext parserContext, IDocumentNodeReference nodeReference, IType typeId, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseElementContent(XamlParserContext parserContext, IDocumentNodeReference nodeReference, IType typeId, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseRootElement(XamlParserContext parserContext, XmlElementReference xmlElementReference, XmlElement xmlElement) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.Parse(XamlParserContext parserContext, XmlDocumentReference xmlDocumentReference, XmlDocument xmlDocument) à Microsoft.VisualStudio.DesignTools.Markup.XamlParser.ParseInternal(XamlParserContext parserContext) à Microsoft.VisualStudio.DesignTools.Markup.XamlLanguageService.ParseDocument(CancellationToken cancelToken) à Microsoft.VisualStudio.DesignTools.Markup.MarkupDocument..ctor(IDocumentContext documentContext, ITypeId expectedRootType, ITextBuffer textBuffer, Encoding documentEncoding, IMarkupLanguageService languageService, CancellationToken cancelToken) à Microsoft.VisualStudio.DesignTools.Designer.Documents.SceneMarkupDocument..ctor(IDocumentContext documentContext, IUndoService undoService, ITypeId expectedRootType, ITextBuffer textBuffer, Encoding documentEncoding, IMarkupLanguageService languageService, CancellationToken cancelToken) à Microsoft.VisualStudio.DesignTools.Designer.DocumentViewContext.CreateMarkupDocument(ISourceItemContext sourceItem, IHostTextBuffer textBuffer, Encoding encoding, CancellationToken cancelToken) à Microsoft.VisualStudio.DesignTools.Designer.DocumentViewContext.CreateDocument(ISourceItemContext sourceItem, CancellationToken cancelToken, Boolean isReadOnly, Boolean cloneBufferToStandalone, Boolean suppressUI, SceneDocument originalSceneDocument) à Microsoft.VisualStudio.DesignTools.Designer.DocumentViewContext.OpenDocument(ISourceItemContext sourceItem, CancellationToken cancelToken, Boolean isReadOnly, Boolean suppressUI) à Microsoft.VisualStudio.DesignTools.Designer.Project.ProjectContextBase.OpenProjectDocument(ISourceItemContext sourceItem, Boolean suppressUI) à Microsoft.VisualStudio.DesignTools.XamlDesigner.DocumentModel.XamlProjectContext.FindApplicationDocumentForContext(XamlProjectContext xamlProjectContext) à Microsoft.VisualStudio.DesignTools.XamlDesigner.DocumentModel.XamlProjectContext.get_Application() à Microsoft.VisualStudio.DesignTools.Designer.Documents.SceneDocument.GetApplicationDocument(IProjectContext activeContext) à Microsoft.VisualStudio.DesignTools.Designer.View.ViewRootResolver.GetView(IDocumentRoot documentRoot, Boolean hidden) à Microsoft.VisualStudio.DesignTools.Designer.DocumentViewContext.CreateAndOpenViewInternal(SceneDocument document, CancellationToken cancelToken, Boolean activate, Boolean ensureOpenInHost) à Microsoft.VisualStudio.DesignTools.Designer.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass12_0.<Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__0(CancellationToken cancelToken) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass6_0`1.<MarshalInWithCancellation>b__0() à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.InvokeWorker() System.Reflection.TargetInvocationException L'Universe de type ne peut pas résoudre l'assembly*: nGantt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. Server stack trace: à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.MarshalInSynchronous(Action action, Int32 targetApartmentId, CancellationToken cancelToken, CallModality callModality, String methodName, String filePath, Int32 lineNumber) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId, CancellationToken cancelToken, CallSynchronizationMode syncMode, CallModality callModality, String methodName, String filePath, Int32 lineNumber) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action, CancellationToken cancelToken, CallSynchronizationMode syncMode, CallModality callModality, ApartmentState apartmentState, String memberName, String filePath, Int32 lineNumber) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteDesignerService.MarshalInWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func, ApartmentState apartmentState) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.RemoteDesignerService.Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostProject remoteProject, IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken) à System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) à System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg) Exception rethrown at [0]: à System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) à System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostProject remoteProject, IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IRemoteDesignerService ds, IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass14_0.<Microsoft.VisualStudio.DesignTools.DesignerContract.IDesignerService.CreateDesigner>b__0(IRemoteDesignerService ds, RemoteCancellationToken remoteToken) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass5_0`1.<MarshalOutWithCancellation>b__0(IRemoteDesignerService ds) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass27_0`1.<MarshalOut>b__0() à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.Call.InvokeWorker() System.Reflection.TargetInvocationException L'Universe de type ne peut pas résoudre l'assembly*: nGantt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal, CancellationToken cancelToken, String methodName, String filePath, Int32 lineNumber) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CancellationToken cancelToken, CallSynchronizationMode syncMode, WaitHandle timeoutSignal, String methodName, String filePath, Int32 lineNumber) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CancellationToken cancelToken, CallSynchronizationMode syncMode, ApartmentState apartmentState, String methodName, String filePath, Int32 lineNumber) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action`1 action, CancellationToken cancelToken, CallSynchronizationMode syncMode, ApartmentState apartmentState, String methodName, String filePath, Int32 lineNumber) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerService.MarshalOutWithCancellation[TResult](CancellationToken cancelToken, Func`3 func, ApartmentState apartmentState) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Remoting.LocalDesignerService.Microsoft.VisualStudio.DesignTools.DesignerContract.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken) à Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
Des fois que le root est problématique (j'ai essayé de l'enlever en vain).
Code x : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 XamlObjectWriterException : Référence non résolue 'root'. à System.Xaml.XamlObjectWriter.ThrowUnresolvedRefs(IEnumerable`1 unresolvedRefs) à System.Xaml.XamlObjectWriter.CompleteNameReferences() à System.Xaml.XamlObjectWriter.WriteEndObject() à System.Xaml.XamlWriter.WriteNode(XamlReader reader) à System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter) InnerException*: aucun
Dans les appelants de ce controle, j'ai ça :
Code x : Sélectionner tout - Visualiser dans une fenêtre à part
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 System.TypeLoadException Impossible de charger le type 'Mocks.nGantt_GanttControl_0_225210411' à partir de l'assembly 'DesignTools_1879c43c-e366-453f-b645-f8fbcabc6d05, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. à System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType) à System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters() à System.Reflection.RuntimeMethodInfo.GetParametersNoCopy() à System.Reflection.RuntimePropertyInfo.GetIndexParametersNoCopy() à System.Reflection.RuntimePropertyInfo.GetIndexParameters() à System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetProperties(Type type) à System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetProperties() à System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties() à System.ComponentModel.TypeDescriptor.GetPropertiesImpl(Object component, Attribute[] attributes, Boolean noCustomTypeDesc, Boolean noAttributes) à System.Windows.PropertyPath.ResolvePropertyName(String name, Object item, Type ownerType, Object context, Boolean throwOnError) à MS.Internal.Data.PropertyPathWorker.GetInfo(Int32 k, Object item, SourceValueState& svs) à MS.Internal.Data.PropertyPathWorker.ReplaceItem(Int32 k, Object newO, Object parent) à MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange) à MS.Internal.Data.ClrBindingWorker.AttachDataItem() à System.Windows.Data.BindingExpression.Activate(Object item) à System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt) à System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance) à MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance) à MS.Internal.Data.DataBindEngine.Run(Object arg) à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) à System.Windows.Threading.DispatcherOperation.InvokeImpl() à System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) à System.Windows.Threading.DispatcherOperation.Invoke() à System.Windows.Threading.Dispatcher.ProcessQueue() à System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) à MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) à MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) à System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) à MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) à MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) à System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) à System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) à System.Windows.Application.RunDispatcher(Object ignore) à System.Windows.Application.RunInternal(Window window) à System.Windows.Application.Run(Window window) à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.RunApplication() à Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.DesignerProcess.<>c__DisplayClass5_0.<Main>b__0() à System.Threading.ThreadHelper.ThreadStart_Context(Object state) à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) à System.Threading.ThreadHelper.ThreadStart()
J'ai lu qu'il fallait réinstaller le Frameword, mais moi, ça me fait ça sur 2 PC différents.
J'ai nettoyé et recompilé mon projet une trentaine de fois.
Je désespère...
Est ce que quelqu'un à une idée ?
Partager