Control the Size of UI Elements in a Form : Forms « Windows Presentation Foundation « C# / CSharp Tutorial

Home
C# / CSharp Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statement
5.String
6.struct
7.Class
8.Operator Overload
9.delegate
10.Attribute
11.Data Structure
12.Assembly
13.Date Time
14.Development
15.File Directory Stream
16.Preprocessing Directives
17.Regular Expression
18.Generic
19.Reflection
20.Thread
21.I18N Internationalization
22.LINQ
23.GUI Windows Forms
24.Windows Presentation Foundation
25.Windows Communication Foundation
26.Workflow
27.2D
28.Design Patterns
29.Windows
30.XML
31.XML LINQ
32.ADO.Net
33.Network
34.Directory Services
35.Security
36.unsafe
C# / C Sharp
C# / C Sharp by API
C# / CSharp Open Source
C# / CSharp Tutorial » Windows Presentation Foundation » Forms 
24.74.4.Control the Size of UI Elements in a Form
<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPF" Height="300" Width="400">
    <StackPanel Margin="5" Orientation="Vertical">
        <Button Content="Button _A" Margin="2" />
        <Button Content="Button _B" HorizontalAlignment="Left" />
        <Button Content="Button _C" HorizontalAlignment="Center" />
        <Button Content="Button _D" HorizontalAlignment="Right" />
        <Button Content="Button _E" Height="40" Margin="2" />
        <Button Content="Button _F" Width="80" Margin="2" />
        <Button Content="Button _G" MinHeight="30" Margin="2" />
        <Button Content="Button _H" MinWidth="120" Margin="10,5,5,10" />
        <Button Content="Button _I" MaxWidth="200" Margin="2" />
    </StackPanel>
</Window>
WPF Control The Size Of U I Elements In A Form
24.74.Forms
24.74.1.Display a notification icon in the system tray.Display a notification icon in the system tray.
24.74.2.Add the PropertyGrid to the host, and the host to the WPF GridAdd the PropertyGrid to the host, and the host to the WPF Grid
24.74.3.Use the IsSharedSizeScope attached property of the Grid elementUse the IsSharedSizeScope attached property of the Grid element
24.74.4.Control the Size of UI Elements in a FormControl the Size of UI Elements in a Form
24.74.5.Define the Tab Order of UI Elements in a FormDefine the Tab Order of UI Elements in a Form
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.