User Profile & Activity

Sebastien Member
Posted: March 15, 2011 9:56 AM

Thanks for your answer.


I don't really understand why the ListPresenter doesn't support the CollectionViewSource as the View property implement the IEnumerable interface. I though that was the only need of the ItemsSource ... Am I wrong ?


Is there a workwaround to be able to sort or filter the elements in a ListPresenter without using a CollectionViewSource ? 


Should we avoid to use the List/GridPresenter components to avoid futur problems ?

 

Regards,

Posted: February 11, 2011 8:53 AM

Hi,


We found a way to resolve our issue.

We changed the "public static IModalWindow GetInstance(string viewType)" method like this :


Original :

        public static IModalWindow GetInstance(string viewType)

        {

            return UXShell.Current.RootApplication.CreateInstance(viewType) as IModalWindow;

        }


Modified :

        public static IModalWindow GetInstance(string viewType)

        {

            Assembly assembly = Assembly.GetCallingAssembly();

            return assembly.CreateInstance(viewType) as IModalWindow;

        }


Any idea if we could have any side effect ?


regards,

Posted: February 10, 2011 6:31 AM

Hi,


Our DLL were created as "Silverlight Class Library". They are part of the Silverlight project (the silverlight application has a dependency on them).


Our concern is about the naming convention on this call :

UXShell.Current.RootApplication.CreateInstance(viewType)


What should be the value of viewType in our case ? « Assembly.View » ?  « Assembly/View » ? Something else ?

All times are GMT -5. The time now is 4:46 PM.
Previous Next