I've created a Xamarin.Forms project and then I've added a "Forms Xaml Page" called Main.xaml. After that I've tried to choose a Title to the ContentPage. But I cannot find the Title property in ContentPage. Visual Studio 2015 doesn't show this option to me (see picture bellow):
Where's the Title property in ContentPage?
Also, I've put a StackLayout inside the ContentPage, but I cannot put a Button inside this StackLayout. I can put the Button inside the ContentPage, but not inside the StackLayout. Why that happens (see picture bellow)?
Why is not possible to find a Button inside the StackLayout?
I think I can access Title from codebehind, but not from XAML.
This worked for me (answer from jonalza):
"Right click on XAML file -> click on "Open with..." option -> Select "XAML Desinger" in the list -> click on "Set as Default" button"
enter link description here
EDIT: As in your picture your line: <?xml version="1.0" encoding="utf-8" ?> appears in red and blue, and not only in blue, as usual, also check the answer from Brendan Zagaeski...
Related
I am wanting to add an image to the top or background of a listbox. I would like it to be visible on the screen, but more importantly is that it prints. Can someone help me with the code for this. I tried to see if you could add it through properties and don't see that option. I need the listbox not listview. Also I was wondering if it could be added as a string and the file referenced at the top of the listbox (when you right click the little arrow and click edit options? Can someone please help. I am working on a project and still very new at this.
You need to create a custom ListBox class and add the ability to draw a custom background by overriding the OnPaint event, like on:
Source: http://www.vbforums.com/showthread.php?416784-2005-ListBox-Background-Image
So I right clicked the name of a DataTemplate in my XAML and selected "Go To Definition". This changed the content of the designer from showing the page I was working on to showing the DataTemplate defined in the page resources.
How do I switch the designer back to showing the page?
It turns out that you can click the icon in the top left of the Document Outline window.
Note: this is based on someone else's answer which was deleted before I could check it.
I'm trying to add a button in the message reader toolbar :
I successfully added a button in the mail toolbar, using the chrome.manifest and XUL files. I just don't know how to access this particular toolbar. I have tried finiding it using the DOM Inspector, to no avail.
My button doesn't appear in the "Customize" box either.
My question is therefore: how can I add a button to this particular toolbar?
After looking some more with the DOM Inspector I finally got it.
The toolbar and toolbox ids are header-view-toolbar and header-view toolbox and the classes are inline-toolbar and inline-toolbox. The CSS class for buttons is msgHeaderView-button. The XUL for adding a button there should look like this:
<toolbarpalette id="header-view-toolbar">
<toolbarbutton id="my-button"/>
</toolbarpalette>
<toolbarbutton id="my-button"
label="This is my button!"
tooltiptext="Click on it!"
oncommand="MyButton[1]()"
class="toolbarbutton-1 msgHeaderView-button my-button"
/>
Following these steps:
Open the Weather app.
Right click
Click on places
See that little item with the + symbol? I want to do something exactly like that, the looks and behaviour.
Assuming you are just trying to get some basic ideas about metro-ui controls and you are on Release Preview.
When you do right click, the control that's being triggered is called App Bar. The "place" button is a App Bar Command. Clicking on the button will take you to another page (HTML or XAML). This page contains a ListView control with GridLayout. You can dynamically change the ListView Template and assign different actions to the itemInvoke event.
Here is a quick tutorial for App Bar and commands:
http://msdn.microsoft.com/en-us/library/windows/apps/hh465309.aspx
Here is a quick tutorial for List View control:
http://msdn.microsoft.com/en-us/library/windows/apps/hh465496.aspx
I simply want when someone hovers his mouse over a checkbox a "tip balloon" to appear describing what the control does?
How can this be done?
Using VB.NET with Visual Studio 2010.
Drag a ToolTip control from the toolbox on the left onto your form (the designer will then put it below your form, since it's not meant to be visible normally). By default it will be named "tooltip1".
Then select your checkbox and go over to its properties window. You should see a property labeled "Tooltip on tooltip1" - set this to whatever you want. When you run the app and hold the mouse over your checkbox, you should see the tooltip text.
For WinForms, see Display a tooltip over a button using Windows Forms, or briefly stated...
Drag in a ToolTip.
this.toolTip1.SetToolTip(this.targetControl, "My Tool Tip")
For WPF:
<Button>Click Me
<Button.ToolTip>
<ToolTip>Blob of text.
</ToolTip>
</Button.ToolTip>
</Button>
tooltip1.show("Your text", then your control)