Click here to Skip to main content
15,917,062 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Plotting a Silverlight chart/graph by getting data from SQL database Pin
Pete O'Hanlon2-Aug-09 10:36
mvePete O'Hanlon2-Aug-09 10:36 
QuestionDIssolve effect for image Pin
highton29-Jul-09 17:02
highton29-Jul-09 17:02 
AnswerRe: DIssolve effect for image Pin
Pete O'Hanlon29-Jul-09 21:28
mvePete O'Hanlon29-Jul-09 21:28 
AnswerRe: DIssolve effect for image Pin
#realJSOP31-Jul-09 0:26
professional#realJSOP31-Jul-09 0:26 
QuestionWPF Toolbox Calendar - Slow when connecting to a database Pin
Glyn12329-Jul-09 1:23
Glyn12329-Jul-09 1:23 
AnswerRe: WPF Toolbox Calendar - Slow when connecting to a database Pin
Pete O'Hanlon29-Jul-09 1:48
mvePete O'Hanlon29-Jul-09 1:48 
GeneralRe: WPF Toolbox Calendar - Slow when connecting to a database Pin
Glyn12329-Jul-09 2:10
Glyn12329-Jul-09 2:10 
QuestionHow to call a WCF service from silverlight application Pin
Nekkantidivya29-Jul-09 0:54
Nekkantidivya29-Jul-09 0:54 
AnswerRe: How to call a WCF service from silverlight application Pin
Michael Sync29-Jul-09 4:33
Michael Sync29-Jul-09 4:33 
AnswerRe: How to call a WCF service from silverlight application Pin
Arun Jacob5-Aug-09 0:27
Arun Jacob5-Aug-09 0:27 
Questionwpf + asp.net3.5 Pin
bhavna432129-Jul-09 0:21
bhavna432129-Jul-09 0:21 
AnswerRe: wpf + asp.net3.5 Pin
#realJSOP29-Jul-09 3:13
professional#realJSOP29-Jul-09 3:13 
AnswerRe: wpf + asp.net3.5 Pin
Christian Graus29-Jul-09 10:52
protectorChristian Graus29-Jul-09 10:52 
QuestionTextbox Overriding OnRender and FormattedText problem [modified] Pin
Member 232448328-Jul-09 10:47
Member 232448328-Jul-09 10:47 
AnswerRe: Textbox Overriding OnRender and FormattedText problem Pin
Member 232448328-Jul-09 13:53
Member 232448328-Jul-09 13:53 
QuestionWPF Designer fails loading assembly Pin
vbnetter28-Jul-09 7:43
vbnetter28-Jul-09 7:43 
AnswerRe: WPF Designer fails loading assembly Pin
Christian Graus28-Jul-09 11:14
protectorChristian Graus28-Jul-09 11:14 
GeneralRe: WPF Designer fails loading assembly Pin
vbnetter29-Jul-09 3:43
vbnetter29-Jul-09 3:43 
QuestionEmbed excel workbook inside WPF Pin
maesi198028-Jul-09 3:38
maesi198028-Jul-09 3:38 
AnswerRe: Embed excel workbook inside WPF Pin
Christian Graus28-Jul-09 22:25
protectorChristian Graus28-Jul-09 22:25 
QuestionImage Stretch programatically in WPF. [modified] Pin
Krishna Aditya28-Jul-09 1:11
Krishna Aditya28-Jul-09 1:11 
AnswerRe: Image Stretch programatically in WPF. Pin
Super Lloyd28-Jul-09 2:46
Super Lloyd28-Jul-09 2:46 
AnswerRe: Image Stretch programatically in WPF. Pin
Mark Salsbery28-Jul-09 6:21
Mark Salsbery28-Jul-09 6:21 
Your XAML doesn't match your description (e.g. images on the left and right ends of a vertical stackpanel??).

Items in Stackpanels are sized by the item, not the stackpanel size,
so you'd need to specify width and/or height of the stackpanel's children
to get the layout you want using a stackpanel. Something like:
<StackPanel Name="stkpnlHeader" Width="1254.662" Height="Auto" >
    <StackPanel Name="imgStkPnl" Orientation="Horizontal" Width="1253.511" >
        <Image Name="imgClientPhoto" Source="D:\ehtmp_top_left.gif" Stretch="Fill" Width="1030" Height="66" />
        <Image Name="imgExtraImg" Source="D:\ehtmp_top_right.gif" Width="1" Height="66" />
    </StackPanel>
</StackPanel>

The drawback to this approach is that the dimensions are hardwired to
specific values, making changes problematic. To get around that, you
could use a more appropriate layout element. For example, a grid:
<StackPanel Name="stkpnlHeader" Width="1254.662" Height="auto" >
    <Grid Name="imgGrid" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="66" />
        </Grid.RowDefinitions>
        <Image Name="imgClientPhoto" Grid.Column="0" Source="D:\ehtmp_top_left.gif" Stretch="Fill" />
        <Image Name="imgExtraImg" Grid.Column="1" Source="D:\ehtmp_top_right.gif" />
    </Grid>
</StackPanel>

Note the difference - grids lay out children, stack panels are laid out by
their children.

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Image Stretch programatically in WPF. Pin
Krishna Aditya28-Jul-09 20:16
Krishna Aditya28-Jul-09 20:16 
QuestionAuto apply application-level resource-dictionary theme to all controls in program? Pin
FocusedWolf27-Jul-09 20:10
FocusedWolf27-Jul-09 20:10 

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.