Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Phone 7 buttons

Is it just me or the property Visibility.Hidden on buttons are not included in Windows Phone 7?

Because as far as I know there are three types of Visibility properties for a control, either Visible, Collapsed or Hidden.

I need the hidden value, why it only shows Visible or Collapsed?

like image 312
123 456 789 0 Avatar asked Nov 24 '10 12:11

123 456 789 0


People also ask

How can I turn on my Windows Phone without power button?

Go to Settings ---> Touch and then change the on or off setting for "Navigation Bar" (if currently on, change to off; if currently off, change to on). Then the phone will tell you a restart is needed and you can tap 'now'.

What are the features of Windows Phone?

Windows Phone features include: Cortana, a virtual assistant that originated in the Halo video game, Microsoft's counterpart to Apple's Siri. Integration with Microsoft Exchange, SharePoint, Skype for Business and Office 365 for enterprise environments. Threaded messaging.


1 Answers

Like you said, Visible and Collapsed are the only options you have for the Visibility of the control.

The hidden functionality you want can be achieved by setting the visibilty to Visible and the Opacity to 0. Take care, your button will be hidden, but still clickable, and the layout of the UI will not be affected.

If you want to hide the button and adjust the UI accordingly, set the visibility to Collapsed. This will re-order the UI.

like image 102
Amr H. Abd Elmajeed Avatar answered Sep 18 '22 14:09

Amr H. Abd Elmajeed