Caliburn-Micro / Caliburn.Micro

A small, yet powerful framework, designed for building applications across all XAML platforms. Its strong support for MV* patterns will enable you to build your solution quickly, without the need to sacrifice code quality or testability.
http://caliburnmicro.com/
MIT License
2.8k stars 780 forks source link

Button click is not working in non debug mode #312

Closed ynrajasekhar closed 8 years ago

ynrajasekhar commented 8 years ago

Hi All,

When i run program in debug mode the button clicks are working, but when i run using Start without Debugging then button clicks are not working in the log i can see 2016-04-06 11:54:43,256 [1] Caliburn.Micro.ViewModelBinder Action Convention Applied: Action NewQuery on element NewQuery. xaml

<Button x:Name="NewQuery">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/xxx;component/Images/document_add_16.png" Width="16" Height="16" Margin="0,0,3,0"></Image>
                    <TextBlock Text="New Query"></TextBlock>
                </StackPanel>
            </Button>

AppViewModel

public void NewQuery()
        {
            New(null);
        }

in my boostraper onstartup i am doing this DisplayRootViewFor<AppViewModel>(); Thanks & Regards Rajasekhar

nigel-sampson commented 8 years ago

I don't see anything immediately wrong with what you're doing and obviously similar code works for me.

Can you provide a project that recreates the problem?

nigel-sampson commented 8 years ago

Closing as no new information provided.