Exemplos de Silverlight 3 - 013 - RowDefinition e ColDefinition

by agnaldo 25. fevereiro 2010 12:19
<UserControl x:Class="_019_Grid.MainPage"
    xmlns
="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x
="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d
="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc
="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable
="d" d:DesignWidth="640" d:DesignHeight="480">
    
<Grid x:Name="LayoutRoot" ShowGridLines="True">
        
<Grid.RowDefinitions>
            
<RowDefinition></RowDefinition>
            
<RowDefinition></RowDefinition>
            
<RowDefinition></RowDefinition>
        
</Grid.RowDefinitions>
        
<Grid.ColumnDefinitions>
            
<ColumnDefinition></ColumnDefinition>
            
<ColumnDefinition></ColumnDefinition>
            
<ColumnDefinition></ColumnDefinition>
        
</Grid.ColumnDefinitions>

        
<Button Grid.Row="0" Grid.Column="0" Content="linha 0, coluna 0"></Button>
        
<Button Grid.Row="1" Grid.Column="1" Content="linha 1, coluna 1"></Button>
        
<Button Grid.Row="2" Grid.Column="2" Content="linha 2, coluna 2"></Button>
        
<Button Grid.Row="0" Grid.Column="2" Content="linha 0, coluna 2"></Button>
        
<Button Grid.Row="2" Grid.Column="0" Content="linha 2, coluna 0"></Button>
    
</Grid>
</UserControl>


Exemplos de Silverlight 3 - 012 - DockPanel

by agnaldo 25. fevereiro 2010 12:08
<UserControl x:Class="_018_DockPanelMultiplosElementos.MainPage"
    xmlns:ctk
="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns
="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x
="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d
="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc
="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable
="d" d:DesignWidth="640" d:DesignHeight="480">
    <ctk:DockPanel LastChildFill="True">
        
<Button ctk:DockPanel.Dock="Top" Content="Top"></Button>
        
<Button ctk:DockPanel.Dock="Top" HorizontalAlignment="Center" 
Content
="Center Top"></Button>
        
<Button ctk:DockPanel.Dock="Top" HorizontalAlignment="Left" 
Content
="Left Top"></Button>
        
<Button ctk:DockPanel.Dock="Bottom" Content="Bottom"></Button>
        
<Button ctk:DockPanel.Dock="Left" Content="Left"></Button>
        
<Button ctk:DockPanel.Dock="Right" Content="Right"></Button>
        
<Button Content="Resto do espaço"></Button>
        
</ctk:DockPanel>
</UserControl>


Exemplos de Silverlight 3 - 011 - DockPanel

by agnaldo 25. fevereiro 2010 11:01
<UserControl x:Class="_017_DockPanel.MainPage"
    xmlns:controlsToolkit
="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns
="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x
="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d
="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc
="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable
="d" d:DesignWidth="640" d:DesignHeight="480">
    
<controlsToolkit:DockPanel LastChildFill="True">
        
<Button controlsToolkit:DockPanel.Dock="Top" Content="Top"></Button>
        
<Button controlsToolkit:DockPanel.Dock="Bottom" Content="Bottom"></Button>
        
<Button controlsToolkit:DockPanel.Dock="Left" Content="Left"></Button>
        
<Button controlsToolkit:DockPanel.Dock="Right" Content="Right"></Button>
        
<Button Content="Resto do espaço"></Button>
    
</controlsToolkit:DockPanel>
</UserControl>


Agnaldo

foto

Veja meu perfil em http://about.me/agnaldo

Month List