Welcome to Windows Presentation Foundation (WPF)
Top Tasks :

WPF Community Bloggers

Monday, September 24, 2007 - Posts

  • Drag and Drop con Silverlight 1.0

    Hoy les mostrare como hacer drag and drop de un objeto cualquiera utilizando Silverlight 1.0 . Para comenzar he creado un simple rectángulo al cual le he agregado tres eventos, uno para el evento MouseLeftButtonDown, otro para MouseLeftButtonUp y finalmente uno para MouseMove. < Rectangle MouseLeftButtonUp = " onMouseUp " MouseLeftButtonDown = " onMouseDown " MouseMove = " onMouseMove " Width = " 100 " Height = " 100 " Fill = " #FF095B8D " RadiusX = " 10 " RadiusY = " 10 " StrokeThickness = " 5 " Canvas.Left = " 10 " Canvas.Top = " 10 " /> Pasando a la parte JavaScript, he declarado tres variables, dos para conocer la posición inicial del objeto a mover y otra para saber si estamos arrastrando o no el objeto. var beginX; var beginY; var trackingMouseMove = false ; En el evento MouseDown, capturo la posición X e Y del mouse y las asigno a sus respectivas variables, también Read More...
  • Our Books, Our Selves

    This is a bookshelf in my home that for obvious reasons I think of as the Aldous Huxley Shelf: These are books by and about Aldous Huxley. Most of the books on this shelf were purchased by my teenage self between 1967 and 1971. To make maximum use of available bookshelf space, they are arranged in two rows with the larger books in the rear — a technique of shelving books pioneered by, I believe, James Boswell. My Aldous Huxley Shelf may be a bit excessive, but I don't think it's unusual. Many of the literate people I know have similar enclaves of related books on their shelves, revealing a time in their lives when they burrowed down deep in a particular genre or author. Our books are a history of our lives. In the formation of my identity, these books are as important as my parents and my teachers. My infatuation with the works of Mr. Huxley began, of course, with Brave New World . The paperback edition I have has a print date of August 1967, which probably means I was 14 when I Read More...
  • St. Monday

    I've been reading Ben Willson's The Making of Victorian Values: Decency and Dissent in Britain, 1789-1837 and encountered the following passage describing a custom in this era: In trades where laborers were relatively free, where industry was small in scale and out-work was common, Monday was a day off, whatever employers wanted. This custom — called "St. Monday" by those for whom it was a sacrosanct holiday — was to be enjoyed in the alehouse or rowdy sports. The first day of the week would be used for checking machinery, running repairs and administration. Productivity was not ruined by this custom: workers fitted six days' worth of work into the remaining five. (p. 87-8) The "remaining five" working days include Saturday, of course. Saturday only became a day off in the late 19th and early 20th centuries. But I suspect St. Monday is still celebrated somewhat by people who prefer a smoother and less jarring entrance into the work week. Read More...

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us