Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF namespace limitation?

$
0
0

Hi all of of you,

Is there any limitation using namespaces with WPF 4.5?

I always get GITColapsat doesn't exist in the namespac clr:namespace:GITColapsat.

NOTE: My WPF app has a different name of GITColapsat.

My Styles.xaml:

<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
  xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit"
  xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"
       xmlns:local="clr-namespace:GITColapsat"
 
    xmlns:system="clr-namespace:System;assembly=mscorlib">



<local:GITColapsat x:Key="multiplyConverter" />   

My class, under GITColapsat namespace:

Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports System.Windows.Data
Imports System.Globalization
Namespace GITColapsat


    Public Class MultiplyConverter
        Implements IMultiValueConverter

        Public Function Convert(values As Object(), targetType As Type, parameter As Object, culture As CultureInfo) As Object Implements IMultiValueConverter.Convert

            Dim result As Double = 1.0
            For i As Integer = 0 To values.Length - 1
                If TypeOf values(i) Is Double Then
                    result *= CDbl(values(i))
                End If
            Next
            Return result
        End Function

        Public Function ConvertBack(value As Object, targetTypes() As Type, parameter As Object, culture As CultureInfo) As Object() Implements IMultiValueConverter.ConvertBack

            Throw New Exception("No implementado")
        End Function

        Private Sub InitialiseComponent()
            Throw New NotImplementedException
        End Sub

    End Class


End Namespace


Primary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF and SilverLight stuff


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>