Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6546931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:46:06+00:00 2026-05-25T11:46:06+00:00

I am using a DatePicker from the WPFToolkit library in a UserControl I have

  • 0

I am using a DatePicker from the WPFToolkit library in a UserControl I have defined in a ControlLibrary.

If I use my UserControl from another application I get an ApplicationException: “Cannot find type ‘Microsoft.Windows.Controls.DatePicker’. The assembly used when compiling might be different than that used when loading and the type is missing.”

I am able to avoid this exception if I add an assembly reference to WPFToolkit library from the Application that is referencing my UserControl. Is there a way for me to do this without having to reference the WPFToolkit assembly in my Application?

Here is the xaml for my UserControl:

<UserControl x:Class="View.DateRangeView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:toolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit"
             mc:Ignorable="d" 
             d:DesignHeight="50" d:DesignWidth="300">
    <UserControl.Resources>
        <ResourceDictionary Source="/ReuxablesLegacy;component/candy.xaml" />
    </UserControl.Resources>
    <Grid VerticalAlignment="Top">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="Auto" SharedSizeGroup="enable" />
        </Grid.ColumnDefinitions> 

        <StackPanel Orientation="Horizontal" >
            <toolkit:DatePicker Margin="3" SelectedDate="{Binding Path=LowRange}" Width="100" />
            <TextBlock Text=" To " Margin="3" VerticalAlignment="Center" />
            <toolkit:DatePicker Margin="3" SelectedDate="{Binding Path=HighRange}" Width="100" />
        </StackPanel>
        <CheckBox Grid.Column="1" Content="Enable" Margin="3" VerticalAlignment="Center" IsChecked="{Binding Path=Enabled}" />
    </Grid>
</UserControl>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:46:07+00:00Added an answer on May 25, 2026 at 11:46 am

    you have to add a reference to both your assembly and the 3rd party assembly to the application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the jQuery datepicker from jqueryui.com and I have a problem changing the
Basically I'm using datepicker from jQuery to have my client pick a date. I
I am currently using this JQuery datepicker from http://www.eyecon.ro/datepicker/ . I have looked through
I am using the datepicker control from jQuery-ui 1.8. from-date is a text input.
I have a textbox and a datepicker next to it and I am using
Am developing an app, which first gets the current date from DatePicker using Calendar.getInstance(),
Using this rather neat approach I can disable weekends and holidays from the datepicker.
I am using the UI DatePicker from jQuery UI as the stand alone picker.
I'm using DatePicker and TimePicker from the toolkit. I've got to hook up on
I'm using datepicker.iso8601Week() to calculate the week from a selected date (in a jQuery

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.