Click here to Skip to main content
15,884,472 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WindowsFormsHost invalid theme in WPF Application (.Net 3.5) Pin
mattjfenner23-Mar-10 0:39
mattjfenner23-Mar-10 0:39 
QuestionHow do I center a Silverlight page on a browser at all times? Pin
Jun Du4-Mar-10 6:04
Jun Du4-Mar-10 6:04 
AnswerRe: How do I center a Silverlight page on a browser at all times? Pin
Not Active4-Mar-10 6:26
mentorNot Active4-Mar-10 6:26 
GeneralRe: How do I center a Silverlight page on a browser at all times? Pin
Jun Du4-Mar-10 6:29
Jun Du4-Mar-10 6:29 
AnswerRe: How do I center a Silverlight page on a browser at all times? Pin
Abhinav S14-Mar-10 21:15
Abhinav S14-Mar-10 21:15 
QuestionText for geometryModel3d should not rotate in wpf Pin
Ramkumar19883-Mar-10 20:27
Ramkumar19883-Mar-10 20:27 
QuestionLoading Image at runtime foe control library. Pin
Anu_Bala3-Mar-10 18:38
Anu_Bala3-Mar-10 18:38 
QuestionWPF Nested Grid Sizing Question Pin
Kennebel3-Mar-10 4:23
Kennebel3-Mar-10 4:23 
I have a nested grid that I would like to have grow as needed when the grid splitter is moved. I am probably using the wrong layout. When the Window is expanded, the GridSplitter moves normally. When the Window is reduced horizontally, the horizontal scroll bar correctly appears and allows for viewing both lists, but the GridSplitter does not move at all.

I suspect this is because the nested Grid is only designed to fill the space, while maintaining a minimum size. The behavior I would like to see, is to have the cell immediately to the left of the GridSplitter expand or contract as it moves, leaving the sizes of the Grid cells to the right of the splitter untouched.

I attempted to use the DragDelta and DragCompleted events of the GridSplitter to affect the left cell, but that caused strange results.

Please let me know how I can ask this question more clearly. I have been a coder for nearly 2 decades, but never really focused on front end.

XML
<Window x:Class="TestWpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Test WPF App" Height="300" Width="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"></ColumnDefinition>
            <ColumnDefinition MinWidth="50"></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Grid Grid.Column="0" Background="Black"></Grid>
        <Grid Grid.Column="1">
            <ScrollViewer HorizontalScrollBarVisibility="Auto"
                        VerticalScrollBarVisibility="Disabled">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition MinWidth="100"></ColumnDefinition>
                        <ColumnDefinition Width="3"></ColumnDefinition>
                        <ColumnDefinition MinWidth="100"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Grid Grid.Column="0">
                        <ScrollViewer VerticalScrollBarVisibility="Auto">
                            <ListView Margin="0,0" Name="listView1" SelectionMode="Single" />
                        </ScrollViewer>
                    </Grid>
                    <GridSplitter Background="Red" Grid.Column="1" Grid.Row="0"
                        Height="Auto" Width="Auto" HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch" />
                    <Grid Grid.Column="2">
                        <ScrollViewer VerticalScrollBarVisibility="Auto">
                            <ListView Margin="0,0" Name="listView2" SelectionMode="Single" />
                        </ScrollViewer>
                    </Grid>
                </Grid>
            </ScrollViewer>
        </Grid>
    </Grid>
</Window>
Jeremy A. Cunningham

AnswerRe: WPF Nested Grid Sizing Question Pin
AspDotNetDev3-Mar-10 21:49
protectorAspDotNetDev3-Mar-10 21:49 
GeneralRe: WPF Nested Grid Sizing Question Pin
Kennebel5-Mar-10 9:04
Kennebel5-Mar-10 9:04 
GeneralRe: WPF Nested Grid Sizing Question Pin
AspDotNetDev5-Mar-10 9:22
protectorAspDotNetDev5-Mar-10 9:22 
QuestionResizing and realigning the contents of a WPF windows form Pin
sameercodes3-Mar-10 4:20
sameercodes3-Mar-10 4:20 
AnswerRe: Resizing and realigning the contents of a WPF windows form Pin
April Fans3-Mar-10 17:47
April Fans3-Mar-10 17:47 
QuestionProperty editing not available for Blend-generated XAML... Pin
Jun Du2-Mar-10 2:14
Jun Du2-Mar-10 2:14 
AnswerRe: Property editing not available for Blend-generated XAML... Pin
April Fans3-Mar-10 14:49
April Fans3-Mar-10 14:49 
AnswerRe: Property editing not available for Blend-generated XAML... Pin
fred_17-Mar-10 9:46
fred_17-Mar-10 9:46 
QuestionHow do I handle both hover and click events on a button control? Pin
Jun Du1-Mar-10 11:19
Jun Du1-Mar-10 11:19 
AnswerRe: How do I handle both hover and click events on a button control? Pin
April Fans1-Mar-10 15:47
April Fans1-Mar-10 15:47 
AnswerRe: How do I handle both hover and click events on a button control? Pin
Abhinav S1-Mar-10 22:24
Abhinav S1-Mar-10 22:24 
QuestionFindResource method in WPF Pin
Ahamed Azeem1-Mar-10 1:57
Ahamed Azeem1-Mar-10 1:57 
AnswerRe: FindResource method in WPF Pin
fjparisIII1-Mar-10 7:30
fjparisIII1-Mar-10 7:30 
Questionanimation Pin
Ahamed Azeem28-Feb-10 19:50
Ahamed Azeem28-Feb-10 19:50 
AnswerRe: animation Pin
GomathiR28-Feb-10 21:52
GomathiR28-Feb-10 21:52 
GeneralRe: animation Pin
Ahamed Azeem1-Mar-10 1:23
Ahamed Azeem1-Mar-10 1:23 
GeneralRe: animation Pin
Ahamed Azeem1-Mar-10 1:26
Ahamed Azeem1-Mar-10 1:26 

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.