Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Using Attached DP in xaml file in a VB project doesn't work

Closed Thread
 
Thread Tools Display Modes
Old 12-02-2006   #1 (permalink)
Pon
Guest


 

Using Attached DP in xaml file in a VB project doesn't work

Hello,

I have no problem to declare and use an attached property of a custom
control in C#. But i can't get it work in VB. Could someone from MS confirm
that ?

More generally, it seems that VB is far from being as WPF compliant as C#
is. Right ?
If it is, can we hope that could change and when ?

Thank you.



Old 12-11-2006   #2 (permalink)
Pon
Guest


 

Re: Using Attached DP in xaml file in a VB project doesn't work

Nobody ?


"Pon" <pongla.public@laposte.net> wrote in message
news:OrddeYlFHHA.4844@TK2MSFTNGP03.phx.gbl...
> Hello,
>
> I have no problem to declare and use an attached property of a custom
> control in C#. But i can't get it work in VB. Could someone from MS
> confirm that ?
>
> More generally, it seems that VB is far from being as WPF compliant as C#
> is. Right ?
> If it is, can we hope that could change and when ?
>
> Thank you.
>
>
>



Old 12-11-2006   #3 (permalink)
Pon
Guest


 

Re: Using Attached DP in xaml file in a VB project doesn't work

Nobody ?


"Pon" <pongla.public@laposte.net> wrote in message
news:OrddeYlFHHA.4844@TK2MSFTNGP03.phx.gbl...
> Hello,
>
> I have no problem to declare and use an attached property of a custom
> control in C#. But i can't get it work in VB. Could someone from MS
> confirm that ?
>
> More generally, it seems that VB is far from being as WPF compliant as C#
> is. Right ?
> If it is, can we hope that could change and when ?
>
> Thank you.
>
>
>



Old 12-18-2006   #4 (permalink)
Wolf Schmidt [MSFT]
Guest


 

Re: Using Attached DP in xaml file in a VB project doesn't work

Could you share out your control code somewhere, or tack it on as text if
it's simple enough?

Alternatively, try posting over on Forums instead, and attaching your
control code.

There isn't anything native to VB.NET that should prevent your attached
properties from working, but it's possible that there is something that has a
different behavior with your own Get* and Set* accessors in C# vs VB. Since
the parameter typing is so open, there might be something I am not thinking
of that's particular to your implementation.

"Pon" wrote:

> Nobody ?
>
>
> "Pon" <pongla.public@laposte.net> wrote in message
> news:OrddeYlFHHA.4844@TK2MSFTNGP03.phx.gbl...
> > Hello,
> >
> > I have no problem to declare and use an attached property of a custom
> > control in C#. But i can't get it work in VB. Could someone from MS
> > confirm that ?
> >
> > More generally, it seems that VB is far from being as WPF compliant as C#
> > is. Right ?
> > If it is, can we hope that could change and when ?
> >
> > Thank you.
> >
> >
> >

>
>
>

Old 12-18-2006   #5 (permalink)
Wolf Schmidt [MSFT]
Guest


 

Re: Using Attached DP in xaml file in a VB project doesn't work

Could you share out your control code somewhere, or tack it on as text if
it's simple enough?

Alternatively, try posting over on Forums instead, and attaching your
control code.

There isn't anything native to VB.NET that should prevent your attached
properties from working, but it's possible that there is something that has a
different behavior with your own Get* and Set* accessors in C# vs VB. Since
the parameter typing is so open, there might be something I am not thinking
of that's particular to your implementation.

"Pon" wrote:

> Nobody ?
>
>
> "Pon" <pongla.public@laposte.net> wrote in message
> news:OrddeYlFHHA.4844@TK2MSFTNGP03.phx.gbl...
> > Hello,
> >
> > I have no problem to declare and use an attached property of a custom
> > control in C#. But i can't get it work in VB. Could someone from MS
> > confirm that ?
> >
> > More generally, it seems that VB is far from being as WPF compliant as C#
> > is. Right ?
> > If it is, can we hope that could change and when ?
> >
> > Thank you.
> >
> >
> >

>
>
>

Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to include XAML files into another XAML file? star-italia .NET General 6 06-12-2008 04:56 AM
USB attached devices do not work with windows Vista Steven Weisman Vista General 0 01-30-2007 10:53 AM
How to deploy an XAML-based App with its XAML-UI-File? Solveigh Avalon 11 11-08-2006 07:50 AM
New XAML project in VS2005 Verdagon@gmail.com Avalon 4 08-17-2006 06:05 AM
File.xaml and File.xaml.cs are atomically checked out/in from sourcesafe Pascal Bourque Avalon 1 04-26-2006 06:47 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50