.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: The Ins and Outs of ItemsControl

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

Charles Petzold performs more UI magic by implementing a variation of the drag-and-drop that presents users with a natural, fluid look and feel.

Charles Petzold

MSDN Magazine June 2010

View Complete Post

More Related Resource Links

UI Frontiers: Multi-Touch Manipulation Events in WPF


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

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

UI Frontiers: Thinking Outside the Grid


In Windows Presentation Foundation and Silverlight, using a Canvas or a single-cell Grid seems very similar. The difference is in how the container appears to the rest of the layout system. Canvas doesn't participate in layout, so you can use it whenever you need to transcend layout.

Charles Petzold

MSDN Magazine May 2010

UI Frontiers: Projection Transforms Sans Math


See how to taper text, flip panels, animate a calendar and more--without resorting to complicated math--as Charles Petzold delves into new "pseudo 3D" capabilitie in Silverlight 3, made possible by the new Projection UIElement property.

Charles Petzold

MSDN Magazine April 2010

UI Frontiers: MIDI Music in WPF Applications


Every PC contains a built-in 16-piece band ready to play some music. Charles shows you how MIDI support in the NAudio sound library lets you play tunes in your .NET apps.

Charles Petzold

MSDN Magazine March 2010

UI Frontiers: Sound Generation in WPF Applications


A good case could be made that computers should not make noise except in response to a specific user command. We're going to ignore that and show you how to play custom sounds in a WPF application.

Charles Petzold

MSDN Magazine February 2010

B2B Frontiers in E-Commerce: Implement Affiliate Programs to Create New Partnerships and Generate Bu


Like the Internet itself, e-commerce is evolving. Today's e-commerce companies are allowing their customers to plug into existing catalogs and ordering systems, creating new synergistic relationships. Some companies are even adding real-time chat with customer service personnel. This article gives you an overview of some of the new e-commerce concepts and implementations that are helping forge those new relationships with customers, vendors, and shipping companies. The importance of these relationships, as well as the specific technologies used to encourage communication and collaboration are discussed and illustrated with representative code samples.

Ted Coombs

MSDN Magazine May 2000

How can I register a name for a control that is an ItemsControl child?

Hello, How can I register a name for a control that is an ItemsControl child? When I create the controls dynamically in code, the RegisterName works just fine.  However, when those same controls are created by the ItemsControl XAML, RegisterName does not work. Here is the XAML which correctly generates what I want: <Canvas Name="Tab_CanvasTabs"> <Canvas.Resources> <local:CategoryTabs x:Key="myTabs" /> </Canvas.Resources> <ItemsControl Name="Tab_ItemsControl" ItemsSource="{Binding Source={StaticResource myTabs}}"> <ItemsControl.Template> <ControlTemplate TargetType="ItemsControl"> <ItemsPresenter /> </ControlTemplate> </ItemsControl.Template> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Canvas /> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <DataTemplate.Resources> </DataTemplate.Resources> <Canvas Name="Tab_Canvas_X" Tag="{Binding Path=Number}" MouseLeftButtonDown="Event_CategoryTab_Canvas_MouseLeftButtonDown" MouseLeftButtonUp="Event

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

ItemsControl.ItemTemplate with UserContol

I am trying to define an ItemsControl which would show some arbitrary list of usercontrols.  I am using this technique (some code removed for brevity):          <ItemsControl ItemsSource="{Binding Devices}">             <ItemsControl.ItemsPanel>                 <ItemsPanelTemplate>                     <Canvas />                 </ItemsPanelTemplate>             </ItemsControl.ItemsPanel>             <ItemsControl.ItemTemplate>                 <DataTemplate> <!-- I would like to be able to put some UI treatment around each item here -->                 </DataTemplate>             </ItemsControl.ItemTemplate>         </I

Is there a person that knows the ins and outs about web development that i can call and talk to over

Hello i am new and am understanding alot but there are a few key missing links for me to go further on what direction to go  with my development of websites and someone who is current that i can speak with for about 15 minutesis this posible. 

Time outs .....making sense of all options


I am running across some session time outs in infopath and on occassion timeouts with sharepoint in general.  So doing some research I have only confused myself more.  So I ask to help provide some light on how to mesh all the different configuration settings together.

SharePoint Farm environment info:  All servers are server 2008 x64 OS, IIS 7, MOSS 2007 x64 enteprise sp2 with august cu, sql server 2008 x64.  all have latest patches and updates.

so trying to mesh together timeouts in general with features, webparts, form services, reporting services, excel services and all other items that can/do timeout

  • so first was the allow large files by kb article (default iis connection time out is 120 seconds): 925083  http://support.microsoft.com/kb/925083
  • then some infopath timeouts that show invalid canary in the uls logs, one solution was change the iis asp session time out found here (default of 20 minutes):  http://technet.microsoft.com/en-us/library/cc725820(WS.10).aspx 
  • then in central administration under the web application general settings there is security validation time out is set to 30 minutes
  • then in central administration you can configure the sessio

ItemsControl.PrepareContainerForItemOverride not called for new items


I have a problem with a third party control that I'm trying to fix or work around. (ElementControl from http://fluidkit.codeplex.com/)

That control is a subclass of ItemsControl and overrides PrepareContainerForItemOverride to create a WPF3D wrapper for each item. (The goal is to show a nice, animated 3D gallery of the items.)

This works correctly the firsttime the ItemsSource is set. However, if the ItemsSource is later replaced with a different list of items, PrepareContainerForItemOverride is apparently not called again. This leads to crashes since the control expects these WPF3D wrappers to exist.

How can I ensure that PrepareContainerForItemOverride is called for these new items?
Should the control be changed to use a different approach for creatin the WPF3D wrappers? (PrepareContainerForItemOverride seems to be the only approach that allows using ItemTemplates.)
Any other advice?


why is that when i insert images tooltips take longer to load, also, Pop-up time-outs, can this be c


Why is that when i insert images the pop-ups take longer to load!?

I'm using an image that show's a question mark for tooltips (only 7Kb in size), the idea is you hover above the image and a tooltip appears giving information regarding the adjacent question (i'm developing an accident tracking system, so some questions relate to working lost days and i want to give users an explanation as to why i'm asking for certain information)

As i say, with each image i add the tool tips seem to take longer to appear?!

Also, is there a way of adjusting how long the tool tips appear for?

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

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

Unexpected seemingly random log outs


Good evening all,

We have an web app for which we've rolled our own authentication. Sometimes the users are logged out for no apparent reason. The session and authentication periods are set to 1 hour and 2 hours respectively, yet when the user enters data into a form and clicks OK, he/she will sometimes be logged out even though having logged in just a few minutes prior. The authentication code is pretty simple.

FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1, logonUser.ID.ToString(), DateTime.Now, DateTime.Now.AddMinutes((int)((Session.Timeout) * 2)), false, logonUser.ID.ToString());

Any ideas? Thanks in advance!


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