CSLA .NET

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
  • Browse Site by Tags

    Showing related tags and posts across the entire site.
    • BXF Trigger Action for Silverlight

      Hello, 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...
      Posted to CSLA .NET discussion by Rahul.Kadam on Wed, Jul 17 2013
    • TriggerAction customization

      Two questions relating to the TriggerAction control and the XAML around it. First, I've read Rocky's blog post here about the control. My questions are: 1. Does the TriggerEvent attribute absolutely have to be in the format public void MyAction(object sender, ExecuteEventArgs e) or can it be...
      Posted to CSLA .NET discussion by TygreWolf on Thu, Jun 27 2013
    • Re: MissingMethodException from TriggerAction

      Thank you. That was helpful to get a little further. What I found is the following, which isn't what I expected. It looks like it is trying to find the method by looking in the underlying model (my business object) rather than in my VM: Csla.Xaml.TriggerAction Error: CallMethod path error: 'AddGadget'...
      Posted to CSLA .NET discussion by Tim on Fri, Jan 13 2012
    • Re: Csla.Xaml.InvokeMethod exception handling

      InvokeMethod is deprecated and will be removed in a future version. You should consider using TriggerAction instead. It is more flexible, more powerful, and provides better debugging overall.
      Posted to CSLA .NET discussion by RockfordLhotka on Wed, Oct 5 2011
    • TriggerAction on databound menus

      I have a readonly list of TaskGroups that contains a description and a readonly list of Tasks that also contain a description. I've bound a MenuItem to the list of Task and I'm using HierarchicalDataTemplates to display the TaskGroup Description and Task Description in the menu. So the TaskGroups...
      Posted to CSLA .NET discussion by Daniel Morey on Thu, Aug 18 2011
    • TriggerAction failed to access method exception (in Silverlight client)

      CSLA 4.1 / Silverlight exception: "Attempt by method 'Csla.Xaml.TriggerAction.CallMethod(System.Object, System.EventArgs)' to access method 'MyNamespace.SL.CustomerCallPlanVM.SetDay(System.Object, Csla.Xaml.ExecuteEventArgs)' failed." This same exact xaml works fine in my WPF...
      Posted to CSLA .NET discussion by Tim on Mon, Aug 1 2011
    • Re: TriggerAction for multiple TargetControl

      Yes, one TriggerAction listens to one event, from one UI control. So you need a different TriggerAction to listen to each UI event of each different UI control. This isn't the only option out there, and if this approach disturbs you, one option is to evaluate some of the other options: Commanding...
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Mar 1 2011
    • TriggerAction for multiple TargetControl

      I am taking my first steps here with TriggerAction and ViewModel in CSLA. After creation of a TriggerAction and binding it to a button the following question pops up: How do you organize your TriggerActions in the XAML? It seems like there will be a whole bunch of TriggerAction for things like Save,...
      Posted to CSLA .NET discussion by Imker on Mon, Feb 28 2011
    • TriggerAction and Custom Controls

      Hello Does the TriggerAction require the custom controls to be derived from FrameworkElement? I'm using a custom control that derives from FrameworkContentElement and I can't get the Trigger to work on the element's click Event. If that's the case, what work around can anyone recommend...
      Posted to CSLA .NET discussion by Andres Bastidas on Wed, Feb 2 2011
    • Re: TriggerAction MethodParameter?

      The way you are supposed to do this is to bind the UI control's SelectedItem property to a property of the viewmodel. Which is fine for a lot of controls, but some controls don't have a SelectedItem property you can bind to the viewmodel... That is exactly why MethodParameter exists - as a workaround...
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Oct 26 2010
    • Re: Is Csla.InvokeMethod out, On the Way out, or still In

      InvokeMethod is there for backward compatibility. I wouldn't remove something like that in a bug fix release like 4.0.x. But the only really supported component is TriggerAction. You may consider the XAML awkward, but it works with the VS10 designer (the toolbox), and it is far more powerful and...
      Posted to CSLA .NET discussion by RockfordLhotka on Wed, Sep 1 2010
    • Re: TriggerAction on Page events?

      I've never tried attaching a TriggerAction to the actual form/window/page. Maybe it just doesn't work to do that. You might try stepping through the code in TriggerAction that sets and finds the source to see if it is able to find the source and set up the event handler - it is quite possible...
      Posted to CSLA .NET discussion by RockfordLhotka on Sat, Aug 21 2010
    • TriggerAction on Page events?

      Hi - I am trying to get an event to fire via ViewModel when navigating away from a page and I did the following... <navigation : Page xmlns = http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns : this ="clr-namespace:DataOnline.RAM.DOLWebApp" xmlns : csla ="clr-namespace...
      Posted to CSLA .NET discussion by Ranjini on Tue, Aug 17 2010
    • MVVM Video Series - TriggerAction DataContext CurrentItem

      Going through the MVVM Video series, I see Rocky use the "CurrentItem" property of the CollectionViewSource when binding the DataContext for the trigger action. I've generally used the implicit binding expression below when referencing the current bound to item: <my1:TriggerAction ....
      Posted to CSLA .NET discussion by Jaans on Tue, Aug 10 2010
    • Re: When good TriggerActions go bad...

      That's a good idea, I'll add that to the wish list.
      Posted to CSLA .NET discussion by RockfordLhotka on Mon, Jul 26 2010
    • ItemsControl and TriggerAction or Command in Silverlight

      I am trying to bind an ItemsControl to a view-model. My view-model exposes a collection of objects which have a Name property. That Name property is used as the content of a HyperlinkButton. This part works fine. Now I am trying to use SL4 Command or CSLA TriggerAction to call a handler in the view-model...
      Posted to CSLA .NET discussion by Arthur Dumas on Wed, Jul 21 2010
    • Re: ListBox ContextMenu Error

      Try with beta 3, there was a bug in TriggerAction that caused trouble in a DataTemplate, and I wonder if you are hitting the same issue.
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, Jun 25 2010
    • Re: (CLSA 4 / Silverlight 4) SelectedItems

      You need to set the RebindParameterDynamically property of TriggerAction to true so it rebinds the MethodParameter binding immediately before invoking your viewmodel method.
      Posted to CSLA .NET discussion by RockfordLhotka on Wed, Jun 2 2010
    • Re: TriggerAction : How to bind event of DataTemplate with MVVM ?

      There's a term for the issue you are seeing... Hmm, if only I could think of it... Oh yeah - BUG Yes, this is most certainly a bug, and I am glad you helped identify it - thank you! I've put the fix into svn for CSLA 4. The bug is in 3.8 too, so I'll need to fix it there as well.
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Jun 1 2010
    • Re: Why cant I fire more than 1 event?

      You can't do that. That's why TriggerAction was created. You might need to upgrade your CSLA version (3.8.3 and 4) but it is the recommended way forward.
      Posted to CSLA .NET discussion by triplea on Tue, May 25 2010
    Page 1 of 1 (20 items)

    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