Warning: Table './planetar_drpl3/sessions' is marked as crashed and should be repaired query: SELECT u.*, s.* FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.sid = 'e289370fbd3c5d19fbf33c2071505a5c' in /home/planetar/public_html/blendtips/includes/database.mysql.inc on line 172

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 811

Warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 488

Warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 489

Warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 490

Warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/bootstrap.inc on line 491
Drupal
warning: Cannot modify header information - headers already sent by (output started at /home/planetar/public_html/blendtips/includes/database.mysql.inc:172) in /home/planetar/public_html/blendtips/includes/common.inc on line 141.

Wrapping text on a 3D sphere


Use a visual brush to wrap text onto a 3D sphere. Type in whatever text you want and see it wrap. The slider allows you to resize the text. This example is described in Chapter 12 of the Blend Bible. Download the .exe file. (Save first, then run.) Download the project file

RSS feed reader


This is a working RSS feed reader for the Science/Nature BBC News. It databinds the feed to an ItemsControl and nests the ItemsControl into a ScrollViewer. The links are actived by adding a hyperlink into the XAML code. This basic technique for creating an RSS feed reader is covered in Chapter 3. The hyperlinks are covered in Chapter 21. Download the exe file. (Save it first, and then run it.) Download the project file. View the XAML.

Tutorial: Adding context menus


Context menus are not available to be created in a WYSIWIG way like you can create almost everything else for your user interface in Blend. On the one hand, this makes creating context menus, slightly annoying, and on the other hand, it makes you appreciate the ease in which you can create almost everything else with Blend. Here's the basic steps for creating context menus.Part 1 describes how to create it, and part 2 describes how to add events.
Creating the Context Menu
1)Select the item that you want the context menu to apply to.
2)In the Miscellaneous palette, click the New button beside Context Menu. This opens up a panel with lots of options.
3)Scroll down and click the button beside Items (Collection) to bring up the Collection Editor.
4)In the Collection Editor click Add Another Item. This brings up the Select Object dialog box.
5)In the Search box, type Menu, and then select Menu from the list and click OK.
6)In the Collection Editor you can use the Properties panel on the right to assign values to define the look of the menu.
7)In the Common Properties palette in the Collection Editor, click the button beside Items (Collection).
8)Click the Add Another Item button and type Menu into the Search field again. This time, choose MenuItem. Then type in its Header property in the Common Properties palette. And repeat this for as many menu items that you want. (To nest menu items, click the Items (Collection) button instead of Add Another Item button.)
9)Click OK when all your items are added. Click OK again to exit the Collection Editor.
10) Test your context menu.
Adding events to the menu items of the context menu
To add events to the menu items, so that they function, you need to manually enter the events in the XAML. The following is an example of the XAML of a simple context menu.
<Ellipse Fill="#FF7CC137" Stroke="#FF000000" Margin="140,93,102,97">
   <Ellipse.ContextMenu>
       <ContextMenu>
         <Menu>
             <MenuItem Header="Save">
            <MenuItem Header="Open">
            <MenuItem Header="Close">
         </Menu>
       </ContextMenu>
   </Ellipse.ContextMenu>
</Ellipse>
Now it's just a matter of adding the Event=”EventHandlerName” for each MenuItem. However, adding events in XAML do not automatically set up the event handler in the code-behind file. One thing you may want to do first, is create the entire menu in the same window or page without it being a context menu, just to add the event handlers, then when you delete the menu, the event handlers do not get deleted. You can then create the menu again as a context menu and easily add all the event handlers by hand in the XAML.

Creating a video player


This video player does not require you to write any code. The Play, Pause, and Stop buttons work as expected, along with the sliders. The Rewind button starts the video again from the beginning. The instructions for creating this video player are found in Chapter 14 of the Blend Bible. And check out www.deliciousadventures.com for more about tofu. View it as an XBAP. Download the project file. View the XAML

Displaying information from an XML data source with multiple arrays


This example shows the master/detail relationship between the categories and the multiple items that are contained in those categories. While this example displays only two categories and two records for each, there's no reason why it couldn't be easily expanded to display many categories and many records for each category -- just by adding information to the XML file. Details for creating this example are discussed in Chapter 21 of the Blend Bible.Download the .exe file. (Save first, then run.) Download the project folder. View the XAML. View the XML file.

Displaying information from an XML data source


Selecting an item in the list box brings up the corresponding text and image. This example was created without writing any code. For instructions, see Chapter 21 of the Blend Bible. Download the .exe file. (Save first, then run.) Download the project folder. View the XAML.

Handoff animation


Handoff animation allows for a natural flow of movement to the different views of the submarine, as the user clicks the buttons. How to create this example is described in Chapter 14 of the Blend Bible.Download the exe file. (Save first, then run.) Download the project file.

Using GridSplitters


Allow the user to resize sections of the page or window, using gridsplitters. The instructions for doing this are found in Chapter 3 of Blend Bible. Download the exe file. (Save first, then run.) Download the Blend project folder. View the XAML.

Using a visual brush


Using a visual brush to create an interactive reflection of the button. This example is described in Chapter 6 of the Blend Bible. Download the exe file. (Save first, then run.) Download the project folder. View the XAML.

Setting up multiple columns in a flow document


You can specify the width of the columns in a flow document reader so that it automatically creates or deletes columns when it resizes. For instructions on how to do this, see Chapter 9 of the Blend Bible. Download the .exe file. Save first, then run. Download the project folder. View the XAML.

Syndicate content