M
mick
Just started experimenting with WPF and was wondering if someone knows
how to reference properties from a WPF project in C#.
Description:
I have an oldish program I wrote in C#. Part of it is a list of buttons that
will launch other apps. Ive created a little animated information popout
in WPF that contains and image and a bit of text. Ive imported this project
into the solution that contains the C# project. The idea is when the
user mouses over one of the buttons then the popout ...erm... pops out.
Obviously which image and text that appears in the popout will depend
on which button is being moused over.
The WPF layout is -
Window
Border
StackPanel
Image
TextBlock
All works well except I dont know to reference the Image or TextBlock from
the
C# part to insert the appropriate image and text (Note: I'm not talking
about
the C# backing code here). When I new up an instance of the popout I can
access
all of the other properties; Position Colors etc but the things Ive added
dont
appear. This is probably a very basic question and probably more WPF than C#
but I thought I'd give it a go.
mick
how to reference properties from a WPF project in C#.
Description:
I have an oldish program I wrote in C#. Part of it is a list of buttons that
will launch other apps. Ive created a little animated information popout
in WPF that contains and image and a bit of text. Ive imported this project
into the solution that contains the C# project. The idea is when the
user mouses over one of the buttons then the popout ...erm... pops out.
Obviously which image and text that appears in the popout will depend
on which button is being moused over.
The WPF layout is -
Window
Border
StackPanel
Image
TextBlock
All works well except I dont know to reference the Image or TextBlock from
the
C# part to insert the appropriate image and text (Note: I'm not talking
about
the C# backing code here). When I new up an instance of the popout I can
access
all of the other properties; Position Colors etc but the things Ive added
dont
appear. This is probably a very basic question and probably more WPF than C#
but I thought I'd give it a go.
mick