http://blogs.silverlight.net/blogs/jesseliberty/archive/2010/01/28/mvvm-it-s-not-kool-aid.aspx
mercredi 21 avril 2010
Silverlight: Refresh DataGrid
http://stackoverflow.com/questions/1826593/silverlight-3-how-to-refresh-a-datagrid-content
vendredi 5 mars 2010
Silverlight 3: Copier Coller du texte
La version 3 de SL ne permet pas d'avoir le menu contextuel habituel en faisant un click droit, donc pas possible de faire du copier/coller avec click droit.. en effet, le click droit sera géré dans Silverlight 4.
Cet article présente une solution pour contourner le problème :
http://geekswithblogs.net/bdiaz/archive/2010/03/01/a-simple-selectable-silverlight-textblock-sort-of.aspx
mardi 23 février 2010
mercredi 10 février 2010
A new age
After several months in a crapy mission with self absorbed people, I'm glad to have this new start in a new Silverlight 3 project. This might sound dumb, but it's so releaving to see that the people you're dealing with are more into their job and more interested into going forward than in their ego and doing everything to look better than anyone, while they actually suck !
I'm creating styles for SL3 controls, and probably will turn to creating custom controls. It's really exciting to work on new stuff, pull your hair out to fix and solve things ! the work load and late hours don't matter anymore, you're into it and glad to be ! It feels alive !
I've been making a mistake thinking i don't need Expression Blend, but it turned out to be a very interesting and powerful tool, not meant only for designers, but also for developpers.
I'll try and post new things about styles in SL within the next weeks.
This is only the start, and hopefully this will last for very long !
jeudi 6 août 2009
Windows Forms: Cycle de vie
Démarrage du formulaire :
System.Windows.Forms.Control.HandleCreated
System.Windows.Forms.Control.BindingContextChanged
System.Windows.Forms.Form.Load
System.Windows.Forms.Control.VisibleChanged
System.Windows.Forms.Form.Activated
System.Windows.Forms.Form.Shown
Fermeture du formulaire :
System.Windows.Forms.Form.Closing
System.Windows.Forms.Form.FormClosing
System.Windows.Forms.Form.Closed
System.Windows.Forms.Form.FormClosed
System.Windows.Forms.Form.Deactivate
Order of Events in Windows Forms
Consuming events
Events and Delegates
lundi 1 juin 2009
Ne pas déployer une application ASP.NET en production avec debug="true"
Si une application est déployée en production avec <compilation debug="true"/> :
1. La compilation des pages asp.net prend plus de temps (puisque certains batchs d'optimisation sont désactivés);
2. Le code peut s'exécuter plus lentement (car des élements additionnels de debug sont activés);
3. Utilisation d'avantage de mémoire au moment de l'exécution;
4. Les scripts et images téléchargés depuis le handler WebResources.axd ne sont pas mis en cache.
Pour s'assurer qu'aucune application ne sera déployée en production avec <compilation debug="true"/> activé, il est possible d'utiliser l'élement <deployment> dans machine.config comme suit :
<configuration>
<system.web>
<deployment retail="true"/>
</system.web>
</configuration>
Ceci désactivera <compilation debug="true"/>, désactivera le traçage de sortie dans une page et desactivera la possibilité d'afficher le détail des messages d'erreur.
Source:
Don’t run production ASP.NET Applications with debug=”true” enabled
Plus d'infos:
http://www.aspdotnetfaq.com/Faq/What-does-deployment-retail-true-attribute-in-machine-config-file-means.aspx
http://msdn.microsoft.com/fr-fr/library/ms228298(VS.80).aspx