At the moment in my resource dictionary I have a telerik Tile control. When it's instantiated a second time I receive the follow error `Specified Visual is already a child of another Visual or the root of a CompositionTarget`
app.xaml
public void ListIcon()
{
var tile = Application.Current.Resources["ListTile"] as Tile;
Tiles.Add(tile);
}
app.xaml
<
telerik:Tile
x:Key
=
"Calendar"
TileType
=
"Double"
Background
=
"#FF79256B"
Group
=
"Other"
>
<
telerik:RadCalendar
x:Name
=
"calendar"
FontFamily
=
"Segoe UI"
FontSize
=
"10"
controls:StyleManager.Theme
=
"Windows8"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Center"
SelectionMode
=
"Extended"
IsTodayHighlighted
=
"True"
ViewsHeaderVisibility
=
"Collapsed"
SelectedDate
=
"{Binding SelectedDate, Mode=TwoWay}"
Culture
=
"en-US"
DayTemplateSelector
=
"{StaticResource EventDayTemplateSelector}"
/>
</
controls:Tile
>
Everytime a new user is logged in, ListIcon() is called. If I log out and log into a second user the error occurs. May I ask how do I resolve this.