Click here to Skip to main content
15,886,110 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Using XAML for business objects Pin
Jean-Louis Leroy20-May-11 1:49
Jean-Louis Leroy20-May-11 1:49 
Question[WPF] Problem binding to an image property Pin
SVanraes19-May-11 21:50
SVanraes19-May-11 21:50 
AnswerRe: [WPF] Problem binding to an image property Pin
Mark Salsbery20-May-11 5:03
Mark Salsbery20-May-11 5:03 
QuestionHow to change the color of a row in listbox Itemsource Pin
Rocky2319-May-11 21:21
Rocky2319-May-11 21:21 
AnswerRe: How to change the color of a row in listbox Itemsource Pin
BubingaMan19-May-11 22:52
BubingaMan19-May-11 22:52 
Questionvisibility of form sections based on selected index of DataGrid Pin
Michael J. Eber19-May-11 13:31
Michael J. Eber19-May-11 13:31 
AnswerRe: visibility of form sections based on selected index of DataGrid [modified] Pin
Mark Salsbery19-May-11 17:35
Mark Salsbery19-May-11 17:35 
GeneralRe: visibility of form sections based on selected index of DataGrid Pin
Michael J. Eber20-May-11 7:09
Michael J. Eber20-May-11 7:09 
Hey Mark!

You're okay for a C++ guy. Laugh | :laugh:

So I implemented my convert. check
Then I implemented the binding. check
Added the namespace for local. check
Then did local: my converter was visible and got it set with a key. check
Ran the solution and got this error at compile time.

Error 1 The tag 'DataGridVisibilityConverter' does not exist in XML namespace 'clr-namespace:CNRPGlobal.Converters; assembly=GlobalLibraryDefinitions'.

So how is it I can type local: and see my class library. Yet when I compile XAML cannot? I confirmed it is public.

Here is a snippet of what I've got:
xmlns:local="clr-namespace:CNRPGlobal.Converters; assembly=GlobalLibraryDefinitions"
xmlns:sys="clr-namespace:System;assembly=mscorlib">

<UserControl.Resources>
    <ResourceDictionary x:Key="styles" Source="/GlobalLibraryDefinitions;component/Themes/Generic.xaml" />
    <local:DataGridVisibilityConverter x:Key="VisibilityConverter" />
</UserControl.Resources>


And the consumption of the converter:

<cnrp:FormSection x:Name="designSection" Title="Design Section" DataContext="{Binding CurrentDesign, Mode=TwoWay}"
                  Visibility="{Binding ElementName=dgDesigns, Path=SelectedIndex, Mode=OneWay, Converter={StaticResource VisibilityConverter}}">

GeneralRe: visibility of form sections based on selected index of DataGrid Pin
Mark Salsbery20-May-11 7:28
Mark Salsbery20-May-11 7:28 
GeneralRe: visibility of form sections based on selected index of DataGrid [modified] Pin
Michael J. Eber20-May-11 7:56
Michael J. Eber20-May-11 7:56 
GeneralRe: visibility of form sections based on selected index of DataGrid Pin
Mark Salsbery20-May-11 8:07
Mark Salsbery20-May-11 8:07 
GeneralRe: visibility of form sections based on selected index of DataGrid [modified] Pin
Mark Salsbery20-May-11 8:12
Mark Salsbery20-May-11 8:12 
GeneralRe: visibility of form sections based on selected index of DataGrid Pin
Michael J. Eber20-May-11 8:19
Michael J. Eber20-May-11 8:19 
GeneralRe: visibility of form sections based on selected index of DataGrid Pin
Mark Salsbery20-May-11 8:26
Mark Salsbery20-May-11 8:26 
GeneralRe: visibility of form sections based on selected index of DataGrid Pin
Michael J. Eber20-May-11 8:42
Michael J. Eber20-May-11 8:42 
GeneralRe: visibility of form sections based on selected index of DataGrid Pin
Mark Salsbery20-May-11 8:49
Mark Salsbery20-May-11 8:49 
Question[WPF] How to Stop an Animation Pin
Richard Andrew x6418-May-11 11:54
professionalRichard Andrew x6418-May-11 11:54 
AnswerRe: [WPF] How to Stop an Animation Pin
Venkatesh Mookkan18-May-11 16:19
Venkatesh Mookkan18-May-11 16:19 
GeneralRe: [WPF] How to Stop an Animation Pin
Richard Andrew x6418-May-11 17:44
professionalRichard Andrew x6418-May-11 17:44 
AnswerRe: [WPF] How to Stop an Animation Pin
Abhinav S18-May-11 18:47
Abhinav S18-May-11 18:47 
AnswerRe: [WPF] How to Stop an Animation Pin
Mark Salsbery19-May-11 10:55
Mark Salsbery19-May-11 10:55 
AnswerRe: [WPF] How to Stop an Animation Pin
Minh Hai Phan20-May-11 17:19
Minh Hai Phan20-May-11 17:19 
QuestionNot able to see any 3D objects in Silverlight 5 3D Applications Pin
Joshi, Rushikesh17-May-11 4:53
professionalJoshi, Rushikesh17-May-11 4:53 
AnswerRe: Not able to see any 3D objects in Silverlight 5 3D Applications Pin
Abhinav S17-May-11 19:05
Abhinav S17-May-11 19:05 
QuestionBinding problem Pin
DevUK16-May-11 22:45
DevUK16-May-11 22:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.