Click here to Skip to main content
15,911,715 members
Home / Discussions / WPF
   

WPF

 
QuestionButton with popup submenu - like the one in toolbars Pin
Member 10339078-Nov-11 5:29
Member 10339078-Nov-11 5:29 
AnswerRe: Button with popup submenu - like the one in toolbars Pin
SledgeHammer018-Nov-11 6:45
SledgeHammer018-Nov-11 6:45 
GeneralRe: Button with popup submenu - like the one in toolbars Pin
Member 10339079-Nov-11 9:07
Member 10339079-Nov-11 9:07 
QuestionMAF Pin
columbos149278-Nov-11 4:16
columbos149278-Nov-11 4:16 
QuestionWPF Drag Drop - handling DragEnter and DragOver to disallow drop impossible? Pin
Member 10339078-Nov-11 0:51
Member 10339078-Nov-11 0:51 
AnswerRe: WPF Drag Drop - handling DragEnter and DragOver to disallow drop impossible? Pin
Mark Salsbery8-Nov-11 5:13
Mark Salsbery8-Nov-11 5:13 
GeneralRe: WPF Drag Drop - handling DragEnter and DragOver to disallow drop impossible? Pin
Member 10339078-Nov-11 5:25
Member 10339078-Nov-11 5:25 
Questionuser control within the ContentControl is center aligned Pin
indian1437-Nov-11 19:57
indian1437-Nov-11 19:57 
Hi,

the user control that is displayed within the ContentControl is coming as left justified. Is there any way that I can keep HorizontalContentAlignment="Stretch", HorizontalAlignment="Stretch" and still make the user control left justifiable. Because if I set any of the above values to "Left", it is effecting other User Controls, specially the user control is not stretching to max width of the browser.

Is there any property in content control to stretch to the max width of the browser and still, the user control within the content control be left justifiable,

<UserControl x:Class="Huron.UI.Healthcare.Configuration.Common.TaskWorkContainerView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:regions="clr-namespace:Microsoft.Practices.Prism.Regions;assembly=Microsoft.Practices.Prism"
    xmlns:local="clr-namespace:Huron.UI.Healthcare.Configuration.Common"
    DataContext="{Binding TaskWorkContainer,Source={StaticResource ConfigSupportViewModelLocator}}">
    
    <Grid ScrollViewer.HorizontalScrollBarVisibility="Auto">
        <Grid.RowDefinitions>
            <RowDefinition Height="24" />
            <RowDefinition Height="*" />
            <RowDefinition Height="20" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10" />
            <ColumnDefinition MinWidth="744" Width="*"  />
            <ColumnDefinition Width="10" />
        </Grid.ColumnDefinitions>

        <Canvas Grid.Row="0" Grid.Column="1" >

            <local:TaskWorkContainerHeaderView 
                Grid.Row="0" Grid.Column="1" 
                DataContext="{Binding Path=FormHeader}" 
                VerticalAlignment="Top" />

        </Canvas>

        <ContentControl 
                Margin="0,15,0,0"
                Grid.Row="1" Grid.Column="1"
				regions:RegionManager.RegionName="{Binding FormData.FormBodyRegionName}" 
				regions:RegionManager.RegionContext="{Binding FormData}"
				VerticalContentAlignment="Stretch" 
				HorizontalContentAlignment="Stretch" 
                 HorizontalAlignment="Stretch"/>

        <Canvas Grid.Row="2" Grid.Column="1" >

            <local:TaskWorkContainerFooterView 
                Grid.Row="2"  Grid.Column="1" 
                DataContext="{Binding Path=FormFooter}" 
                Visibility="{Binding Path=FooterVisibility}" 
                VerticalAlignment="Bottom" />

        </Canvas>
        
    </Grid>
</UserControl>

Thanks & Regards,

Abdul Aleem Mohammad
St Louis MO - USA

AnswerRe: user control within the ContentControl is center aligned Pin
Mark Salsbery8-Nov-11 5:17
Mark Salsbery8-Nov-11 5:17 
GeneralRe: user control within the ContentControl is center aligned Pin
indian1438-Nov-11 6:37
indian1438-Nov-11 6:37 
QuestionCreating a c++ cli mixed mode assembly inherited from a WPF library not possible? Pin
alleyes7-Nov-11 10:26
professionalalleyes7-Nov-11 10:26 
QuestionMdiChild Pin
columbos149276-Nov-11 22:42
columbos149276-Nov-11 22:42 
QuestionRe: MdiChild Pin
Mark Salsbery7-Nov-11 9:59
Mark Salsbery7-Nov-11 9:59 
AnswerRe: MdiChild Pin
columbos149277-Nov-11 19:33
columbos149277-Nov-11 19:33 
GeneralRe: MdiChild Pin
Mark Salsbery8-Nov-11 5:19
Mark Salsbery8-Nov-11 5:19 
GeneralRe: MdiChild Pin
Pete O'Hanlon8-Nov-11 6:01
mvePete O'Hanlon8-Nov-11 6:01 
QuestionHow to add a link to textblock inside an ItemsControl? Pin
rams26-Nov-11 7:21
rams26-Nov-11 7:21 
AnswerRe: How to add a link to textblock inside an ItemsControl? Pin
Mark Salsbery6-Nov-11 8:18
Mark Salsbery6-Nov-11 8:18 
GeneralRe: How to add a link to textblock inside an ItemsControl? Pin
rams26-Nov-11 18:13
rams26-Nov-11 18:13 
GeneralRe: How to add a link to textblock inside an ItemsControl? Pin
SledgeHammer017-Nov-11 6:59
SledgeHammer017-Nov-11 6:59 
QuestionActualWidth value is becoming 0 Pin
indian1436-Nov-11 6:46
indian1436-Nov-11 6:46 
AnswerRe: ActualWidth value is becoming 0 Pin
Mark Salsbery6-Nov-11 8:36
Mark Salsbery6-Nov-11 8:36 
AnswerRe: ActualWidth value is becoming 0 Pin
SledgeHammer017-Nov-11 6:52
SledgeHammer017-Nov-11 6:52 
GeneralRe: ActualWidth value is becoming 0 Pin
indian1438-Nov-11 14:57
indian1438-Nov-11 14:57 
QuestionKeep messagebox on top of window [Solved] Pin
WelshChris4-Nov-11 4:07
WelshChris4-Nov-11 4:07 

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.