Click here to Skip to main content
15,914,222 members
Home / Discussions / WPF
   

WPF

 
QuestionConditional DataBinding to UI Elements Pin
Andy_L_J4-Feb-12 12:40
Andy_L_J4-Feb-12 12:40 
AnswerRe: Conditional DataBinding to UI Elements Pin
SledgeHammer014-Feb-12 13:39
SledgeHammer014-Feb-12 13:39 
GeneralRe: Conditional DataBinding to UI Elements Pin
Andy_L_J4-Feb-12 15:18
Andy_L_J4-Feb-12 15:18 
GeneralRe: Conditional DataBinding to UI Elements Pin
SledgeHammer014-Feb-12 15:54
SledgeHammer014-Feb-12 15:54 
GeneralRe: Conditional DataBinding to UI Elements Pin
Andy_L_J4-Feb-12 17:42
Andy_L_J4-Feb-12 17:42 
AnswerRe: Conditional DataBinding to UI Elements Pin
Mycroft Holmes4-Feb-12 17:00
professionalMycroft Holmes4-Feb-12 17:00 
GeneralRe: Conditional DataBinding to UI Elements Pin
Andy_L_J4-Feb-12 17:48
Andy_L_J4-Feb-12 17:48 
GeneralRe: Conditional DataBinding to UI Elements Pin
Mycroft Holmes4-Feb-12 21:04
professionalMycroft Holmes4-Feb-12 21:04 
GeneralRe: Conditional DataBinding to UI Elements Pin
Andy_L_J4-Feb-12 22:05
Andy_L_J4-Feb-12 22:05 
GeneralRe: Conditional DataBinding to UI Elements Pin
Mycroft Holmes5-Feb-12 0:58
professionalMycroft Holmes5-Feb-12 0:58 
GeneralRe: Conditional DataBinding to UI Elements Pin
SledgeHammer015-Feb-12 7:53
SledgeHammer015-Feb-12 7:53 
GeneralRe: Conditional DataBinding to UI Elements Pin
Mycroft Holmes5-Feb-12 11:01
professionalMycroft Holmes5-Feb-12 11:01 
GeneralRe: Conditional DataBinding to UI Elements Pin
SledgeHammer015-Feb-12 11:49
SledgeHammer015-Feb-12 11:49 
GeneralRe: Conditional DataBinding to UI Elements Pin
Mycroft Holmes5-Feb-12 12:15
professionalMycroft Holmes5-Feb-12 12:15 
GeneralRe: Conditional DataBinding to UI Elements Pin
SledgeHammer015-Feb-12 12:26
SledgeHammer015-Feb-12 12:26 
GeneralRe: Conditional DataBinding to UI Elements Pin
Mycroft Holmes5-Feb-12 13:15
professionalMycroft Holmes5-Feb-12 13:15 
GeneralRe: Conditional DataBinding to UI Elements Pin
SledgeHammer015-Feb-12 14:14
SledgeHammer015-Feb-12 14:14 
GeneralRe: Conditional DataBinding to UI Elements Pin
Mycroft Holmes5-Feb-12 15:15
professionalMycroft Holmes5-Feb-12 15:15 
AnswerRe: Conditional DataBinding to UI Elements Pin
Mycroft Holmes5-Feb-12 15:16
professionalMycroft Holmes5-Feb-12 15:16 
GeneralRe: Conditional DataBinding to UI Elements Pin
Andy_L_J5-Feb-12 15:43
Andy_L_J5-Feb-12 15:43 
QuestionOwn TreeViewItem with image and text Pin
Mc_Topaz2-Feb-12 22:20
Mc_Topaz2-Feb-12 22:20 
AnswerRe: Own TreeViewItem with image and text Pin
Mc_Topaz3-Feb-12 0:52
Mc_Topaz3-Feb-12 0:52 
GeneralGridSplitter Conundrum Pin
Gil Yoder1-Feb-12 15:31
Gil Yoder1-Feb-12 15:31 
QuestionRe: GridSplitter Conundrum Pin
Gil Yoder2-Feb-12 9:44
Gil Yoder2-Feb-12 9:44 
Well here is a bit more to my conundrum. I want to create divided panel with two areas for controls. I started with a Grid with three columns. I put a GridSplitter in the second column, and set the column's width to "Auto" so its Width is just the Width of the splitter.

I want the splitter to be able to resize the left and right columns, so I set the splitter's ResizeBehavior to PreviousAndNext. Also I want to be able to completely minimize the left column, but I want the right column always to be at least 200 pixels. For the Width property of the left column I set it to 130, and the Width property of the last column to * and its MinWidth property to 200.

When I run the window I can move the GridSplitter left, and it will move to the left side of the DockWindow, and stop there. When I move it to the right though, it will move off the screen pushing the whole column out of view.

Here is the XAML for it:

<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="130" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="*" MinWidth="200" />
    </Grid.ColumnDefinitions>
    <GridSplitter Grid.Column="1" Width="3" ResizeBehavior="PreviousAndNext" />
</Grid>


What can I do to enable the features I want, and to prevent the right column from completely leaving the Window?
AnswerRe: GridSplitter Conundrum Pin
SledgeHammer012-Feb-12 11:40
SledgeHammer012-Feb-12 11:40 

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.