Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum

CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • BXF Trigger Action for Silverlight

    rated by 0 users
    Not Answered This post has 0 verified answers | 2 Replies | 2 Followers

    Not Ranked
    3 Posts
    Rahul.Kadam posted on Wed, Jul 17 2013 9:27 AM


    I'm using CSLA 4.5.30 with my silverlight MVVM application. I have a viewModel class deriving from ViewModelBase, which does not have any BeginRefersh() call in my constructor. Calls to BeginRefresh() are event driven.

    I am putting BXF Trigger Action for Loaded event of textbox. Method adds RX observer to this textbox but method is never called.

    If  use same functionality in some other viewmodel class which has BeginRefresh() call in constructor, then it works.

    <bxf:TriggerAction TriggerEvent="Loaded" MethodName="AttachRXObserver" TargetControl="{Binding ElementName=txtBox}"></bxf:TriggerAction>

    Please help.

    All Replies

    Top 500 Contributor
    41 Posts

    Hii... Can you just send the code of your xaml & viewmodel?

    Not Ranked
    3 Posts

    In Xaml ----

    <TextBox Width="280" Name="TextBox1"></TextBox>


    bxf:TriggerAction TriggerEvent="Loaded" MethodName="AttachRXObserver" TargetControl="{Binding ElementName=TextBox1}"></bxf:TriggerAction>

    In ViewModel -----

    public void AttachRXObserver(object sender, Bxf.Xaml.ExecuteEventArgs e)
                if (e.TriggerSource is TextBox)
                    //RX Observer for KeyUp Event of Serach TextBox
                    var subscription1 = Observable.FromEventPattern<KeyEventArgs>((TextBox)e.TriggerSource, "KeyUp")
                    subscription1.Subscribe(pattern => Deployment.Current.Dispatcher.BeginInvoke(
                                           () =>
                                               // Do some Task

    Page 1 of 1 (3 items) | RSS

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems