Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
OriginalGriff2-Dec-18 6:27
mveOriginalGriff2-Dec-18 6:27 
GeneralRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
James Wyatt2-Dec-18 7:28
James Wyatt2-Dec-18 7:28 
GeneralRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
Pete O'Hanlon4-Dec-18 7:06
mvePete O'Hanlon4-Dec-18 7:06 
GeneralRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
Gerry Schmitz4-Dec-18 7:16
mveGerry Schmitz4-Dec-18 7:16 
GeneralRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
BillWoodruff5-Dec-18 14:49
professionalBillWoodruff5-Dec-18 14:49 
AnswerRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
Mycroft Holmes2-Dec-18 10:42
professionalMycroft Holmes2-Dec-18 10:42 
GeneralRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
James Wyatt2-Dec-18 20:57
James Wyatt2-Dec-18 20:57 
AnswerRe: WPF and C# - Passing Data and accessing Controls between Child Windows Pin
Gerry Schmitz4-Dec-18 7:58
mveGerry Schmitz4-Dec-18 7:58 
Lots of options:
public string TheText { get; set; } = "Bound value";

private void UxOK_Click( object sender, RoutedEventArgs e ) {

   Window log = new Window();

   TextBlock tb = new TextBlock();
   tb.FontSize = 24;

   log.Content = tb;

   // #1.
   //tb.Inlines.Add( new Run( "Hello " ) );
   //tb.Inlines.Add( new Run( "World!" ) { FontStyle = FontStyles.Italic } );

   // #2.
   tb.Text += "Good" + Environment.NewLine;
   tb.Text += "Bye";

   // #3
   //this.TheText = "Foo" + Environment.NewLine + "bar";
   //tb.SetBinding( TextBlock.TextProperty, new Binding( nameof( this.TheText ) ) );
   //log.DataContext = this;

   //
   log.Show();
}
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal

QuestionRdlc reporting page break doesnt work Pin
Member 132642682-Dec-18 3:24
Member 132642682-Dec-18 3:24 
QuestionA problem of great decision Pin
_Q12_2-Dec-18 2:28
_Q12_2-Dec-18 2:28 
AnswerRe: A problem of great decision Pin
Super Lloyd2-Dec-18 17:08
Super Lloyd2-Dec-18 17:08 
AnswerRe: A problem of great decision Pin
Eddy Vluggen3-Dec-18 0:15
professionalEddy Vluggen3-Dec-18 0:15 
AnswerRe: A problem of great decision Pin
Gerry Schmitz4-Dec-18 7:02
mveGerry Schmitz4-Dec-18 7:02 
QuestionC sharp / mysql saving a blob variable into mysql Database Pin
margalla30-Nov-18 2:07
margalla30-Nov-18 2:07 
AnswerRe: C sharp / mysql saving a blob variable into mysql Database Pin
Eddy Vluggen30-Nov-18 2:13
professionalEddy Vluggen30-Nov-18 2:13 
QuestionUsercontrol poser ( rusty Winforms guy ) Pin
pkfox29-Nov-18 4:16
professionalpkfox29-Nov-18 4:16 
AnswerRe: Usercontrol poser ( rusty Winforms guy ) Pin
OriginalGriff29-Nov-18 4:49
mveOriginalGriff29-Nov-18 4:49 
GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
pkfox29-Nov-18 5:24
professionalpkfox29-Nov-18 5:24 
GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
OriginalGriff29-Nov-18 5:32
mveOriginalGriff29-Nov-18 5:32 
AnswerRe: Usercontrol poser ( rusty Winforms guy ) Pin
BillWoodruff1-Dec-18 16:52
professionalBillWoodruff1-Dec-18 16:52 
GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
pkfox1-Dec-18 21:04
professionalpkfox1-Dec-18 21:04 
AnswerRe: Usercontrol poser ( rusty Winforms guy ) Pin
BillWoodruff2-Dec-18 0:43
professionalBillWoodruff2-Dec-18 0:43 
GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
pkfox2-Dec-18 3:48
professionalpkfox2-Dec-18 3:48 
GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
BillWoodruff2-Dec-18 4:06
professionalBillWoodruff2-Dec-18 4:06 
GeneralRe: Usercontrol poser ( rusty Winforms guy ) Pin
pkfox2-Dec-18 6:03
professionalpkfox2-Dec-18 6:03 

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.