Friday 15 March 2013

xaml - hit is not Visible on a button in windows phone 8 -


I am creating a button with an item template, but when I click on the button it does not appear that Whether it's a hit or not.

I want this to be clicked like a normal button.

I tried to set the unstable property of the button, but it is not working.

Can anyone help ??

  & lt; Button name = "BtnSignUp" grid. Line = "3" vertical alignment = "top" = "BtnSignUp_Click" & gt; & Lt; Button.Template & gt; & Lt; ControlTemplate & gt; & Lt; Border margin = "5,15,0,0" borderTechnachines = "2" borderbrush = "# 866DA 9" & gt; & Lt; StackPanel Orientation = "horizontal" background = "# 491776" ischatastisil = "true" & gt; & Lt; Text block text = "sign up now -" margin = "355,0,0" font size = "23" fontwid = "medium" /> & Lt; TextBlock Text = "It's Free" margin = "0,5,35,10" fontisystem = "23" fontTitle = "Italic" fontweit = "normal" /> & Lt; / StackPanel & gt; & Lt; / Border & gt; & Lt; / ControlTemplate & gt; & Lt; /Button.Template> & Lt; / Button & gt; As you said, you are not using item templates.    

You override the control template. You can not get the default pressed effect of the button But even then you can add that view through the state manager or trigger.

I have posted an example of how the ambiguity on the mouse is adjusted and pressed.

  & lt; Button name = "BtnSignUp" grid. Line = "3" vertical alignment = "top" click = "BtnSignUp_Click" & gt; & Lt; Button.Template & gt; & Lt; ControlTemplate & gt; & Lt; Border margin = "5,15,0,0" borderTechnachines = "2" borderbrush = "# 866DA 9" & gt; & Lt; StackPanel x: name = "bore" orientation = "horizontal" background = "# 491776" ishtestavisil = "true" & gt; & Lt; Textbox text = "sign up now -" margin = "355,0,0" font size = "23" fontwid = "medium" /> & Lt; TextBlock Text = "It's Free" margin = "0,5,35,10" fontisystem = "23" fontTitle = "Italic" fontweit = "normal" /> & Lt; / StackPanel & gt; & Lt; / Border & gt; & Lt; ControlTemplate.Triggers & gt; & Lt; Trigger Property = "Ismouth Over" Value = "True" & gt; & Lt; Setter TargetName = "Bore" Property = "Opacity" Value = "0.7" /> & Lt; / Catalyst & gt; & Lt; Trigger Property = "Button Impressions" Value = "True" & gt; & Lt; Setter property = "opacity" targetName = "bor" value = "0.6" /> & Lt; / Catalyst & gt; & Lt; /ControlTemplate.Triggers> & Lt; / ControlTemplate & gt; & Lt; /Button.Template> & Lt; / Button & gt;    

No comments:

Post a Comment