![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Custom RoutedEvent in EventTrigger of CustomControl Style. I have a custom control with a RoutedEvent and try to wire it to the generic.xaml style. public class ClassShape : Control { public static readonly RoutedEvent ExpandEvent ... } The default style is something like: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace iaxaml.ShapeLibrary;assembly=Diaxaml.ShapeLibrary"> <Style TargetType="{x:Type local:ClassShape}"> .... <EventTrigger RoutedEvent="{local:ClassShape.ExpandEventHandler}"> Tried many things in many ways but the compiler keeps on telling me that; 'ClassShape.ExpandEventHandler' tag does not exist in XML namespace 'clr-namespace iaxaml.ShapeLibrary;assembly=Diaxaml.ShapeLibrary'.Is beta-related or just not possible? Thanks for any hint! |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Custom RoutedEvent in EventTrigger of CustomControl Style. I don't know the status of this one. We have though had a lot of bugs with locally defined components, where parsing works just fine if the user code isn't a separate DLL, but doesn't work if the code is in the same DLL. You might try that and see if that helps. -- -Nick Kramer [MSFT] http://blogs.msdn.com/nickkramer This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm "Illumineo" <NetronProject@gmail.com> wrote in message news:1154583328.550902.142960@m73g2000cwd.googlegroups.com... >I have a custom control with a RoutedEvent and try to wire it to the > generic.xaml style. > > public class ClassShape : Control > { > public static readonly RoutedEvent ExpandEvent > ... > } > > The default style is something like: > <ResourceDictionary > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > > xmlns:local="clr-namespace iaxaml.ShapeLibrary;assembly=Diaxaml.ShapeLibrary"> > > <Style TargetType="{x:Type local:ClassShape}"> > ... > <EventTrigger RoutedEvent="{local:ClassShape.ExpandEventHandler}"> > > Tried many things in many ways but the compiler keeps on telling me > that; > 'ClassShape.ExpandEventHandler' tag does not exist in XML namespace > 'clr-namespace iaxaml.ShapeLibrary;assembly=Diaxaml.ShapeLibrary'.> > Is beta-related or just not possible? > > Thanks for any hint! > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Font Size - XP style vs Vista style | Vista General | |||
| Font Size - XP style vs Vista style | Vista General | |||