Click here to Skip to main content
15,886,199 members
Home / Discussions / WPF
   

WPF

 
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 
I have a couple of ComboBox controls in a form, as well as a ListView. When I click on a ComboBox, the drop-down portion shows up in the upper left corner of the desktop instead of under the ComboBox.

The ListView uses grouping, and has a custom style for the GroupItem. It follows:

XML
<ControlTemplate TargetType="{x:Type GroupItem}" x:Key="SceneGroupItemTemplate" >
    <Expander IsExpanded="True"  >
        <Expander.Header >
            <Border Background="LightSteelBlue" 
                    BorderBrush="SteelBlue" 
                    BorderThickness="1" 
                    HorizontalAlignment="Stretch">
                <TextBlock FontSize="14" 
                           FontWeight="Bold" 
                           Margin="5,0,10,0" 
                           Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, 
                                                           AncestorType={x:Type Expander}}, Path=ActualWidth}" >
                    <TextBlock Text="{Binding Path=Name}" />
                    <Grid Width="10"/>
                        (
                        <TextBlock Text="{Binding Path=ItemCount}" /> 
                        items)
                </TextBlock>
            </Border>
        </Expander.Header>
        <Expander.Content>
            <ItemsPresenter />
        </Expander.Content>
    </Expander>
</ControlTemplate>


And it's used in the ListView like so:

XML
<ListView x:Name="datagridScenes" SelectionMode="Single"  >
    <ListView.GroupStyle >
        <GroupStyle HidesIfEmpty="False" >
            <GroupStyle.ContainerStyle >

                <!-- If I comment out this element, I loose the grouping, but the comboboxes work -->
                <Style TargetType="{x:Type GroupItem}" >
                    <Setter Property="Template" Value="{StaticResource SceneGroupItemTemplate}" />
                </Style>

            </GroupStyle.ContainerStyle>
        </GroupStyle>
    </ListView.GroupStyle>
</ListView>


Can anyone tell me why this is happening (see comment in code block above)?
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997



modified 15-Aug-12 11:11am.

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 
GeneralRe: ComboBox Dropdown Problem Pin
#realJSOP17-Aug-12 4:05
mve#realJSOP17-Aug-12 4:05 
GeneralPut Blu-ray movies on New iPad and keep the file size around 2GB Pin
hihjay114-Aug-12 19:07
hihjay114-Aug-12 19:07 
QuestionHow to got Phone Number Pin
Vikash Yadav14-Aug-12 16:29
Vikash Yadav14-Aug-12 16:29 
AnswerRe: How to got Phone Number Pin
Pete O'Hanlon14-Aug-12 22:20
mvePete O'Hanlon14-Aug-12 22:20 
AnswerRe: How to got Phone Number Pin
Abhinav S14-Aug-12 23:08
Abhinav S14-Aug-12 23:08 
QuestionNeed to call third party API from SL 5 Solution Pin
Tbhavesh14-Aug-12 9:03
Tbhavesh14-Aug-12 9:03 
AnswerRe: Need to call third party API from SL 5 Solution Pin
Wes Aday14-Aug-12 9:47
professionalWes Aday14-Aug-12 9:47 
AnswerRe: Need to call third party API from SL 5 Solution Pin
Anumeha Shukla16-Aug-12 2:49
Anumeha Shukla16-Aug-12 2:49 
QuestionCrop and save image in oval shape using silverlight Pin
Anupbala13-Aug-12 19:20
Anupbala13-Aug-12 19:20 
AnswerRe: Crop and save image in oval shape using silverlight Pin
Pete O'Hanlon13-Aug-12 23:04
mvePete O'Hanlon13-Aug-12 23:04 

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.