Click here to Skip to main content
15,892,839 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: InvalidateMeasure doesn't trigger MeasureOverride call? Pin
Pete O'Hanlon22-Aug-12 13:21
mvePete O'Hanlon22-Aug-12 13:21 
GeneralRe: InvalidateMeasure doesn't trigger MeasureOverride call? Pin
SledgeHammer0122-Aug-12 13:40
SledgeHammer0122-Aug-12 13:40 
GeneralRe: InvalidateMeasure doesn't trigger MeasureOverride call? Pin
Pete O'Hanlon22-Aug-12 23:53
mvePete O'Hanlon22-Aug-12 23:53 
GeneralRe: InvalidateMeasure doesn't trigger MeasureOverride call? Pin
SledgeHammer0123-Aug-12 5:08
SledgeHammer0123-Aug-12 5:08 
GeneralRe: InvalidateMeasure doesn't trigger MeasureOverride call? Pin
Pete O'Hanlon23-Aug-12 5:15
mvePete O'Hanlon23-Aug-12 5:15 
GeneralRe: InvalidateMeasure doesn't trigger MeasureOverride call? Pin
SledgeHammer0123-Aug-12 8:34
SledgeHammer0123-Aug-12 8:34 
GeneralRe: InvalidateMeasure doesn't trigger MeasureOverride call? Pin
SledgeHammer0123-Aug-12 13:03
SledgeHammer0123-Aug-12 13:03 
QuestionWPF Problem With WrapPanel In ListBox.ItemsPanel [UPDATED] Pin
Kevin Marois20-Aug-12 14:33
professionalKevin Marois20-Aug-12 14:33 
[UPDATE]
Added "ScrollViewer.HorizontalScrollBarVisibility="Disabled" and it works now.
[UPDATE]


I am working on a Contacts List[^]

when I resize the window, they don't wrap. See this.[^]

here's my XAML:

<ListBox x:Name="Contacts"           
            ScrollViewer.VerticalScrollBarVisibility="Auto"
            ItemsSource="{Binding Contacts}"
            SelectedItem="{Binding SelectedContact}">
    <ListBox.ItemsPanel>
        <ItemsPanelTemplate>
            <WrapPanel IsItemsHost="True" 
                        Orientation="Horizontal"
                        FlowDirection="LeftToRight"/>
        </ItemsPanelTemplate>
    </ListBox.ItemsPanel>
    <ListBox.ItemTemplate>
        <DataTemplate>
            <Border CornerRadius="3"
                    Height="200"
                    Width="300"
                    Padding="5"
                    Margin="8"
                    Background="White"
                    BorderBrush="DarkGray"
                    BorderThickness="1">
                <Border.Effect>
                    <DropShadowEffect Color="DarkGray"
                            ShadowDepth="7"/>
                </Border.Effect>
                <Border Margin="2"
                        CornerRadius="3"
                        Padding="4"
                        BorderBrush="LightSteelBlue"
                        BorderThickness="1">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Image Height="45"
                                Width="45" Source="/Falcon.UI.WPF;component/Media/Images/customer_48.png"
                                Grid.Row="0"
                                Grid.Column="0"/>
                        <StackPanel Orientation="Horizontal"
                                    Grid.Row="0"
                                    Grid.Column="1">
                                    
                            <TextBlock Style="{Binding PageHeaderLabelStyle}"
                                        FontSize="28"
                                        Foreground="#2B579A"
                                        Text="{Binding FirstName}"/>
                            <TextBlock Style="{Binding PageHeaderLabelStyle}"
                                        FontSize="28"
                                        Foreground="#2B579A"
                                        Margin="5,0,0,0"
                                        Text="{Binding LastName}"/>
                        </StackPanel>
                        <TextBlock Grid.Row="1"
                                    Grid.Column="1"
                                    Style="{Binding PageHeaderLabelStyle}"
                                    FontSize="18"
                                    Foreground="#2B579A"
                                    Margin="0,-10,0,0"
                                    Text="{Binding Title}"/>
                                
                    </Grid>
                </Border>
            </Border>

        </DataTemplate>
    </ListBox.ItemTemplate>
            
</ListBox>


Hhow do I make the wrap?

Thanks
If it's not broken, fix it until it is


modified 20-Aug-12 20:57pm.

QuestionSwitch WPF UI at runtime Pin
Ed Hill _5_17-Aug-12 0:43
Ed Hill _5_17-Aug-12 0:43 
AnswerRe: Switch WPF UI at runtime Pin
Kenneth Haugland18-Aug-12 12:54
mvaKenneth Haugland18-Aug-12 12:54 
GeneralRe: Switch WPF UI at runtime Pin
Ed Hill _5_18-Aug-12 23:45
Ed Hill _5_18-Aug-12 23:45 
AnswerRe: Switch WPF UI at runtime Pin
Abhinav S18-Aug-12 18:31
Abhinav S18-Aug-12 18:31 
GeneralRe: Switch WPF UI at runtime Pin
Ed Hill _5_19-Aug-12 21:57
Ed Hill _5_19-Aug-12 21:57 
AnswerRe: Switch WPF UI at runtime Pin
Pete O'Hanlon20-Aug-12 0:48
mvePete O'Hanlon20-Aug-12 0:48 
QuestionWPF ListBox Question Pin
Kevin Marois15-Aug-12 15:22
professionalKevin Marois15-Aug-12 15:22 
AnswerRe: WPF ListBox Question Pin
Ed Hill _5_15-Aug-12 22:07
Ed Hill _5_15-Aug-12 22:07 
GeneralRe: WPF ListBox Question Pin
Kevin Marois16-Aug-12 6:10
professionalKevin Marois16-Aug-12 6:10 
QuestionComboBox Dropdown Problem Pin
#realJSOP15-Aug-12 4:49
mve#realJSOP15-Aug-12 4:49 
AnswerRe: ComboBox Dropdown Problem Pin
Pete O'Hanlon15-Aug-12 5:12
mvePete O'Hanlon15-Aug-12 5:12 
GeneralRe: ComboBox Dropdown Problem Pin
#realJSOP15-Aug-12 5:13
mve#realJSOP15-Aug-12 5:13 
GeneralRe: ComboBox Dropdown Problem Pin
#realJSOP15-Aug-12 5:17
mve#realJSOP15-Aug-12 5:17 
GeneralRe: ComboBox Dropdown Problem Pin
#realJSOP15-Aug-12 6:45
mve#realJSOP15-Aug-12 6:45 
AnswerRe: ComboBox Dropdown Problem Pin
Pete O'Hanlon15-Aug-12 22:59
mvePete O'Hanlon15-Aug-12 22:59 
GeneralRe: ComboBox Dropdown Problem Pin
#realJSOP16-Aug-12 1:27
mve#realJSOP16-Aug-12 1:27 
GeneralRe: ComboBox Dropdown Problem Pin
Pete O'Hanlon16-Aug-12 1:46
mvePete O'Hanlon16-Aug-12 1:46 

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.