Pixel Snapped : Canvas « Windows Presentation Foundation « VB.Net Tutorial

Home
VB.Net Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statements
5.Date Time
6.Class Module
7.Development
8.Collections
9.Generics
10.Attributes
11.Event
12.LINQ
13.Stream File
14.GUI
15.GUI Applications
16.Windows Presentation Foundation
17.2D Graphics
18.I18N Internationlization
19.Reflection
20.Regular Expressions
21.Security
22.Socket Network
23.Thread
24.Windows
25.XML
26.Database ADO.net
27.Design Patterns
VB.Net Tutorial » Windows Presentation Foundation » Canvas 




<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="Microsoft.Samples.Graphics.RectangleExample"
    WindowTitle="Example">
  <Canvas>
    <TextBlock VerticalAlignment="Center">Snapped:</TextBlock>
    <Rectangle SnapsToDevicePixels="True" Margin="10" Height="10" Fill="Red"></Rectangle>

  </Canvas>
</Page>
WPF Pixel Snapped














16.63.Canvas
16.63.1.Align Button along with Canvas positionAlign Button along with Canvas position
16.63.2.Using a Canvas to absolutely position elementsUsing a Canvas to absolutely position elements
16.63.3.Simple CanvasSimple Canvas
16.63.4.StackPanel Demo and CanvasStackPanel Demo and Canvas
16.63.5.Canvas with MinHeight and MinWidthCanvas with MinHeight and MinWidth
16.63.6.Draws a Path element within a CanvasDraws a Path element within a Canvas
16.63.7.Draws several Line elements within a CanvasDraws several Line elements within a Canvas
16.63.8.Draws several Polyline elements within a CanvasDraws several Polyline elements within a Canvas
16.63.9.Rectangle with Fill and Canvas positionRectangle with Fill and Canvas position
16.63.10.Custom Coordinates by transforming the CanvasCustom Coordinates by transforming the Canvas
16.63.11.Draw path on a CanvasDraw path on a Canvas
16.63.12.Use Canvas coordinationUse Canvas coordination
16.63.13.Use Canvas to layout Buttons and LabelsUse Canvas to layout Buttons and Labels
16.63.14.Position UI Elements Using Exact CoordinatesPosition UI Elements Using Exact Coordinates
16.63.15.Pixel SnappedPixel Snapped
16.63.16.Positioning Rectangle on a CanvasPositioning Rectangle on a Canvas
16.63.17.Canvas inside canvas, showing relative absolute positioningCanvas inside canvas, showing relative absolute positioning
16.63.18.Aligning elements using multiple attached properties of CanvasAligning elements using multiple attached properties of Canvas
16.63.19.Layer elements in a Canvas elementLayer elements in a Canvas element
16.63.20.Use the four attached properties of the Canvas element: Bottom, Left, Right, and TopUse the four attached properties of the Canvas element: Bottom, Left, Right, and Top
16.63.21.Canvas PreviewMouseDown action and MouseDown actionCanvas PreviewMouseDown action and MouseDown action
16.63.22.Handles the MouseDown event on the CanvasHandles the MouseDown event on the Canvas
16.63.23.StatusBar inside a CanvasStatusBar inside a Canvas
16.63.24.Drag Items from a List and Drop Them on a CanvasDrag Items from a List and Drop Them on a Canvas
16.63.25.Print Visual(Canvas)Print Visual(Canvas)
16.63.26.Get position on a Canvas with Canvas.GetLeftGet position on a Canvas with Canvas.GetLeft
16.63.27.Use a Thumb to resize a Canvas control by responding to the DragDelta event.Use a Thumb to resize a Canvas control by responding to the DragDelta event.
16.63.28.Canvas Positioning Properties SampleCanvas Positioning Properties Sample
16.63.29.Canvas.SetTopCanvas.SetTop
16.63.30.Canvas.SetBottomCanvas.SetBottom
16.63.31.Canvas.SetRightCanvas.SetRight
16.63.32.Add buttons to a Canvas with codeAdd buttons to a Canvas with code
16.63.33.Set control position for CanvasSet control position for Canvas
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.