MAUI change Control.Parent - controls

iam going to swap my Gameboard game into MAUI and
stuck by change the parent of a control in .Net MAUI (Programmatically).
Following code doesnt give me any response and do nothing:
playerOne.Parent = FOne;
player1 is part of a Frame with the x:name=FZero and i want to display it into "FOne" (another Frame).
There a picture from current blank UI.
Player 1 should move to Field 1.
How to solve this.?
In Windows.Forms it is easy like that: Control.Parent = X; - done

Related

How do I remove the "UNKNOWN"/"MAVIC PRO CAMERA" text that appears above my first person view in UXSDKDemo?

I am using the DJI Mobile SDK with a Mavic Pro to add extra functionality to the app, but the text "UNKNOWN" or "MAVIC PRO CAMERA" appears over the first person view. I think this must come from one of the widgets, but I can't track it down. It is not in my layout xml, nor are those strings in strings.xml. I would like to remove this text, as it is annoying on the FPV. I am using the UXSDKDemo tutorial as a base.
What you're looking for is under the purview of FPVWidget. You either want to
1) Call the method mFPVWidget.setSourceCameraNameVisibility(false)
or
2) set sourceCameraNameVisibility = "false" within dji.ux.widget.FPVWidget in your layout.xml
Source: http://developer.dji.com/api-reference/android-uilib-api/Widgets/DULFPVWidget.html#dulfpvwidget_setsourcecameranamevisibility_inline

How is this popup message created / programmed?

I recently noticed the following popup message ("6 occurrences replaced") in Qt Creator (3.4.2).
I like its style and want to use it in my own application. But how is it done? Is this a particular widget or what else? Can someone point me in the right direction.
You could create your own window with round corners like that with text in the middle paid show it when you want too make the window so it takes a parameter text and you can add different text each time and show

How do I perform math using TinyDB? (App Inventor 2)

I am trying to use TinyDB in order to store a value on one screen and display it on another. On the second screen, I want to add 1 to the number stored with TinyDB on the first screen. However, when I try to do this, nothing happens. What am I doing wrong?
Here's my code for the two screens.
Screen1
Screen2
You already loaded the available computers in Screen2.Initialize into label computersAvail.Text. Therefore in the Button1.Click event first add 1 like this
set computersAvail.Text to get computersAvail.Text + 1
and to store the updated available computers in TinyDB then use the following block
TinyDB.StoreValue "Computers"
get computersAvail.Text
btw. it helps to first do the tutorials to learn the basics of App Inventor...
also see this link for "the lost souls"...

Change the colour of WinJS.UI.BackButton (Win 8.1 back button)

I'm getting started with Windows 8 App development using WinJS. I'm using the Light UI theme but I have set up a darker area on the left of the page (where the black back button is) and the issue is: you can't see the button.
I've trawled through the MSDN pages and the most I could find is how to style a button which doesn't actually explain how to change the colour of an actual asset.
http://msdn.microsoft.com/en-us/library/windows/apps/jj835822.aspx
I've also tried adding: win-ui-light and win-ui-dark classes to the button with no success.
I wondered if someone could point me in the right direction?
Many thanks for your time
Chris
First of all you have to delete the link tag that contain UI css by default and add it to document head , Dynamically.see below code :
var uistyle;
// call when your app load or resume.
function onappopen(){
uistyle = document.createElement('link');
uistyle.href = "//Microsoft.WinJS.2.0/css/ui-dark.css";
uistyle.rel = "stylesheet";
uistyle.id = "UIstyle";
document.head.appendChild(uistyle);}
// call when you want to change UI Style.
function UIstyle(UIbool){
if(UIbool=='light'){ uistyle.href = "//Microsoft.WinJS.2.0/css/ui-light.css";}
else {uistyle.href = "//Microsoft.WinJS.2.0/css/ui-dark.css";}}
Like: UIstyle('light'); for light UI in Windows 8 or "UIstyle()" for dark;
I used the DOM Explorer to find the buttons default values and overwrite them. It was the child element that needed to be overwritten: .win-back

Edit onClipEvent Actionscript

I am a beginner so please take it easy. First some history, I am trying to modify a flash movie (not created by me) that has 4 images in it.
I have to now add 2 more images (pic5.png and pic6.jpg) to the "slideshow" as shown in the attachment, I have added the 2 images to the library. The problem I am having (as I understand, I may be incorrect) is that _root.count = 4 causes the movie to jump back to the first image after it displays the 4th one which does not display the 5th & 6th image.
My question, how do I edit the value of _root.count to 6, so that it will show all the 6 images. Additionally how do I create a hyperlink on each image.
Please can someone guide me.
Many thanks.
Looking at your screen shot, Layer 2 (which contains the slideshow movieclip) is locked. If you unlock the layer by clicking on the padlock icon you should then be able to edit the script.
To edit the script double-click on the script in the Movie Explorer panel and the Actions panel should open. You can edit the script here.
The second part of your question - how to create a hyperlink - is very broad and there are many different ways to approach it. The most elegant approach would depend on how your project was structured.
The simplest way might be to define a variable to hold the path to the current image and add another onClipEvent handler.
So in the existing onLoad you would add…
this.path_to_image = http://your-domain.com/images/your-first-big-image.jpg;
Then add the new event handler
onClipEvent(mouseUp){
getURL (this.path_to_image);
}
You would then have to update the path_to_image variable whenever the image changed.
slideshow.path_to_image = http://your-domain.com/images/your-next-big-image.jpg;

Resources