Click here to Skip to main content
15,891,607 members
Home / Discussions / WPF
   

WPF

 
QuestionRead XAML file Pin
Krishnraj18-Jul-08 21:56
Krishnraj18-Jul-08 21:56 
AnswerRe: Read XAML file Pin
yanairon19-Jul-08 21:18
yanairon19-Jul-08 21:18 
GeneralRe: Read XAML file Pin
Krishnraj20-Jul-08 19:06
Krishnraj20-Jul-08 19:06 
QuestionHow to set the startup object in WPF? Pin
Michael Sync17-Jul-08 0:46
Michael Sync17-Jul-08 0:46 
AnswerRe: How to set the startup object in WPF? Pin
Wes Aday17-Jul-08 9:15
professionalWes Aday17-Jul-08 9:15 
GeneralRe: How to set the startup object in WPF? Pin
Michael Sync17-Jul-08 16:32
Michael Sync17-Jul-08 16:32 
AnswerRe: How to set the startup object in WPF? Pin
John Ad18-Jul-08 4:02
John Ad18-Jul-08 4:02 
GeneralRe: How to set the startup object in WPF? Pin
Michael Sync18-Jul-08 4:16
Michael Sync18-Jul-08 4:16 
Vinay Srivastava wrote:
this.StartupUri = new System.Uri("Window1.xaml", System.UriKind.Relative);


Actually, we would like to use with Unity framework.. I have successfully ported Unity framework for Silverlight.. I want to use the code below at that startup..

this.Startup = container.Resolve<shell>(); 


How can I do that?

In Silverlight, we can do like that..

private void Application_Startup(object sender, StartupEventArgs e) {
            IUnityContainer container = new UnityContainer()
                .RegisterType<ILogger, TraceLogger>()
                .RegisterType<IStoplightTimer, RealTimeTimer>();

            //this.RootVisual = new StoplightView();
            this.RootVisual = (UIElement)container.Resolve<StoplightView>();
        }




Ref: http://michaelsync.net/2008/07/11/unity-application-block-unity-for-silverlight-and-stoplight-quickstart[^]



Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)


QuestionHow to find a particular entity in the listview and color it Pin
chandra vempati16-Jul-08 4:37
chandra vempati16-Jul-08 4:37 
AnswerRe: How to find a particular entity in the listview and color it Pin
MIHAI_MTZ16-Jul-08 21:38
MIHAI_MTZ16-Jul-08 21:38 
AnswerRe: How to find a particular entity in the listview and color it Pin
Yajnesh Narayan Behera20-Jul-08 23:27
Yajnesh Narayan Behera20-Jul-08 23:27 
QuestionWhen the control's content is displayed? :confused: Pin
Ryzhiy16-Jul-08 2:39
Ryzhiy16-Jul-08 2:39 
AnswerRe: When the control's content is displayed? :confused: Pin
Mark Salsbery16-Jul-08 7:27
Mark Salsbery16-Jul-08 7:27 
GeneralRe: When the control's content is displayed? :confused: Pin
Ryzhiy16-Jul-08 23:34
Ryzhiy16-Jul-08 23:34 
QuestionAdd Singleton UserControl in WPF Pin
ezazazel15-Jul-08 23:51
ezazazel15-Jul-08 23:51 
AnswerRe: Add Singleton UserControl in WPF Pin
MIHAI_MTZ16-Jul-08 21:05
MIHAI_MTZ16-Jul-08 21:05 
QuestionHow to bind Ilist to Listview of WPF Pin
Aslesh15-Jul-08 6:10
Aslesh15-Jul-08 6:10 
AnswerRe: How to bind Ilist to Listview of WPF Pin
Mark Salsbery15-Jul-08 6:31
Mark Salsbery15-Jul-08 6:31 
QuestionRouting ComboBox SelectionChanged Pin
Jammer14-Jul-08 11:46
Jammer14-Jul-08 11:46 
AnswerRe: Routing ComboBox SelectionChanged Pin
Jammer15-Jul-08 2:57
Jammer15-Jul-08 2:57 
GeneralRe: Routing ComboBox SelectionChanged Pin
Pete O'Hanlon15-Jul-08 9:23
mvePete O'Hanlon15-Jul-08 9:23 
GeneralRe: Routing ComboBox SelectionChanged Pin
Jammer15-Jul-08 9:31
Jammer15-Jul-08 9:31 
GeneralRe: Routing ComboBox SelectionChanged Pin
Pete O'Hanlon15-Jul-08 9:41
mvePete O'Hanlon15-Jul-08 9:41 
GeneralRe: Routing ComboBox SelectionChanged Pin
Jammer15-Jul-08 9:43
Jammer15-Jul-08 9:43 
GeneralRe: Routing ComboBox SelectionChanged Pin
Pete O'Hanlon15-Jul-08 9:49
mvePete O'Hanlon15-Jul-08 9:49 

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.