Saturday, November 9, 2013
Leyte Island
From : Journal de Montréal.
Tacloban, 220 000 habitants, est la capitale de la province de Leyte, une île de deux millions de personnes située à l'est des Philippines. Elle se trouvait sur la trajectoire du typhon lorsqu'il était à son maximum, peu après avoir touché terre.
Friday, November 8, 2013
PAFF!
A little more work on the previous example permits a quite powerful result. It turns out the WPF offers the possibility of preview event handlers. In effect, one can define event handlers at any level in the visual tree, coming or going. (The visual tree is not always the same as the logical tree because it is control-specific). Preview events are tunneling events - from the root to the control - as opposed to bubbling events, from the control to the root. See how it works.
And the beauty of the thing is that having another element on top of the rectangle changes nothing. The click, qua event, is ready to execute the first event handler it can find. It will go to the root and find nothing. As it tunnels out, it will encounter the Preview for rectangle as source which is a listening for the click, and execute the fill-with-red command on the pertinent rectangle. As the MSDN library points out, great care needs to be taken in using preview events...
Thursday, November 7, 2013
New Emoti
From MSDN help forums; meet Programming Guy:
Is the following implementation of a control array in my WPF (page) reasonable or is it kind of junior type coding? It is an array of radio buttons in 2 stack panels which I set to ...
It is junior programming :0). What you want to use is...
*************************************************
In point of fact, the issue is a very interesting one. I think of it as the Meow/Quack problem.
It will be recalled that Microsoft introduced Microsoft Presentation Foundation within Visual
Studio to permit the design of interfaces that could, potentially, use any or all existing
technologies in one design: forms, 2D graphics, 3Dgraphics, media in either stand-alone or
browser- hosted applications. The pious hope here, for the development process, was
that graphic designers and programmers could work in conflict-free teams: the designer would
put the visuals together, with an eye to sound information architecture. The programmer would
then wire things together, in blissful tranquility. Problem is...
It is now possible to define the same interface in two entirely different ways: with XAML,
the browser language or with a code-behind language such as C#, meant to deal with interaction
between the user and the application. Indeed, the designer and programmer working separately
will construct two identical but distinct versions of the one interface which will sit one on top of
the other. It thus becomes imperative to settle on one set of interface controls.
Now one of the constraints on the programmer is that he/she is aiming for robust code ie
concise, minimally repetitive and thus easy to follow and maintain. An elegant multi-option
product of the design imagination shows up to the programmer as a problem: how to manage
the user response in an elegant way.
The forum case discussed above posed such a problem. Here is the programmer's helpful
response to his confrère:
Set things up to find out what button was clicked by identifying the sender in a unique
event handler (instead of 8).
Is the following implementation of a control array in my WPF (page) reasonable or is it kind of junior type coding? It is an array of radio buttons in 2 stack panels which I set to ...
It is junior programming :0). What you want to use is...
*************************************************
In point of fact, the issue is a very interesting one. I think of it as the Meow/Quack problem.
It will be recalled that Microsoft introduced Microsoft Presentation Foundation within Visual
Studio to permit the design of interfaces that could, potentially, use any or all existing
technologies in one design: forms, 2D graphics, 3Dgraphics, media in either stand-alone or
browser- hosted applications. The pious hope here, for the development process, was
that graphic designers and programmers could work in conflict-free teams: the designer would
put the visuals together, with an eye to sound information architecture. The programmer would
then wire things together, in blissful tranquility. Problem is...
It is now possible to define the same interface in two entirely different ways: with XAML,
the browser language or with a code-behind language such as C#, meant to deal with interaction
between the user and the application. Indeed, the designer and programmer working separately
will construct two identical but distinct versions of the one interface which will sit one on top of
the other. It thus becomes imperative to settle on one set of interface controls.
Now one of the constraints on the programmer is that he/she is aiming for robust code ie
concise, minimally repetitive and thus easy to follow and maintain. An elegant multi-option
product of the design imagination shows up to the programmer as a problem: how to manage
the user response in an elegant way.
The forum case discussed above posed such a problem. Here is the programmer's helpful
response to his confrère:
Set things up to find out what button was clicked by identifying the sender in a unique
event handler (instead of 8).
Tuesday, November 5, 2013
Sunday, November 3, 2013
Narrator, Anna
Program, Accessoires, Narrator allows one to activate the text-to-speech function on
Windows7. The following vid gives an example (turn up the volume). I have a French
language interface, so the transition is a bit difficult.
An interesting link for francophones:
http://www.tuto-pratique.com/ne-perdez-plus-de-temps-a-lire-laissez-votre-ordinateur-le-faire-pour-vous-partie-1/
Windows7. The following vid gives an example (turn up the volume). I have a French
language interface, so the transition is a bit difficult.
An interesting link for francophones:
http://www.tuto-pratique.com/ne-perdez-plus-de-temps-a-lire-laissez-votre-ordinateur-le-faire-pour-vous-partie-1/
Monday, October 28, 2013
Subscribe to:
Posts (Atom)