Click here to Skip to main content
14,577,932 members
   

C#

 
AnswerRe: Differentt Typecasting for the same object Pin
Super Lloyd28-Jul-08 20:31
MemberSuper Lloyd28-Jul-08 20:31 
AnswerRe: Differentt Typecasting for the same object Pin
Christian Flutcher28-Jul-08 20:32
MemberChristian Flutcher28-Jul-08 20:32 
AnswerRe: Differentt Typecasting for the same object Pin
PIEBALDconsult29-Jul-08 13:58
professionalPIEBALDconsult29-Jul-08 13:58 
QuestionHow do you maintain your connection/DAL in the object layer. [modified] Pin
Mycroft Holmes28-Jul-08 20:10
professionalMycroft Holmes28-Jul-08 20:10 
AnswerRe: How do you maintain your connection/DAL in the object layer. Pin
Christian Flutcher28-Jul-08 20:20
MemberChristian Flutcher28-Jul-08 20:20 
GeneralRe: How do you maintain your connection/DAL in the object layer. Pin
Mycroft Holmes28-Jul-08 20:39
professionalMycroft Holmes28-Jul-08 20:39 
GeneralRe: How do you maintain your connection/DAL in the object layer. Pin
Mark Churchill29-Jul-08 15:51
MemberMark Churchill29-Jul-08 15:51 
QuestionWPf- Data Binding Problem Pin
topksharma198228-Jul-08 19:44
Membertopksharma198228-Jul-08 19:44 
Hi All,
I have one class derived from ContentControl.
And inside it's content I have ImageSource and a TextBlock, I want to bind the Text property of TextBlock to the Name proeprty of an object but it's not working.Below is the code snippet:

public void AddBitmapToCanvas(System.Drawing.Bitmap bitmap, string pageName,int width,int height,HorizonPage hpage)
{

Binding txtBinding=new Binding("Name");
txtBinding.Source=hpage;

try
{

_pageImage = new PageImage {PageName = pageName};
content = new StringBuilder();
content.Append("<StackPanel xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" Height=\"");
content.Append(_pageImage.Height);
content.AppendFormat("\" Width=\"");
content.Append(_pageImage.Width);
content.Append("\"><Image Source=\"\" Height=\"");
content.Append(height);
content.Append("\" Width=\"");
content.Append(_pageImage.Width);
content.Append("\"></Image><TextBlock Text=\"\" TextAlignment=\"Left\" Height=\"");
content.Append(_textBlockHeight);
content.Append("\" Width=\"");
content.Append(_pageImage.Width);
content.Append("\" Foreground=\"Black\"></TextBlock></StackPanel> ");

ui = (UIElement)XamlReader.Load(xmlReader);

//Setting Image Source property
((Image)((StackPanel)ui).Children[0]).Source = WpfBitmap;

//Setting TextBlock Text property
((TextBlock)((StackPanel)ui).Children[1]).Text = pageName;
((TextBlock)((StackPanel)ui).Children[1]).SetBinding(TextBlock.TextProperty,txtBinding);

_pageImage.Content = ui;

}

}

Any help will be much appreciated..

Praveen Sharma

QuestionHow to find Versioning Information Pin
Mike Bentzen28-Jul-08 18:21
MemberMike Bentzen28-Jul-08 18:21 
AnswerRe: How to find Versioning Information Pin
Vasudevan Deepak Kumar28-Jul-08 18:36
MemberVasudevan Deepak Kumar28-Jul-08 18:36 
GeneralRe: How to find Versioning Information Pin
Mike Bentzen28-Jul-08 18:57
MemberMike Bentzen28-Jul-08 18:57 
GeneralRe: How to find Versioning Information Pin
Mike Bentzen28-Jul-08 19:01
MemberMike Bentzen28-Jul-08 19:01 
AnswerRe: How to find Versioning Information Pin
Luc Pattyn29-Jul-08 3:23
sitebuilderLuc Pattyn29-Jul-08 3:23 
Questionusing C# CodeDom to generate web service code Pin
AndieDu28-Jul-08 15:57
MemberAndieDu28-Jul-08 15:57 
AnswerRe: using C# CodeDom to generate web service code Pin
Vasudevan Deepak Kumar28-Jul-08 18:37
MemberVasudevan Deepak Kumar28-Jul-08 18:37 
GeneralRe: using C# CodeDom to generate web service code Pin
AndieDu28-Jul-08 19:20
MemberAndieDu28-Jul-08 19:20 
QuestionStatusStrip SQL Pin
nelsonpaixao28-Jul-08 14:04
Membernelsonpaixao28-Jul-08 14:04 
Question[Message Deleted] Pin
happy2day28-Jul-08 11:56
Memberhappy2day28-Jul-08 11:56 
AnswerRe: C# Programmers... Pin
Christian Graus28-Jul-08 12:48
mveChristian Graus28-Jul-08 12:48 
GeneralRe: C# Programmers... Pin
happy2day28-Jul-08 12:56
Memberhappy2day28-Jul-08 12:56 
GeneralRe: C# Programmers... Pin
Paul Conrad28-Jul-08 17:49
subeditorPaul Conrad28-Jul-08 17:49 
QuestionHow to navigate memory using pointers? Pin
CopperCircle28-Jul-08 11:08
MemberCopperCircle28-Jul-08 11:08 
AnswerRe: How to navigate memory using pointers? Pin
Luc Pattyn28-Jul-08 11:17
sitebuilderLuc Pattyn28-Jul-08 11:17 
GeneralRe: How to navigate memory using pointers? Pin
CopperCircle28-Jul-08 13:57
MemberCopperCircle28-Jul-08 13:57 
GeneralRe: How to navigate memory using pointers? Pin
Luc Pattyn28-Jul-08 14:04
sitebuilderLuc Pattyn28-Jul-08 14:04 

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.