<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Forum du club des développeurs et IT Pro - Windows Presentation Foundation</title>
		<link>https://www.developpez.net/forums/</link>
		<description><![CDATA[Forum d'entraide sur le développement d'applications Windows avec Windows Presentation Foundation]]></description>
		<language>fr</language>
		<lastBuildDate>Sat, 18 Apr 2026 07:14:20 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>15</ttl>
		<image>
			<url>https://forum.developpez.be/images/misc/rss.png</url>
			<title>Forum du club des développeurs et IT Pro - Windows Presentation Foundation</title>
			<link>https://www.developpez.net/forums/</link>
		</image>
		<item>
			<title>Envoi e-mails avec MailKit via smtp outlook</title>
			<link>https://www.developpez.net/forums/showthread.php?t=2182885&amp;goto=newpost</link>
			<pubDate>Thu, 26 Mar 2026 20:32:56 GMT</pubDate>
			<description>Je suis en train de...</description>
			<content:encoded><![CDATA[<div>Je suis en train de m’arracher les cheveux avec l’envoi de mails via MailKit sur des comptes Outlook (@outlook.fr).<br />
<br />
Config classique :<br />
<br />
smtp.office365.com<br />
port 587<br />
STARTTLS<br />
mot de passe d’application (MFA activé)<br />
<br />
Côté code :<br />
<br />
Connect OK<br />
mais ça plante sur Authenticate()<br />
pas d’erreur claire &#8594; timeout / refus silencieux<br />
<br />
J’ai testé à peu près tout :<br />
<br />
réseau OK (Test-NetConnection)<br />
TLS forcé en 1.2<br />
suppression XOAUTH2<br />
mot de passe régénéré<br />
test avec code minimal MailKit &#8594; même résultat<br />
<br />
Bref, tout semble correct… sauf que ça ne marche pas.<br />
<br />
Du coup je me pose la vraie question :<br />
<br />
Vous faites comment aujourd’hui pour envoyer des mails depuis une appli avec une adresse @outlook.fr ?<br />
<br />
SMTP classique + mot de passe d’application &#8594; ça marche chez vous ?<br />
obligé de passer en OAuth2 ?<br />
ou vous utilisez un SMTP externe (OVH, Infomaniak…) avec une adresse Outlook en expéditeur ?<br />
<br />
Parce que là, Outlook donne vraiment l’impression d’être devenu imprévisible sur le SMTP.<br />
<br />
Merci pour vos retours.</div>

]]></content:encoded>
			<category domain="https://www.developpez.net/forums/f914/dotnet/developpement-windows/windows-presentation-foundation/">Windows Presentation Foundation</category>
			<dc:creator>wd_newbie</dc:creator>
			<guid isPermaLink="true">https://www.developpez.net/forums/d2182885/dotnet/developpement-windows/windows-presentation-foundation/envoi-e-mails-mailkit-via-smtp-outlook/</guid>
		</item>
		<item>
			<title><![CDATA[Problème de mise à l'échelle]]></title>
			<link>https://www.developpez.net/forums/showthread.php?t=2180709&amp;goto=newpost</link>
			<pubDate>Sun, 30 Nov 2025 11:31:34 GMT</pubDate>
			<description><![CDATA[Bonjour, 
J'ai un problème...]]></description>
			<content:encoded><![CDATA[<div>Bonjour,<br />
J'ai un problème avec un polyline en fonction de la mise à l'échelle de Windows:<br />
Lorsque je développe mon appli sur mon portable qui à une mise à l'échelle de l'écran de 150%, j'ai mon Polyline (en rouge) qui est bien en superposition de l'image qui lui est associée:<br />
<img src="https://www.developpez.net/forums/attachments/p672216d1764501800/dotnet/developpement-windows/windows-presentation-foundation/probleme-mise-l-echelle/capture-d-ecran-150.png/" border="0" alt="Nom : Capture d’écran 150.png
Affichages : 217
Taille : 65,0 Ko"  style="float: CONFIG" /><br />
Quand je passe sur une autre mise à l'échelle de l'écran (100%) ou sur un autre PC, j'ai ça:<br />
<img src="https://www.developpez.net/forums/attachments/p672217d1764501879/dotnet/developpement-windows/windows-presentation-foundation/probleme-mise-l-echelle/capture-d-ecran-100.png/" border="0" alt="Nom : Capture d’écran 100.png
Affichages : 209
Taille : 52,7 Ko"  style="float: CONFIG" /><br />
alors que le reste de mon application s'adapte très bien à ce changement d'échelle.<br />
Est-ce que quelqu'un pourrait me dire comment faire pour que ma Polyline suive la mise à l'échelle ?<br />
<br />
Faut-il faire un ScaleTransform &quot;bindé&quot; sur l'échelle de l'écran Windows?<br />
<br />
Merci d'avance pour votre réponse</div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Images attachées</legend>
				<div style="padding:10px">
				<img class="attach" src="https://www.developpez.net/forums/attachments/p672216d1764501800/dotnet/developpement-windows/windows-presentation-foundation/probleme-mise-l-echelle/capture-d-ecran-150.png/" alt="" />&nbsp;<img class="attach" src="https://www.developpez.net/forums/attachments/p672217d1764501879/dotnet/developpement-windows/windows-presentation-foundation/probleme-mise-l-echelle/capture-d-ecran-100.png/" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="https://www.developpez.net/forums/f914/dotnet/developpement-windows/windows-presentation-foundation/">Windows Presentation Foundation</category>
			<dc:creator>sibama</dc:creator>
			<guid isPermaLink="true">https://www.developpez.net/forums/d2180709/dotnet/developpement-windows/windows-presentation-foundation/probleme-mise-l-echelle/</guid>
		</item>
		<item>
			<title><![CDATA[Evenenements "Loaded", "LayoutUpdated", "SizeChanged" non déclenchés sur un usercontrol]]></title>
			<link>https://www.developpez.net/forums/showthread.php?t=2177443&amp;goto=newpost</link>
			<pubDate>Wed, 11 Jun 2025 09:34:38 GMT</pubDate>
			<description>Bonjour, 
 
Je créé un...</description>
			<content:encoded><![CDATA[<div>Bonjour,<br />
<br />
Je créé un usercontrol de façon dynamique et je le mets dans une grid.<br />
<br />
Mais, j'ai les évenements :  &quot;Loaded&quot;, &quot;LayoutUpdated&quot;, &quot;SizeChanged&quot; qui ne sont pas déclenché (ce qui casse mon algo).<br />
<br />
Pourriez vous me dire comment faire pour qu'ils se déclenchent ?<br />
<br />
D'avance, merci :)<br />
Florence.</div>

]]></content:encoded>
			<category domain="https://www.developpez.net/forums/f914/dotnet/developpement-windows/windows-presentation-foundation/">Windows Presentation Foundation</category>
			<dc:creator>Flow_75</dc:creator>
			<guid isPermaLink="true">https://www.developpez.net/forums/d2177443/dotnet/developpement-windows/windows-presentation-foundation/evenenements-loaded-layoutupdated-sizechanged-non-declenches-usercontrol/</guid>
		</item>
		<item>
			<title><![CDATA[Optimisation d'un PathGeometry]]></title>
			<link>https://www.developpez.net/forums/showthread.php?t=2176613&amp;goto=newpost</link>
			<pubDate>Sun, 04 May 2025 18:59:12 GMT</pubDate>
			<description>Bonjour, 
 
Dans le cadre...</description>
			<content:encoded><![CDATA[<div>Bonjour,<br />
<br />
Dans le cadre d'un projet j'ai besoin de dessiner un ensemble de figures, chaque figure étant composée de segments reliés par des arcs.<br />
<br />
Pour se faire j'ai créé un PathGeometry sur le modèle suivant:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><table cellspacing="0" cellpadding="0"><tr><td valign="top" width="33"><div style="border: 1px dashed gray; padding-left: 5px; padding-right: 5px; margin-right: 5px; text-align: right; font-family: monospace">1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br /></div></td><td valign="top"><pre style="margin: 0">                                    &lt;Path Stroke=<span style="color: #FF0000;">&quot;DimGray&quot;</span> StrokeThickness=<span style="color: #FF0000;">&quot;3&quot;</span> Name=<span style="color: #FF0000;">&quot;TubeGuide1&quot;</span> Visibility=<span style="color: #FF0000;">&quot;Collapsed&quot;</span> &gt;
                                        &lt;Path.Data&gt;
                                            &lt;PathGeometry&gt;
                                                &lt;PathGeometry.Figures&gt;
                                                    &lt;PathFigure x:Name=<span style="color: #FF0000;">&quot;TG1SousSFPStartPoint&quot;</span> StartPoint=<span style="color: #FF0000;">&quot;0,0&quot;</span> &gt;
                                                        &lt;PathFigure.Segments&gt;
                                                            &lt;LineSegment x:Name=<span style="color: #FF0000;">&quot;TG1SousSFPPoint&quot;</span> Point=<span style="color: #FF0000;">&quot;0,0&quot;</span>/&gt;
                                                        &lt;/PathFigure.Segments&gt;
                                                    &lt;/PathFigure&gt;
                                                    &lt;PathFigure x:Name=<span style="color: #FF0000;">&quot;TG1CourbeSFPStartPoint&quot;</span> StartPoint=<span style="color: #FF0000;">&quot;0,0&quot;</span>&gt;
                                                        &lt;PathFigure.Segments&gt;
                                                            &lt;BezierSegment x:Name=<span style="color: #FF0000;">&quot;TG1CourbeSFPBezier&quot;</span> Point1=<span style="color: #FF0000;">&quot;0,0&quot;</span> Point2=<span style="color: #FF0000;">&quot;0,0&quot;</span> Point3=<span style="color: #FF0000;">&quot;0,0&quot;</span>/&gt;
                                                        &lt;/PathFigure.Segments&gt;
                                                    &lt;/PathFigure&gt;
                                                    &lt;PathFigure x:Name=<span style="color: #FF0000;">&quot;TG1SousSFAStartPoint&quot;</span> StartPoint=<span style="color: #FF0000;">&quot;0,0&quot;</span>&gt;
                                                        &lt;PathFigure.Segments&gt;
                                                            &lt;LineSegment x:Name=<span style="color: #FF0000;">&quot;TG1SousSFAPoint&quot;</span> Point=<span style="color: #FF0000;">&quot;0,0&quot;</span>/&gt;
                                                        &lt;/PathFigure.Segments&gt;
                                                    &lt;/PathFigure&gt;
                                                    &lt;PathFigure x:Name=<span style="color: #FF0000;">&quot;TG1CourbeSFAStartPoint&quot;</span> StartPoint=<span style="color: #FF0000;">&quot;0,0&quot;</span>&gt;
                                                        &lt;PathFigure.Segments&gt;
                                                            &lt;BezierSegment x:Name=<span style="color: #FF0000;">&quot;TG1CourbeSFABezier&quot;</span> Point1=<span style="color: #FF0000;">&quot;0,0&quot;</span> Point2=<span style="color: #FF0000;">&quot;0,0&quot;</span> Point3=<span style="color: #FF0000;">&quot;0,0&quot;</span>/&gt;
                                                        &lt;/PathFigure.Segments&gt;
                                                    &lt;/PathFigure&gt;
                                                    &lt;PathFigure x:Name=<span style="color: #FF0000;">&quot;TG1SousGrilleStartPoint&quot;</span> StartPoint=<span style="color: #FF0000;">&quot;0,0&quot;</span>&gt;
                                                        &lt;PathFigure.Segments&gt;
                                                            &lt;LineSegment x:Name=<span style="color: #FF0000;">&quot;TG1SousGrillePoint&quot;</span> Point=<span style="color: #FF0000;">&quot;0,0&quot;</span>/&gt;
                                                        &lt;/PathFigure.Segments&gt;
                                                    &lt;/PathFigure&gt;
                                                    &lt;PathFigure x:Name=<span style="color: #FF0000;">&quot;TG1CourbeGrilleStartPoint&quot;</span> StartPoint=<span style="color: #FF0000;">&quot;0,0&quot;</span>&gt;
                                                        &lt;PathFigure.Segments&gt;
                                                            &lt;BezierSegment x:Name=<span style="color: #FF0000;">&quot;TG1CourbeGrilleBezier&quot;</span> Point1=<span style="color: #FF0000;">&quot;0,0&quot;</span> Point2=<span style="color: #FF0000;">&quot;0,0&quot;</span> Point3=<span style="color: #FF0000;">&quot;0,0&quot;</span>/&gt;
                                                        &lt;/PathFigure.Segments&gt;
                                                    &lt;/PathFigure&gt;
                                                    &lt;PathFigure x:Name=<span style="color: #FF0000;">&quot;TG1FinStartPoint&quot;</span> StartPoint=<span style="color: #FF0000;">&quot;0,0&quot;</span>&gt;
                                                        &lt;PathFigure.Segments&gt;
                                                            &lt;LineSegment x:Name=<span style="color: #FF0000;">&quot;TG1FinPoint&quot;</span> Point=<span style="color: #FF0000;">&quot;0,0&quot;</span>/&gt;
                                                        &lt;/PathFigure.Segments&gt;
                                                    &lt;/PathFigure&gt;
                                                &lt;/PathGeometry.Figures&gt;
                                            &lt;/PathGeometry&gt;
                                        &lt;/Path.Data&gt;
                                    &lt;/Path&gt;</pre></td></tr></table></code><hr />
</div>Les coordonnées des points sont affectées par le code.<br />
<br />
Ca fonctionne mais cela ne m'a pas l'air très optimisé car je n'utilise pas la fin d'un segment comme le début de la courbe de bezier associée (je duplique la coordonée dans le code) et la fin de la courbe de bezier comme début du segment suivant...<br />
<br />
Est-ce que quelqu'un pourrait me donner un petit coup de main pour que j'ai un truc du genre:<br />
- un StartPoint<br />
- un segment qui va de ce StartPoint au StartPoint de la 1ere courbe de bezier<br />
- une première courbe de bezier<br />
- un segment qui relie le dernier point de la 1ere courbe de bezier et qui va au StartPoint de la 2nde courbe de bezier<br />
...<br />
- un segment qui va du dernier point de la dernière courbe de bezier au dernier point de ma figure.<br />
 <br />
Merci d'avance.</div>

]]></content:encoded>
			<category domain="https://www.developpez.net/forums/f914/dotnet/developpement-windows/windows-presentation-foundation/">Windows Presentation Foundation</category>
			<dc:creator>sibama</dc:creator>
			<guid isPermaLink="true">https://www.developpez.net/forums/d2176613/dotnet/developpement-windows/windows-presentation-foundation/optimisation-d-pathgeometry/</guid>
		</item>
	</channel>
</rss>
