Date Control

Hi,

I would like to know if it is possible to load Windows Forms Controls like the DateTimePicker in a XAML application, seeing as Avalon is lacking the control.

Thanks,

Jaco



Answer this question

Date Control

  • Shubham

    Here you go,

    < Mapping XmlNamespace="wfi" ClrNamespace="System.Windows.Forms.Integration" Assembly="WindowsFormsIntegration" >
    < Mapping XmlNamespace="wf" ClrNamespace="System.Windows.Forms" Assembly="System.Windows.Forms" >
    <Window x:Class="HostingWfInWpf.Window1"
    xmlns="http://schemas.microsoft.com/winfx/avalon/2005"
    xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005"
    xmlns:wfi="wfi"
    xmlns:wf="wf"
    Title="DateTimePicker"
    >

    <Grid>
    <wfi:WindowsFormsHost>
    <wf:DateTimePicker x:Name="dtp" />
    </wfi:WindowsFormsHost>
    </Grid>

    </Window>

  • Date Control