TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
padmavathi gudipati
NA
20
28.4k
How to read Controls defined in App.xaml through code in Silverlight?
Aug 3 2010 6:23 AM
I have defined the following in the App.xaml under Resources.
<
Application.Resources
>
<
Border
x
:
Name
="TransformerBorder"
BorderBrush
="Black"
BorderThickness
="2"
Canvas.Left
="15"
Canvas.Top
="180">
<
StackPanel
Orientation
="Vertical"
HorizontalAlignment
="Left"
Canvas.Left
="15"
Canvas.Top
="180">
<
Rectangle
x
:
Name
="UpperRectangle"
Width
="25"
Height
="15"
RadiusX
="0"
RadiusY
="15">
<
Rectangle.Fill
>
<
SolidColorBrush
Color
="White"
x
:
Name
="rect1Color"
x
:
Uid
="Padma">
</
SolidColorBrush
>
</
Rectangle.Fill
>
</
Rectangle
>
<
Rectangle
x
:
Name
="LowerRectangle"
Width
="25"
Height
="15"
RadiusX
="0"
RadiusY
="30"
Fill
="LawnGreen">
</
Rectangle
>
<
StackPanel.Resources
>
<
Storyboard
x
:
Name
="myStoryboard"
AutoReverse
="True"
Duration
="0:0:5">
<
ColorAnimation
Storyboard.TargetProperty
="Color"
Storyboard.TargetName
="rect1Color"
From
="White"
To
="Green"/>
</
Storyboard
>
</
StackPanel.Resources
>
</
StackPanel
>
</
Border
>
</
Application.Resources
>
Now I need to refer the TransformerBorder, how can I do this? I am not able to access this control from thas App.xaml file.
Can anyone help me out here?
Thanks & Regards
Padma
Reply
Answers (
1
)
add value content
How to add shapes to a Combobox through code in Silverlight?