bonjour
voici un petit programme tout simple pour afficher un biseau sur un disque via BGevelBitmapEffect.
Il fonctionne parfaitement sous express 2008 mais n'affiche pas le biseau sous express 2010 . Je sais que cette instruction devient obsolète mais je pensais pouvoir encore l'utiliser.
Comment faire pour avoir alors la fonctionnalité
Par avance merci
Code : 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 <Window x:Class="DESSIN20.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid> <Image Name="Image1" Stretch="None"> <Image.Source> <DrawingImage> <DrawingImage.Drawing> <GeometryDrawing> <GeometryDrawing.Geometry> <EllipseGeometry Center="100 100" RadiusX="50" RadiusY="50"/> </GeometryDrawing.Geometry> <GeometryDrawing.Brush> <SolidColorBrush Color="Aquamarine"/> </GeometryDrawing.Brush> </GeometryDrawing> </DrawingImage.Drawing> </DrawingImage> </Image.Source> <Image.BitmapEffect> <BevelBitmapEffect BevelWidth="5" EdgeProfile="CurvedIn" LightAngle="40"/> </Image.BitmapEffect> </Image> </Grid> </Window>
Partager