Click here to Skip to main content
15,889,527 members
Home / Discussions / WPF
   

WPF

 
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 
Hi,

In a WPF Application using XAML,

I created a stackpanel(width 1030) and I have 2 Images. 1. imgClient width = 784 Height = 66 and 2. imgClientExtra width =1 and Height = 66

imgClientExtra will be right end and imgClient will start at leftend.

so, the images will fit to 784 + 1 when the application is not running, the total image width is 785(784+1).. but, wen the application is running.. the image has to stretch to 1030... with imgClientExtra will be at 1030 and imgClient will have to stretch to 1029 only..

I used stretch.fill ... but didnt work.,.


<StackPanel Name="stkpnlHeader" Margin="0,0,0,0" Width="1254.662" Height="auto" HorizontalAlignment="Left" VerticalAlignment="Top">
                <StackPanel Name="imgStkPnl"Orientation="Vertical" Width="1253.511" HorizontalAlignment="Left">
                    <Image Name="imgClientPhoto" HorizontalAlignment="Left" VerticalAlignment="Top" Width="784" Height="66" 
                   Source="D:\ehtmp_top_left.gif" Stretch="Fill" StretchDirection="Both">

                    </Image>
                    <Image Name="imgExtraImg"   Width="1" Height="66" Margin="0,-66,0,0" HorizontalAlignment="Right" 
                       Source="D:\ehtmp_top_right.gif"
                       ></Image>
                </StackPanel> </StackPanel>


Please help.. Thanks Ramm

modified on Tuesday, July 28, 2009 7:32 AM

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 
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 
AnswerRe: Auto apply application-level resource-dictionary theme to all controls in program? Pin
Pete O'Hanlon27-Jul-09 22:23
mvePete O'Hanlon27-Jul-09 22:23 
GeneralRe: Auto apply application-level resource-dictionary theme to all controls in program? Pin
FocusedWolf28-Jul-09 5:52
FocusedWolf28-Jul-09 5:52 
Questionwpf Pin
bhavna432127-Jul-09 18:26
bhavna432127-Jul-09 18:26 
AnswerRe: wpf Pin
Pete O'Hanlon27-Jul-09 20:09
mvePete O'Hanlon27-Jul-09 20:09 
AnswerRe: wpf Pin
#realJSOP27-Jul-09 23:49
mve#realJSOP27-Jul-09 23:49 
QuestionPrism, XAP and dynamic loading Pin
User 527145427-Jul-09 8:01
User 527145427-Jul-09 8:01 
AnswerRe: Prism, XAP and dynamic loading Pin
Michael Sync28-Jul-09 4:45
Michael Sync28-Jul-09 4:45 
QuestionHow to draw RichTextBox with mouse? Pin
Farrukhw27-Jul-09 1:13
Farrukhw27-Jul-09 1:13 
AnswerRe: How to draw RichTextBox with mouse? Pin
Christian Graus28-Jul-09 0:10
protectorChristian Graus28-Jul-09 0:10 
GeneralRe: How to draw RichTextBox with mouse? Pin
Farrukhw28-Jul-09 0:22
Farrukhw28-Jul-09 0:22 
GeneralRe: How to draw RichTextBox with mouse? Pin
Christian Graus28-Jul-09 19:27
protectorChristian Graus28-Jul-09 19:27 
QuestionImage loading Pin
#realJSOP26-Jul-09 23:58
mve#realJSOP26-Jul-09 23:58 
AnswerRe: Image loading Pin
Pete O'Hanlon27-Jul-09 2:01
mvePete O'Hanlon27-Jul-09 2:01 

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.