Click here to Skip to main content
15,913,027 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: GUI guidance Pin
phil.o4-Dec-10 2:46
professionalphil.o4-Dec-10 2:46 
QuestionHow do I Invalidate or repaint the Window in WPF. Pin
o1010wanabe1-Dec-10 12:25
o1010wanabe1-Dec-10 12:25 
AnswerRe: How do I Invalidate or repaint the Window in WPF. Pin
SledgeHammer012-Dec-10 6:22
SledgeHammer012-Dec-10 6:22 
GeneralRe: How do I Invalidate or repaint the Window in WPF. Pin
o1010wanabe2-Dec-10 22:24
o1010wanabe2-Dec-10 22:24 
GeneralRe: How do I Invalidate or repaint the Window in WPF. Pin
o1010wanabe2-Dec-10 22:33
o1010wanabe2-Dec-10 22:33 
NewsNew article Pin
TechiGIRL30-Nov-10 23:49
TechiGIRL30-Nov-10 23:49 
GeneralRe: New article Pin
#realJSOP5-Dec-10 6:18
professional#realJSOP5-Dec-10 6:18 
QuestionImage does not display in the TextBlock. Pin
rus20430-Nov-10 21:00
rus20430-Nov-10 21:00 
This is my code.

Image imgMessage = new Image();
BitmapImage bi = new BitmapImage();

bi.BeginInit();
bi.UriSource = new Uri(@"/imgMessage.png", UriKind.RelativeOrAbsolute);
bi.EndInit();

imgMessage.Source = bi;


TextBlock tb = new TextBlock();
InlineUIContainer iuc = new InlineUIContainer(imgMessage);
tb.Inlines.Add(iuc);
Grid1.Children.Add(tb);


Image shows a TextBlock within the code.

But, isn`t work!

However, when I write XAML code .. It work!

<Grid Height="312" Width="505" Name="Grid1">
    <TextBlock Height="58" HorizontalAlignment="Left" Margin="88,120,0,0" Name="textBlock1" Text="TextBlock" VerticalAlignment="Top" Width="314">
        <InlineUIContainer>
            <Image Source="Reply.png"></Image>
        </InlineUIContainer>
    </TextBlock>
</Grid>


What's wrong?
modified on Wednesday, December 1, 2010 5:08 AM

Questionround-robin discussion on the future of WPF and SilverLight : we'd like to see one [modified] Pin
BillWoodruff28-Nov-10 22:47
professionalBillWoodruff28-Nov-10 22:47 
AnswerRe: round-robin discussion on the future of WPF and SilverLight : we'd like to see one Pin
RobCroll29-Nov-10 0:12
RobCroll29-Nov-10 0:12 
AnswerRe: round-robin discussion on the future of WPF and SilverLight : we'd like to see one Pin
Pete O'Hanlon29-Nov-10 4:56
mvePete O'Hanlon29-Nov-10 4:56 
GeneralRe: round-robin discussion on the future of WPF and SilverLight : we'd like to see one Pin
BillWoodruff29-Nov-10 6:58
professionalBillWoodruff29-Nov-10 6:58 
GeneralRe: round-robin discussion on the future of WPF and SilverLight : we'd like to see one Pin
Pete O'Hanlon29-Nov-10 9:10
mvePete O'Hanlon29-Nov-10 9:10 
QuestionHow to get controls from Grid.Row in runtime ? Pin
Yanshof28-Nov-10 1:20
Yanshof28-Nov-10 1:20 
AnswerRe: How to get controls from Grid.Row in runtime ? Pin
Abhinav S28-Nov-10 2:03
Abhinav S28-Nov-10 2:03 
GeneralRe: How to get controls from Grid.Row in runtime ? Pin
Tarun.K.S28-Nov-10 6:43
Tarun.K.S28-Nov-10 6:43 
GeneralRe: How to get controls from Grid.Row in runtime ? Pin
Abhinav S28-Nov-10 17:24
Abhinav S28-Nov-10 17:24 
QuestionDataForm Pin
arkiboys26-Nov-10 22:39
arkiboys26-Nov-10 22:39 
AnswerRe: DataForm Pin
Pete O'Hanlon26-Nov-10 23:02
mvePete O'Hanlon26-Nov-10 23:02 
GeneralRe: DataForm Pin
arkiboys27-Nov-10 13:53
arkiboys27-Nov-10 13:53 
GeneralRe: DataForm Pin
arkiboys27-Nov-10 14:04
arkiboys27-Nov-10 14:04 
GeneralRe: DataForm Pin
Pete O'Hanlon28-Nov-10 7:59
mvePete O'Hanlon28-Nov-10 7:59 
GeneralRe: DataForm Pin
RobCroll28-Nov-10 12:24
RobCroll28-Nov-10 12:24 
QuestionPrinting Problems Pin
jadughar26-Nov-10 9:00
jadughar26-Nov-10 9:00 
Questioninstalling silverlight application Pin
jadughar25-Nov-10 6:08
jadughar25-Nov-10 6:08 

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.