How to use visibility "Gone" in windows phone? - windows-phone-8

In my windows phone app, I have a textbox which has to be displayed when certain conditions are met. If not, it should behave like Visibility.Gone in Android.
How should I do that in a windows phone app?

The corresponding visibility on the WinPhone platform is Visiblity.Collapsed

Visiblity.Collapsed in Windows is same as Visibility.Gone in Android. In windows Elements that have a Visibility value of Collapsed do not occupy any layout space and there is nothing which is equivalent to Visibility.InVisible of Android

Related

How can I test my webpage using phone gestures on desktop?

I'm having a problem with my webpage where it doesn't scroll on phones.
This is not my problem though. My problem is that it only happens on phones, and I need to debug is, but have no desire to debug from a cell phone (whether or not that's an option).
In firefox, I've tried using "Simulate touch events," but apparently (and I think this is a design flaw) that does not mean that clicking and dragging equates to the swipe gesture.
So how do I test my webpage with phone gestures on desktop?
Try these:
1.You could use a simulator specific to your phone's os.. for example Bluestacks for android.
2.Go to firefox and press Shift+F8
3.Press Ctrl+Shift+M on Chrome

Changing Supported Page Orientation programmatically for Windows 8.1 Phone

My application supports both Portrait and Landscape orientations and automatically adapts UI to screen size. However I want to provide an option to lock the screen at current orientation.
If I just stop processing SizeChanged event, it doesn't help, since system still rotates the UI page, so it appears squeezed and truncated.
According to MSDN there is a way to set up supported orientations programmatically in Xna and Silverlight or Windows API (which is disallowed to use by Windows Store App). Is there a way to do that for an Universal app (Windows 8.1 or Windows 10)?
You can control this by setting the DisplayInformation.AutoRotationPreferences.
e.g.
DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape;
set it to .None if you want to support both.

Chrome kiosk or fullscreen in extended mode screen (two monitors)

Is it possible to make a Chrome window display in kiosk mode on two monitors in Windows 7?
I know this thread is 3 years old but since this is still one of the first results in google search for this topic, I thought it wouldn't hurt to point out that you can accomplish this if you have a normal nVidia gtx card (no need for a Quadro/mosaic), by going to the nVidia control panel, on the left click on Configure surround, physx and then configure in the Configure surround section.
From there you can enable the nVidia surround feature which will make windows believe it has one monitor with a custom resolution (which will be the sum of your multiple monitors res). If you have 3 1920x1080 monitors it will show a single monitor with a resolution of 5760x1080. Once you've done that you just have to enable kiosk mode like always and chrome will open up as expected, with a single ultrawide full-screen window across all the three displays.
Like #Alir user said in that post (How to extend chrome browser to dual display on fullscreen) it could be done with nVidia desktop mosaic feature on Windows.
AMD graphic card users have option to create one monitor too in AMD catalyst center under Multiple monitor option.
Then all you need to do is press F11 in Chrome and display page across all monitors.

Windows Phone 8.1 app text scale

I have a problem with text scale in my Windows Phone 8.1 app. When I run app on device my labels is bigger than should be and not fits to screen (cutting ends). I had no such problems in the past with Windows Phone 8.0 apps. Anyone can help me?
Although late reply, you can use IsTextScaleFactorEnabled="False" property to override effect of ease of access setting.

How can we remove a page from Navigation Stack in windows phone 8.1

Is there a way to remove a page from Navigation stack in windows phone 8.1 universal app?
There is Frame.BackStack Property. You can use RemoveAt() Method to remove.