Click here to Skip to main content
15,902,112 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Closable Tabs Pin
SledgeHammer0124-Jul-11 9:52
SledgeHammer0124-Jul-11 9:52 
GeneralRe: Closable Tabs Pin
jgalak27-Jul-11 14:31
jgalak27-Jul-11 14:31 
QuestionSimple and good way to Windows application development using C# + WPF + MVVC + prism 4 ? Pin
Manjeet patel22-Jul-11 3:15
Manjeet patel22-Jul-11 3:15 
AnswerRe: Simple and good way to Windows application development using C# + WPF + MVVC + prism 4 ? Pin
Ian Shlasko22-Jul-11 3:37
Ian Shlasko22-Jul-11 3:37 
GeneralRe: Simple and good way to Windows application development using C# + WPF + MVVC + prism 4 ? Pin
Manjeet patel22-Jul-11 3:48
Manjeet patel22-Jul-11 3:48 
AnswerRe: Simple and good way to Windows application development using C# + WPF + MVVC + prism 4 ? Pin
Abhinav S22-Jul-11 4:05
Abhinav S22-Jul-11 4:05 
AnswerRe: Simple and good way to Windows application development using C# + WPF + MVVC + prism 4 ? Pin
Richard MacCutchan22-Jul-11 4:25
mveRichard MacCutchan22-Jul-11 4:25 
QuestionScrolling in nested Listbox WPF Pin
Phantom1322-Jul-11 0:29
Phantom1322-Jul-11 0:29 
Scrolling in nested Listbox
Hi Friends

Hope you all are doing good.

I have few questions about WPF List BOX

Some Background:
We are trying to build a scheduling control like outlook with some custom functionality.
I have already gone through the similar post in Code Project but we tend to take slightly different approach (trying to use MVVM approach).

Problem:
Currently we have a Listbox with 3 items. Each item in the list box is another Listbox with borders as sub items. For E.g. the XAML code looks like this.
<Grid Height="500" Width="500">
    <ListBox Name="MasterListBox" HorizontalAlignment="Stretch">
        <ListBox.ItemsPanel>
            <ItemsPanelTemplate>
                <StackPanel Orientation="Horizontal"/>
            </ItemsPanelTemplate>
        </ListBox.ItemsPanel>
        <ListBoxItem >
            <ListBox Name="Child1" Height="240">
                <ListBoxItem >
                    <Border Width="200" Background="Red" Height="40"></Border>
                </ListBoxItem>
                <ListBoxItem >
                    <Border Width="200" Background="Blue" Height="40"></Border>
                </ListBoxItem>
                <ListBoxItem >
                    <Border Width="200"  Background="Green" Height="40"></Border>
                </ListBoxItem>
            </ListBox>
        </ListBoxItem>
        <ListBoxItem >
            <ListBox Name="Child2" Height="240">
                <ListBoxItem >
                    <Border Width="200" Background="Yellow" Height="40"></Border>
                </ListBoxItem>
                <ListBoxItem >
                    <Border Width="200" Background="Green" Height="40"></Border>
                </ListBoxItem>
                <ListBoxItem >
                    <Border Width="200"  Background="Pink" Height="40"></Border>
                </ListBoxItem>
            </ListBox>
        </ListBoxItem>
        <ListBoxItem >
            <ListBox Name="Child3" Height="240">
                <ListBoxItem >
                    <Border Width="200" Background="Aqua" Height="40"></Border>
                </ListBoxItem>
                <ListBoxItem >
                    <Border Width="200" Background="Beige" Height="40"></Border>
                </ListBoxItem>
                <ListBoxItem >
                    <Border Width="200"  Background="Brown" Height="40"></Border>
                </ListBoxItem>
            </ListBox>
        </ListBoxItem>
    </ListBox>
</Grid>

The problem is when I click on the 1st item(Child1) of the MasterListBox in the white area and drag right, the MasterListBox list box scroll to right, But when I click on the subitem (for e.g. say red border) and drag right the MasterListBox doesn’t scroll right.
I am aware that I am trying to drag the item of the inner list box and that’s the reason the outer list box is not scrolling, But it there a way we can override this. I want to select the inner item also so cannot set IsHitTestVisible="False" for inner item.

Thanks you for looking into this. Your help is greatly appreciated.

Regards
Saurabh

modified on Friday, July 22, 2011 7:37 AM

AnswerRe: Scrolling in nested Listbox WPF Pin
teejayem30-Jul-11 12:44
teejayem30-Jul-11 12:44 
QuestionSplash Screen in WPF Browser APP Pin
vonb21-Jul-11 1:21
vonb21-Jul-11 1:21 
AnswerRe: Splash Screen in WPF Browser APP Pin
vonb21-Jul-11 4:33
vonb21-Jul-11 4:33 
QuestionStyle.TargetType = Interface || abstract class Pin
ezazazel19-Jul-11 22:44
ezazazel19-Jul-11 22:44 
AnswerRe: Style.TargetType = Interface || abstract class Pin
Kunal Chowdhury «IN»20-Jul-11 0:23
professionalKunal Chowdhury «IN»20-Jul-11 0:23 
QuestionMVVM: Transfering data from ViewModel to Model, when and how ? [modified] Pin
Jean-Louis Leroy19-Jul-11 1:38
Jean-Louis Leroy19-Jul-11 1:38 
AnswerRe: MVVM: Transfering data from ViewModel to View, when and how ? Pin
Pete O'Hanlon19-Jul-11 1:45
mvePete O'Hanlon19-Jul-11 1:45 
AnswerRe: MVVM: Transfering data from ViewModel to Model, when and how ? Pin
Abhinav S20-Jul-11 0:42
Abhinav S20-Jul-11 0:42 
GeneralRe: MVVM: Transfering data from ViewModel to Model, when and how ? Pin
Jean-Louis Leroy20-Jul-11 0:51
Jean-Louis Leroy20-Jul-11 0:51 
GeneralRe: MVVM: Transfering data from ViewModel to Model, when and how ? Pin
SledgeHammer0120-Jul-11 6:36
SledgeHammer0120-Jul-11 6:36 
GeneralRe: MVVM: Transfering data from ViewModel to Model, when and how ? Pin
Jean-Louis Leroy20-Jul-11 8:22
Jean-Louis Leroy20-Jul-11 8:22 
GeneralRe: MVVM: Transfering data from ViewModel to Model, when and how ? Pin
SledgeHammer0120-Jul-11 8:43
SledgeHammer0120-Jul-11 8:43 
GeneralRe: MVVM: Transfering data from ViewModel to Model, when and how ? [modified] Pin
Jean-Louis Leroy21-Jul-11 23:01
Jean-Louis Leroy21-Jul-11 23:01 
GeneralRe: MVVM: Transfering data from ViewModel to Model, when and how ? Pin
Jean-Louis Leroy21-Jul-11 23:20
Jean-Louis Leroy21-Jul-11 23:20 
GeneralRe: MVVM: Transfering data from ViewModel to Model, when and how ? Pin
Pete O'Hanlon21-Jul-11 23:29
mvePete O'Hanlon21-Jul-11 23:29 
GeneralRe: MVVM: Transfering data from ViewModel to Model, when and how ? Pin
Jean-Louis Leroy21-Jul-11 23:51
Jean-Louis Leroy21-Jul-11 23:51 
GeneralRe: MVVM: Transfering data from ViewModel to Model, when and how ? Pin
Pete O'Hanlon22-Jul-11 0:02
mvePete O'Hanlon22-Jul-11 0:02 

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.