.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

UI Frontiers: Multi-Touch Manipulation Events in WPF

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

Multi-touch has progressed from being a futuristic prop of sci-fi films to a mainstream means of user interface. We'll show you how support for multi-touch in Windows 7 has filtered down and settled into various areas of the .NET Framework.

Charles Petzold

MSDN Magazine August 2010

View Complete Post

More Related Resource Links

UI Frontiers: Multi-Touch Inertia


One of the ways in which a multi-touch interface attempts to mimic the real world is by introducing inertia. We'll show you how easy this is to duplicate in your own WPF apps.

Charles Petzold

MSDN Magazine October 2010

Finger Style: Exploring Multi-Touch Support in Silverlight


Touch isn't just a form of mouse input in Silverlight: Sometimes what's required are controls specialized and optimized for touch.

Charles Petzold

MSDN Magazine March 2010

UI Frontiers: Touch and Response

Charles Petzold continues his exploration of multi-touch Manipulation events in the Windows Presentation Foundation and shows you how to design custom classes to decorate elements and provide visual feedback to users.Charles PetzoldMSDN Magazine September 2010

Get Today's Events from A Calendar That Contains Multi-Day Events as Well as Recurring Events


I'm having trouble getting a list of today's events from a default calendar.

I've tried the following two CAML queries:

 <FieldRef Name=\"EventDate\" />
 <FieldRef Name=\"EndDate\" />
 <FieldRef Name=\"RecurrenceID\" />
 <Value Type=\"DateTime\"><Month /></Value>

Which resulted in the following Exception:

    One or more field types are not installed properly. Go to the list settings page to delete these fields.0x81020014

The calendar list is a default calendar list ie. no additional fields and no changes to the Eve

a multi-touch problem for listbox

we know it support the multi-touch in WPF4, and we know if SurfaceListBox's SelectionMode is Multiple, when user touch two items, two surfaceListBoxItem will be selected. but I try it in the listbox, find it is only select a item, not two item. Can you tell me how to implement it? thanks. 

How do I use AddHandler to listen for handled touch events?


I have a UserControl in a SurfaceScrollViewer, and I would like to handle the TouchMove event on a Grid in the UserControl.  However, the SurfaceScrollViewer seems to be 'eating up' the PreviewTouchMoveEvent; it never fires for the grid in the UserControl.

My inclination was to use the AddHandler() method on the Grid with handledEventsToo set to true:

grid_area.AddHandler(Grid.PreviewTouchMoveEvent, new RoutedEventHandler(grid_area_PreviewTouchMove), true);

but it never gets to grid_area_PreviewTouchMove() when the grid is touched.  What am I doing wrong? 

Also, why isn't there a TouchEventHandler in WPF .NET 4.0?


UI Frontiers: The Intricacies of Touch Controls


Charles is intrigued by the Windows Phone 7 touch controls and tries to duplicate them in Windows Presentation Foundation, finding out that good multi-touch coding is a lot harder than it seems.

Charles Petzold

MSDN Magazine November 2010

Transmit touch manipulation


I need to start manipulation inside one control and end it in another. Scheme of manipulation:

1. User touches the screen

2. Control that received TouchDown event replaced by another control

3. Manipulation events should be handled by new control (ManipulationDelta and ManipulationInertiaStarting).

The problem is that new control does not receive any manipulation events even if I specify in old control ManipulationStarting handler ManipulationContainer of ManipulationStartingEventArgs as new control.

I tried simulate TouchDown event inside new control immediately immediately after it loaded, but it receives no Manipulation events. Raising event in new control:

RaiseEvent(new TouchEventArgs(TouchEventArgs.TouchDevice, TouchEventArgs.Timestamp) {  RoutedEvent=TouchDownEvent});    TouchEventArgs - is args received in old control TouchDown event handler.

Am I missing something?

WCF Tutorial - Events and Callbacks

we described how to make a very simple client/server application where clients would call functions on the server through a shared interface. In this tutorial, I'm going to expand that application to allow the server to execute functions on the client by using callbacks. Essentially, this is WCF's mechanism to allow events to be raised from the server to it's connected clients.

Multi-threading in .NET: Introduction and suggestions

This article uses the C# type shorthands throughout - int for Int32 etc. I hope this makes it easier for C# developers to read, and won't impede any other developers too much. It also only talks about the C# ways of declaring variables to be volatile and locking monitors. Developers using other languages can find the equivalents in their own preferred environment, I'm sure.

Delegates and events in c#.net

People often find it difficult to see the difference between events and delegates. C# doesn't help matters by allowing you to declare field-like events which are automatically backed by a delegate variable of the same name. This article aims to clarify the matter for you. Another source of confusion is the overloading of the term "delegate". Sometimes it is used to mean a delegate type, and at other times it can be used to mean an instance of a delegate type. I'll use "delegate type" and "delegate instance" to distinguish between them, and "delegate" when talking about the whole topic in a general sense.

Multi File Upload Using JQuery!

Everyone knows about the file upload in .NET. But the multi file upload is some what difficult in .NET. For that purpose we can have some AJAX or JQuery!. Jquery is the latest advanced version. It will give some animated upload. You can try it for your own!!!!

Could some one tell me whats the Problem with this String Manipulation ??? C#.net



I store some values from code behind to a label which is Hidden !

<asp:Label ID="lbl_Hidden" runat="server" Visible = "false"></asp:Label>

and at the page load event i retrieve the value of the label & assign it to a string !

stringvalue = lbl_Hidden.Text;

Now i dont know why this manipulation does'nt work !

I've a character 'A' in the string and i'm unable to replace it with a space !

stringvalue.Replace(A, " ");

Wot do u think abt it ????

How to listen to events within a listview



I've got a listview and I've put a button control in one of the columns, I'm trying to figure out how I have listen to the button click within a certain row, but can't see the button in the dropdown for the IDs I can generate events for.

I'd like to get the primary key of the row that's been clicked on and then run a sql statement against it.

Any help would be appreciated.

Change Button Text in Multi Language Website


Hi i developing multi language website

using Master pages

everything fine

Page_Load i set the Text property of Button Control from Resource file

like this

Button1.Text = GetLocalResourceObject("Button1")

then in the button click event i cnage the text of the Button control

Button1.Text = GetLocalResourceObject("Button1_new")

but the text doesn't change and no error messgae

what is the problem how to solve this


For Multi-Language website which process is better in asp.net


 I want to build multi-language website in asp.net 2008 and asp.net 2010. So, which process is better for building application? Using either Local and Global Resource or New Folder to make separate according to language?


Application performance should be good and also easy manageable.


Please suggest me in which way I will build the application either using resource or folder. If there is any other better solution then please share.

UI Frontiers: The Fluid UI in Silverlight 4


Charles Petzold shows how to extend the limited fluid UI capabilities of Silverlight 4 with new techniques so you too can dazzle users with those cool object entrances and transitions.

Charles Petzold

MSDN Magazine July 2010

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend