silverlight - What does Caliburn command not work when button content is changed? -


Using Calbern and Silverlight I've found that if I do:

  Lt; Button Presentation Framework: Message.Attach = "Container Command Directive Profile Commands ()" Height = "60" Content = "Instructor" />  

Then it works and the director profile is called the command.exececut () method. However, if I do:

  & lt; Button height = "60" & gt; & Lt; Grid Presentation Framework: Messages. Attacks = "Container Commodity Director Proform Commands ()" & gt; & Lt; Grid.ColumnDefinitions & gt; & Lt; Columns Definition / & gt; & Lt; Columns Definition / & gt; & Lt; /Grid.ColumnDefinitions> & Lt; Image Source = "/ App.Module; Component / Icon / navigate.jpg" Height = "50" width = "50" /> & Lt; TextBlock Text = "Trainer Profile" Grid. Column = "1" horizontal align = "center" vertical element = "center" margin = "10,0,0,0" /> & Lt; / Grid & gt; & Lt; / Button & gt;  

Execute () command is not run. Is the property attached to the right place to work?

JD

My guess is, in the second case, you use syntax Should:

  Presentation Framework: Message. Attach = "Event click = Container Commander Trainer Profile Commands"  

Because if the trigger (event click) is not explicitly specified, the framework tries to guess based on that element Is connected to the message.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -