![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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) |
| | Problem with custom Markup Extension Hi everybody, Today I created my first custom Markup Extension... (yay me!!! ) My problem is that after defining my custom MarkupExtention... rightfully called "CustomExtension"... I cannot use the attribute syntax to use the extension... <TextBox Text="{local:CustomExtension Param1=test}" /> <!-- Doesn't work!!! --> The compiler gives me an error indicating that the MarkupExtention "CustomExtention" cannot be found in the "local" namespace and to make sure that Markup Extentions must derive from MarkupExtension (which my class does)... If I use the Element Syntax (as above)... the neverything works fine... <TextBox> <TextBox.Text> <local:CustomExtension Param1="test"/> </TextBox.Text> </TextBox> Now, maybe this is a bug of WPF, or I'm missing something else... Thanks.. Marcys |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Problem with custom Markup Extension Hi Marcus, I am also experiencing compilation problems with custom markup extensions (Beta 2). But it seems that it works if you use plain XAML. I posted example on my blog: RefExtension - How to load XAML on-demand [ http://blog.vyvojar.cz/tom/archive/2006/05/25/8222.aspx ] Kind regards, Tom |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| .mp3 extension problem | Sound & Audio | |||