WPFfor d

rumbu rumbu at rumbu.ro
Tue Feb 19 01:29:40 PST 2013


On Tuesday, 19 February 2013 at 09:06:37 UTC, Jacob Carlborg 
wrote:

>
> Also on a device with a touch screen you need larger buttons. 
> Using them same buttons on a desktop application would just be 
> a waste of space that could be used for the content area 
> instead. You can use a lot smaller buttons on a desktop 
> application where you have access to a mouse. Using the same 
> small buttons on a device with a touch screen would not be very 
> smart.
>
> BTW, what Microsoft is doing with Windows 8, I think that's so 
> wrong I don't know how to describe it.
>


That's the power of a declarative UI: separate behaviour and 
design. If you want a larger button, touch sensitive - even 
thought sensitive :), just change the design to better suit 
device features, but don't change the behaviour. Just to keep 
your scroll bar example: in desktop world we can keep the scroll 
bar visible on the screen. In the touch sensitive world, we can 
hide most of scrollbar content, keep only some arrows to tell the 
user there is more data, but leave it to respond to common 
gestures to scroll up and down. From the programmer perspective, 
The scrollbar object will have the same methods, same events and 
the same properties. The end user/designer will call/use these 
methods/properties performing different actions specific to 
target device.



More information about the Digitalmars-d mailing list