Click here to Skip to main content
14,367,468 members

Silverlight / WPF

 
GeneralRe: Scrolling data table area on a XAML page Pin
Mycroft Holmes27-Jul-16 13:44
memberMycroft Holmes27-Jul-16 13:44 
QuestionWhere to call OnPropertyChanged Pin
Bernhard Hiller25-Jul-16 22:47
memberBernhard Hiller25-Jul-16 22:47 
AnswerRe: Where to call OnPropertyChanged Pin
Gerry Schmitz26-Jul-16 4:47
mveGerry Schmitz26-Jul-16 4:47 
QuestionEnter key invokes button click Pin
GrooverFromHolland23-Jul-16 10:44
memberGrooverFromHolland23-Jul-16 10:44 
AnswerRe: Enter key invokes button click Pin
Mycroft Holmes23-Jul-16 15:28
memberMycroft Holmes23-Jul-16 15:28 
GeneralRe: Enter key invokes button click Pin
GrooverFromHolland24-Jul-16 1:19
memberGrooverFromHolland24-Jul-16 1:19 
GeneralRe: Enter key invokes button click Pin
Mycroft Holmes24-Jul-16 15:34
memberMycroft Holmes24-Jul-16 15:34 
QuestionUsing negative height margin values to properly vertically align a control Pin
holdorf22-Jul-16 15:22
memberholdorf22-Jul-16 15:22 
I created a grid based XAML page. In the grid I display images which require no negative top margin, vertical, values. In my page I have two labels in textblocks that will not align properly in their grid stack panel with out using negative top margin values in the textblocks. The first label textblock I have to use a Margin="0,-35,0,0" and the second I have to use Margin="0, -650, 0, 0. The XAML is below. One final thing. After what you see I need a table to display labels in several rows and columns. Each row might have different width columns. In my design what is recommended for that?

<Window

    x:Class="MasterPage.ApplicationInfoWindow"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    xmlns:v="clr-namespace:MasterPage"

    Title="Intake 4" Height="900" Width="1000" Background="#FFD9DDE8">
    <DockPanel>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>

            </Grid.ColumnDefinitions>
        </Grid>
        <StackPanel >
                <Border Margin="0, 0, 0, 0" BorderBrush="Black" BorderThickness="1">
                <StackPanel Height="133" VerticalAlignment="Top" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">

                    <StackPanel>
                        <Image Source="Images\header.jpg" Stretch="Fill" DockPanel.Dock="Top" Height="47"  />
                    </StackPanel>

                    <StackPanel Margin="3,0,0,5" HorizontalAlignment="Left">
                        <Image Source="Images\DSPASS_logo.png" Width="324" Stretch="Fill" DockPanel.Dock="Top" Height="80" />
                    </StackPanel>
                    <StackPanel DockPanel.Dock="Top" HorizontalAlignment="Right" >
                        <TextBlock FontSize="15" TextWrapping="WrapWithOverflow" Height="25" Margin="0,-35,0,0" >
                 <Label FontSize="10" HorizontalContentAlignment="Right"  HorizontalAlignment="Right" Name="Namelabel" Width="230" FontWeight="Bold" Foreground="#1664A1" Content="Name"/>
                        </TextBlock>
                    </StackPanel>
        </StackPanel>

        </Border>

        <Border Margin="0, 0, 0, 0" BorderBrush="Black" BorderThickness="1">

                <StackPanel Background="wHITE" Height="358" VerticalAlignment="Top" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1">
                    <StackPanel>
                    <Image Source="Images\silhouette.jpg" VerticalAlignment="Top"    HorizontalAlignment="Left" Width="320" Stretch="Fill" DockPanel.Dock="Top" Height="360" />
                </StackPanel>
                    <StackPanel VerticalAlignment="Top" >
                        <TextBlock FontSize="15"  HorizontalAlignment="Right" Height="75" Margin="0, -650, 0, 0"  TextWrapping="WrapWithOverflow" >
                 <Label FontSize="35" HorizontalContentAlignment="Left"   Name="Namelabel2" Width="640" FontWeight="Bold" Foreground="#1664A1" Content="Name"/>
                    </TextBlock>
                </StackPanel>
                    </StackPanel>
        </Border>
        </StackPanel>


    </DockPanel>
</Window>


modified 23-Jul-16 8:09am.

AnswerRe: Using negative height margin values to properly vertically align a control Pin
holdorf23-Jul-16 5:50
memberholdorf23-Jul-16 5:50 
GeneralRe: Using negative height margin values to properly vertically align a control Pin
holdorf23-Jul-16 10:47
memberholdorf23-Jul-16 10:47 
QuestionList Control Question Pin
Kevin Marois21-Jul-16 15:36
professionalKevin Marois21-Jul-16 15:36 
AnswerRe: List Control Question Pin
Gerry Schmitz22-Jul-16 12:18
mveGerry Schmitz22-Jul-16 12:18 
QuestionKeeping correct layout when browser is resized Pin
holdorf17-Jul-16 4:37
memberholdorf17-Jul-16 4:37 
AnswerRe: Keeping correct layout when browser is resized Pin
Gerry Schmitz18-Jul-16 7:19
mveGerry Schmitz18-Jul-16 7:19 
QuestionStyling a Drag and Drop Items behavior in a WPF ListView Pin
Kenneth Haugland13-Jul-16 6:43
professionalKenneth Haugland13-Jul-16 6:43 
QuestionShort way defining a property with the NotifyPropertyChanged() call Pin
Mc_Topaz9-Jul-16 10:26
memberMc_Topaz9-Jul-16 10:26 
AnswerRe: Short way defining a property with the NotifyPropertyChanged() call Pin
Mycroft Holmes9-Jul-16 12:35
memberMycroft Holmes9-Jul-16 12:35 
AnswerRe: Short way defining a property with the NotifyPropertyChanged() call Pin
Mc_Topaz9-Jul-16 12:49
memberMc_Topaz9-Jul-16 12:49 
AnswerRe: Short way defining a property with the NotifyPropertyChanged() call Pin
Super Lloyd10-Jul-16 15:31
memberSuper Lloyd10-Jul-16 15:31 
AnswerRe: Short way defining a property with the NotifyPropertyChanged() call Pin
Pete O'Hanlon10-Jul-16 22:23
protectorPete O'Hanlon10-Jul-16 22:23 
AnswerRe: Short way defining a property with the NotifyPropertyChanged() call Pin
Gerry Schmitz11-Jul-16 7:04
mveGerry Schmitz11-Jul-16 7:04 
AnswerRe: Short way defining a property with the NotifyPropertyChanged() call Pin
Kenneth Haugland13-Jul-16 5:12
professionalKenneth Haugland13-Jul-16 5:12 
GeneralRe: Short way defining a property with the NotifyPropertyChanged() call Pin
Mycroft Holmes13-Jul-16 13:54
memberMycroft Holmes13-Jul-16 13:54 
QuestionAdd column sorting to a WPF grid Pin
holdorf7-Jul-16 8:11
memberholdorf7-Jul-16 8:11 
SuggestionRe: Add column sorting to a WPF grid Pin
Matt T Heffron7-Jul-16 8:39
professionalMatt T Heffron7-Jul-16 8:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.