Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I can get it to work by following these steps:</p> <ul> <li>using Visual Studio 2010</li> <li>create new WPF Application</li> <li>change platform to ".Net Framework 4" (NOT client profile)</li> <li><p>add references to System.Windows.Forms and WindowsFormIntegration</p></li> <li><p>download MonthCalendar from:<br> <a href="http://www.codeproject.com/KB/selection/MonthCalendar/MonthCalendar_src_vs2005.zip" rel="nofollow noreferrer">http://www.codeproject.com/KB/selection/MonthCalendar/MonthCalendar_src_vs2005.zip</a></p></li> <li>extract MonthCalendar, and add as existing project to Solution</li> <li>change MonthCalendar platform to ".Net Framework 4" (NOT client profile)</li> <li>delete and re-add the System.Design reference so that you use the .NET 4 one</li> <li>in the WPF Application add reference to the MonthCalendar project</li> <li>use the namespace reference xmlns:pc="clr-namespace:Pabo.Calendar;assembly=MonthCalendar" in XAML</li> </ul> <p><img src="https://i.stack.imgur.com/CDLkN.png" alt="enter image description here"></p> <pre><code>&lt;Window x:Class="WpfApplication6.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms" xmlns:pc="clr-namespace:Pabo.Calendar;assembly=MonthCalendar" Title="MainWindow" Height="350" Width="525"&gt; &lt;Grid Height="65" Width="280"&gt; &lt;WindowsFormsHost Margin="0,0,12,12" Height="100"&gt; &lt;pc:MonthCalendar x:Name="myCalendar"/&gt; &lt;/WindowsFormsHost&gt; &lt;/Grid&gt; &lt;/Window&gt; </code></pre> <p>So what are you doing differently?</p> <p>Did you keep the MonthCalendar in it's own project?</p> <p>What OS platform are you running on ?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload