Bonjour,
J'ai un souci concernant les applications WPF sous Server 2003 en TSE.
Dés que je place un élément sur mon appli celle ci ne se lance pas et dans l'observateur d'événements j'ai un problème avec 'presentationcore' dans 'system.typeinitialization'.
Mais ça :
...ça passe.
Code XML : 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 <Window x:Class="TSENoDegrad.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Window.Resources> <Style x:Key="BtnSimple" TargetType="{x:Type Button}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Button}"> <Grid Cursor="Hand"> <Viewbox x:Name="CloseBtn"> <Canvas Width="70.9997" Height="71" Background="Red"> </Canvas> </Viewbox> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> </Window.Resources> <Grid> <Rectangle Height="138" HorizontalAlignment="Left" Margin="128,60,0,0" Name="rectangle1" Stroke="Green" VerticalAlignment="Top" Width="223" /> <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="160,255,0,0" Name="button1" VerticalAlignment="Top" Width="75" Style="{StaticResource BtnSimple}" /> </Grid> </Window>
Visiblement le plantage apparaitrait lorsque je laisse le style par défaut.
J'ai essayé dans style plus élaborés avec des gradientbrush ça ne marche pas non plus.
Quelqu'un a t'il eu quelque chose de similaire?
Une piste?
Merci.
Partager