I have a Windows Phone 8.1 Application which is being developed from past one year.
Here's how ToggleSwitch is used in the code
<ToggleSwitch IsOn="{Binding IsSplit, Mode=TwoWay}"
IsEnabled="True"
Foreground="{StaticResource PrimaryColor3Brush}"
OffContent="Off"
OnContent="On"/>
ToggleSwitch is used in a few pages. The behavior of the ToggleSwitch is buggy. The ToggleSwitch does not detect either the "drag" event or "click" event when it is done on the vertical slider of the Switch. The following image shows the arrow pointed to the part of the switch where click or drag doesn't get defected.
This is a problem on every ToggleSwitch in this application.
However when I create a fresh Windows Phone 8.1 project and add a ToggleSwitch, it works smooth as expected. So this way I was able to isolate that the problem is happening only on our current project.
So to debug this, I tried the following
I saw if we had any default styles being applied to ToggleSwitches in our app in general that modified the original behavior - No There was None
I created a fresh new page in my current app where I created only a ToggleSwitch within a Grid - No luck, the ToggleSwitch was still buggy.
I used Blend to edit a copy of the default template of the ToggleSwitch, pasted the same onto the ToggleSwitch on my page - Still, the behavior didn't get fixed.
I tried to see if any of the ancestor classes of ToggleSwitch had been applied a default different Style - No, there was none.
I've spent hours on this but I'm not sure what could be causing the ToggleSwitch to act buggy. I would highly appreciate if anyone has any idea of what could be happening or if they could share a few other things that I could try so that it might fix.
Thanks in Advance.
Related
I am using OpenRefine to clean text from a CSV file. I've been working on the same project for several weeks, and it was working fine until this week.
I am trying to use the 'Cluster and Edit' function from the 'Edit cells' menu. When I use the 'fingerprint' and 'ngram fingerprint' keying function, the frame that opens up inside the browser window is sized appropriately, and I have access to all the buttons and selection menus. However, when I try to use the 'metaphone3' keying function, the frame that opens up is way wider than the browser window, the sliding selection boxes that usually appear in the right side of the frame are not visible, and the buttons across the bottom of the frame ('Select All', 'Unselect All', etc.) are not available. I'd really like to be able to use this keying function option again. Does anyone know what's going on, or how I might be able to fix it.
I am using the OpenRefine 3.3 beta, although a similar issue was happening earlier this week with all keying function options in 3.2 (all were working fine in 3.2 as recently as Friday, 10/25/2019). I am using Firefox, although the same issue happens in Internet Explorer. The system OS is Windows 10 Enterprise.
Thanks in advance!
I am building a Universal App using Prism framework. In my Windows Phone app, I have a scenario that I navigate from Page 1 to Page 2, and from Page 2 to Page 3. On click of the Back button on Page 3, I want to go back to Page 1.
I figured that only way I can do is by removing the previous entry from the back stack. But, unfortunately, the NavigationService provided by Prism doesn't have such a method. There is ClearHistroy, but that is not what I want.
Is there a way?
Appreciate your help.
Naweed
For the moment the current implementation of PRISM has stopped ( there is a team working on a newer version - so let's hope they extend this for Win10 ).
So you need to do this the 'old' way, get hold of the Frame in the app and remove an entry from the BackStack. You could use a PRISM event to notify the page and in the code behind of that page run
if(this.Frame.CanGoBack)
{
this.Frame.BackStack.RemoveAt(0);
}
In iOS, one doesn't need to add a close icon for an app. In the rare event that one wants to kill an app they can do it via the OS.
When looking at the cocos2d-x project that is created by default when using the console (v3.1.1), the sample HelloWorld scene places a button on screen to "close" the app.
Is this actually required in ANY platform ? Does it make sense to add this button at all ?
Apple usually rejects on this and Google and Microsoft don't like it.
You can, however, have close buttons on menus or popovers (say, like a pause screen).
I'm developing an app that needs to generate mouse events on a window Win32/WPF which may be minimized or hidden from view on the desktop.
I have tried the user32.dll APIs SendInput, SendMessage, PostMessage etc. These work only if the window is visible on the desktop. Would you know about any methods that work for hidden/inactive windows?
I've also tried .NET's UI Automation library. In this case, a window is brought to the front or I'm not able to get a clickable point for the control.
Any ideas how I can proceed? If I can proceed?
I don't know if you're still interested in an answer (I just stumbled upon this question out of sheer dumb luck), but have you tried making a global windows hook?
I have no honest idea on how to properly go about implementing one; but I know you should be able to add a global windows hook to, well, Windows, to listen for whatever events you want (should include mouse and keyboard events!)
Good luck...
I am trying to use monodevelop. Just at the beginning I came across an issue:
I was following a tutorial on building a Gtk application (http://monodevelop.com/Stetic_GUI_Designer). I was trying to drag a button from the Widgets Palette. Nothing happened. I'd been trying quite a few times without any luck.
After a break I launched monodevelop again and I simply placed a button on the window of the application. After that I removed it, dragged VBox container, and placed menu bar on the window, according to the tutorial instructions. I was pleasantly surprised.
By the second try the same problem occurred - I was not able to drag any widgets. Dragging was beginning, there was a “+” sign at the cursor and then - nothing was happening. I cannot figure out what happened by the first time, what the difference was. Have anyone had a similar problem? Monodevelop looks promising, but I can't go on with it. (I tried placing 'Fixed' container on the window, with no result - I could not drag it.)
(monodevelop v. 2.4, ubuntu 11.04, Polish language.
I did look for an answer to my problem, without much luck, that is why I post this question. The problem is described quite precisely. There is a probability that others encountered the same issue.)
You need to drag a container on the form first before you can add widgets to it. The VBox container is an example of a place where you can put your widgets.
If you want to place widgets where ever you want you can use the Fixed container. If you want things to align you can use the VBox, HBox or Table containers. Placing in a widget in one of the fields will automatically adjust the size of this field to fit the widget you have dragged into it.
So basically,
Create a form
Drag a container on the form
Drag a widget inside the container.
These widgets are not to be confused with the custom made widgets (in your Solution browser, right click the folder User Interfaces and click Add Widget...). These are like forms. I use these to create GUI's in advance so I can call these while the program is running.
FYI: if you want to create code for a widget (like a button) you can't just double click it like in Visual Studio. You need to select it, the go to the properties pane, and change the tab from Properties to Signals. You can then double click the "signal" to create the event for which you want to create code. For a button this is usually the Clicked event (somewhere at the bottom of the list, you'll need to open the Button Signals)
You can always visit the IRC channel of Monodevelop on irc://irc.gimp.org/monodevelop (IRC.Gimp.org #monodevelop)
I also sit in this channel and can help with smaller problems and I also still use Monodevelop 2.4.