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
Ron
NA
44
64.3k
Using WPF User Control in application
Mar 19 2012 12:05 PM
I'm having difficulty using a User Control in a application.
Application:
Xaml:
<Window x:Class="MyApp.MyAppMain"
...
</Window>
Xaml.cs:
namespace MyApp
{
public partial class MyAppMain : Window
...
}
User Control:
Xaml:
<UserControl x:Class="MyApp.FileLookup"
x:Name="FileLookup"
...
</UserControl>
Xaml.cs:
namespace MyApp
{
public partial class FileLookup : UserControl
}
Integrating User Control into App:
Xaml:
<Window x:Class="MyApp.MyAppMain"
<xmlns:local="clr-namespace:MyApp.FileLookup">
...
<Grid>
<local:FileLookup />
</Grid>
</Window>
Regardless of where in the application I insert <local:FileLookup />, I get an indication that the FileLookup can't be found. Where am I going wrong?
Reply
Answers (
1
)
Serial port C# wpf received data continuous
How to Set underline in my Label Text