I kept searching for XAML and enterkey which kept taking me to PresentationCore.  But you are right, Key is in WindowsBase.  Adding a reference fixed it for me.<br><br><div class="gmail_quote">On Mon, Mar 8, 2010 at 10:28 PM, Dino Viehland <span dir="ltr">&lt;<a href="mailto:dinov@microsoft.com">dinov@microsoft.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Has Key moved from WindowsBase to PresentationCore?   I’m not
familiar with WPF but the docs says it’s in WB: <a href="http://msdn.microsoft.com/en-us/library/system.windows.input.key.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/system.windows.input.key.aspx</a></span></p>


<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">If it has genuinely moved, is now type forwarded, and we’re not
picking it up my suggestion would be to add a reference to both assemblies.  If
it hasn’t moved we probably need a test which shows that type forwarded types are
available – I’m hoping reflection will do that.</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0in 0in 0in 4pt;">

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>] <b>On
Behalf Of </b>Bruce Bromberek<br>
<b>Sent:</b> Monday, March 08, 2010 8:20 PM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> [IronPython] How to reference enumeration in
System.Windows.Input</span></p>

</div>

</div><div><div></div><div class="h5">

<p class="MsoNormal"> </p>

<p class="MsoNormal">I can&#39;t seem to figure out how to add a reference to System.Windows.Input
now that it is part of the PresentationCore assembly.  Specifically I&#39;m
trying to check for the enterkey, but I&#39;m forced to do this:<br>
<br>
if str(e.Key) == &quot;Return&quot;:<br>
<br>
instead of <br>
<br>
if e.Key == Key.Enter:<br>
<br>
<br>
I&#39;m using Ironpython 2.6.1 RC1 with .Net 3.5.<br>
<br>
<br>
Thanks</p>

</div></div></div>

</div>

</div>


<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br>