Teil von  SELFPHP
  +++ SELFPHP CronJob-Service :: Jetzt auch als Professional-Version verfügbar! +++

:: Anbieterverzeichnis ::

Globale Branchen

Informieren Sie sich über ausgewählte Unternehmen im Anbieterverzeichnis von SELFPHP  

 

:: SELFPHP Forum ::

Fragen rund um die Themen PHP? In über 120.000 Beiträgen finden Sie sicher die passende Antwort!  

 

:: Newsletter ::

Abonnieren Sie hier den kostenlosen SELFPHP Newsletter!

Vorname: 
Name:
E-Mail:
 
 

:: Qozido ::

Die Bilderverwaltung mit Logbuch für Taucher und Schnorchler.   

 
 
Understanding Layout Containers


SELFPHP Produktempfehlung
Microsoft Windows Server 2008
Seite Windows Server 2008
Seite

Microsoft SQL Server 2008
Seite SQL Server 2008
Seite

Microsoft Expression Web 3
Seite Microsoft Expression
Seite


Creating a Canvas Control
Depending on the kind of projects you build in Expression Blend, you may find yourself creating far more canvases than grids or vice-versa. In this case, we’ll start out with a Canvas, purely because it’s a simpler control to get the hang of than the grid. First, you’ll want to know how to identify layout elements.

  1. Open Expression Blend 3 and choose File > New Project. When the New Project window appears, choose Silverlight 3 Application + Website, name the project module03_work and browse to save it in the module03_assets folder, then press OK.
  2. By default, MainPage.xaml contains a UserControl element that will contain everything inside the page, and an element named LayoutRoot. You can see them better if you take a look at the Objects and Timeline panel. You might notice that the LayoutRoot object is indented slightly below UserControl. In fact, MainPage.xaml already contains a nested set of elements and one of them happens to be a Layout Control of the grid persuasion.
  3. Click the LayoutRoot element in Objects and Timeline and make sure the Properties tab is selected.
  4. At the top of the Properties panel there is a text field labeled Name. The value of this field is LayoutRoot. One method for changing an object’s name is by typing it directly in this text field. Below the Name field is an indication of the elements type. In this case the LayoutRoot element is a grid. This is the default, but since you’ll be working with canvases in this section, you’re going to change the type of this element.



    Name and type of the selected object.

  5. Right-click the LayoutRoot element in the Objects and Timeline panel. In the context menu that appears, choose Change Layout Type > Canvas.



    Select Canvas for the layout type.

  6. Now you’ll add another canvas, then we can move on to adding and removing elements from a canvas control. Click and hold the Grid (in the Tools panel) and select Canvas.



    Activating the Canvas control.

  7. Click and drag to draw a canvas anywhere in the artboard. The numbers on the outside of the bounding box as you drag indicate the size of the canvas you’re about to create. Let go when they’re between 200 and 300. The exact size isn’t too important for this exercise.
  8. Using the Objects and Timeline panel, make sure the new canvas is selected and type ChildCanvas in the Name text field of the Properties panel.
  9. With the canvas still selected, click Background Brush, in the Brushes pane of the Properties panel, and then click on the solid color icon.
  10. When the Color palette appears, choose a light grey background color.
  11. Choose the Rectangle tool and draw a rectangle about 100 pixels square inside the ChildCanvas.
    Tip: If you hold down the Shift key while dragging, you can create a square.

    Notice the effect in the Objects and Timeline panel. There are now four elements, each one staggered below the last. This is an indication that these elements are inside of one another. In a moment you’ll see what that means.



    The rectangle is contained inside the ChildCanvas layout control


Seite 3 von 8 1 2 3 4 5 6 7 8



Downloads

Copyright © 2010
Microsoft Deutschland GmbH
Alle Rechte vorbehalten.

 Microsoft Deutschland GmbH
 




:: Premium-Partner ::

Webhosting/Serverlösungen


Premium-Partner MECO Systemhaus GmbH & Co. KG
Premium-Partner PSW GROUP GmbH & Co. KG
Premium-Partner BPI-Systeme
Premium-Partner Pixel X
Premium-Partner
 

:: SELFPHP Sponsoren ::


DM Solutions
Microsoft Deutschland GmbH
twosteps.net - ...Premium-Webhosting
Sedo - Bei uns wird PHP großgeschrieben
hostfactory.ch - OptimaNet Schweiz AG
ZEND - The PHP Company
Kaspersky Labs
HighText iBusiness
SELFPHP Sponsoren
 

Qozido


© 2001-2013 E-Mail SELFPHP OHG, info@selfphp.deImpressumKontakt