Most voted "xaml" questions
Extensible Application Markup Language (XAML) is a declarative language in the XML standard used to define user interfaces in WPF, Silverlight, Windows Phone, and Windows Store. This tag can be used with any technology that uses XAML, but should not be used when XAML is not part of the problem.
Learn more…137 questions
Sort by count of
-
13
votes2
answers505
viewsIs it possible to program using the Winrt API without resorting to XAML?
Some time ago declarative languages took over the development of software for creating graphical user interfaces. The most obvious examples are the framework WPF that uses XAML (Extensible…
-
9
votes1
answer585
viewsWhat are namespaces in XML?
Well, I understand the concept of namespaces in C#, C++, etc. But I don’t understand the concept of namespaces in WPF (XAML). I’ve been trying to understand the parameters xmlns in a XAML code. I…
-
8
votes1
answer790
viewsXAML without previewer or designer - Visual Studio
I’m using Visual Studio 2015 Community with Xamarin, and I realized that when editing XAML in designer mode (Shift + F7) I can’t see the preview of it, because another window opens with the same…
-
5
votes1
answer1818
viewsHow to make a placeholder in a Textbox?
How can I simulate a placeholder using WPF? Something like the input HTML where you click in the field it adds the text and when you change it returns the text? Remembering that it is in WPF,…
-
5
votes2
answers203
viewsDocumentation on WPF with pure C# code
WPF is what’s "new" for development, not only desktop but also mobile. However, almost all material that is available on WPF is fully tied to the use of IDE and XAML. But XAML is an intermediate…
-
5
votes1
answer280
viewsHow to make the properties of a User Control accessible in XAML?
A User Control can be used for various purposes, but I would specifically like to know a simple example of how to create a User Control any that returns any value. For example a Numericupdown:…
-
4
votes1
answer551
viewsHow to smooth the transition between pages on windows phone?
How I improve the transition page from page on Windows Phone? Because every time I change pages, it changes like "out of nowhere", it doesn’t appear smooth, like a normal transition. Has effects…
-
4
votes1
answer185
viewsWhy doesn’t the "Landscape" position resize the Longlistselector?
Why when I put the phone in the Landscape position, the LongListSelectordoes not resize? Follow the image: Follows my XAML <Grid x:Name="ContentPanel" Grid.Row="1" HorizontalAlignment="Center"…
-
4
votes2
answers376
viewsHow do I handle the event generated by the Windows Phone 8.1 back button?
In previous versions it was possible to make such manipulation over writing Onbackkeypress. protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { . . . } However, two…
-
4
votes1
answer101
viewsIsmouseover does not work
I have a boot in WPF and changed the style when passing the mouse on top (Ismouseover), but the problem is that not every time I move the mouse on top it changes style. When step the mouse very fast…
-
4
votes0
answers139
viewsHow to get the highlight color of Windows?
How I access the user-defined Windows 10 highlight color.…
-
4
votes1
answer51
viewsPath points in xaml
I am creating an application that will make an agent walk through an area with various obstacles as shown in the figure. The agent will walk from point S to point G, passing only through the…
-
4
votes1
answer170
viewsHow do I send variables to another page on Windows Phone 8?
I tried to follow that method, but there is an error in Mainpage, saying that the NavigationService does not exist in the current context. In Blankpage, the same error occurs in NavigationContext.…
-
4
votes1
answer277
viewsFormatting chart values using Syncfusion for Xamarin Forms
I’m using the Syncfusion to create graphics in Xamarin Forms. Studying the documentation, I could not find a way to format the values of my chart, example: I want these values formatted for…
-
3
votes1
answer107
viewsAlign Popup to Center
Why can’t I line up at the center, that my popup? Look how he looks in XAML Design Follows my XAML: <Popup x:Name="popup" HorizontalAlignment="Center" VerticalAlignment="Center">…
-
3
votes1
answer56
viewsGuidance control
I set the orientation of a page of my app as landscape, but it was static. If the user turns the screen 180º continues as a landscape but stays upside-down. How do I so that when the device is…
-
3
votes1
answer401
viewsWindowsphone - How does one event "inside" another?
I defined the visibility of my combobox as Collapsed, for visual reasons and since Appbarbutton is more presentable. I want to know if it is possible to call the combobox event by firing an…
-
3
votes2
answers206
viewsMessagebox error
I tried to implement the code below in a Windows Phone 8.1 project, the same had already been implemented in Windows Forms successfully. What should I change to be valid for Windowsphone 8.1?…
-
3
votes1
answer78
viewsHow It Fires Vibration in My Device
How Vibrator fires in my Windows Phone 8.1 app ? For example : if(==0) { VIBRAR APARELHO; }
-
3
votes1
answer1363
viewsHow to load Datatable on a Datagrid?
I have a DataTable loaded with information in a WPF application. I’d like to take that DataTable and carry it on a DataGrid. How can I do this the easy way ? DataGrid in the XAML: <Grid>…
-
3
votes1
answer52
viewsXAML with parameter - Backgroundworker
I’m doing a small XAML application that asks for 2 dates. Dates are passed as a parameter to some methods invoked by the Event click button. The problem is that during the execution of the methods…
-
3
votes1
answer335
viewsWPF Xaml Stringformat
Good afternoon guys, I’m having a problem kind of ridiculous, but I can’t find the solution. I’m trying some stringFormat as StringFormat={}{0:#,#.00}} and StringFormat=N2}, besides…
-
3
votes1
answer615
viewsError creating Xamarin cross Plataform project in Visual Studio. "The project requires a Platform SDK (UAP, version=10.0.10.586.0)"
When trying to create a project Cross Platform App with the template Master Detail I get this mistake: The SDK he claims to be absent is installed. I’ve reinstalled it several times. When I try to…
-
3
votes3
answers96
viewsLink selection between two Listviews
It would be possible to link the single selection between two objects ListView via Xaml? For example, I have two ListView, the TopListView and the BottomListView, both configured for simple…
-
3
votes0
answers119
viewsBinding between components with XAML and C#
I need that when selecting an item in a combobox, the textbox is released for editing and its completion is required, as image below: This Binding is being active by clicking on the new button,…
-
3
votes1
answer33
viewsProblems with wpf Data Grid
Good night. I am developing a project but I am having problems, I use a list that is being generated with the data of my database (Entity for connection), I want to populate a data grid but I do not…
-
3
votes1
answer61
viewsHow to fill empty space on the Grid with Textblock?
I have the following XAML <Window x:Class="ambiente_teste.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"…
-
2
votes1
answer66
viewsHow to leave my Button disabled but appearing the image?
Does anyone know if there is any option for me to leave my Button disabled but showing the Button image? What happens if I disable Button. Button XAML code. <Button x:Name="BtnCalc" Content=""…
-
2
votes1
answer295
viewsError while reading XML
When I try to read the xml, return it to me: {System.Linq.Enumerable.WhereSelectEnumerableIterator<System.Xml.Linq.XElement,SSP.Class.ListaConsulado>} XML: <?xml version="1.0"…
-
2
votes1
answer48
viewsProblem in Visual Studio 2013 XAML
Objects do not appear in XAML Visual. They only appear if it is a project using Silverlight. But in Emulator when Compile display normal, it is bad only to edit Application Visual.…
-
2
votes1
answer56
viewsAuto adjustable list in shampoo
I have a list of BitmapImage and wanted it to appear as follows, 3 images per line, if you do not fill a line, stay a blank at the end. For example, I have my list with 10 small images and I want it…
-
2
votes1
answer83
viewsHow to use an enumerator like Itemsource from a Combobox?
Assuming I have the following: enum Dias {Segunda, Terça, Quarta, Quinta, Sexta, Sábado, Domingo}; How can I use the enumerator Dias as ItemSource of a ComboBox in a WPF application? For example:…
-
2
votes1
answer54
viewsWhat are Staticresources and Dynamicresources in WPF?
When I use Resources in WPF, I can specify them as much as StaticResource, as DyanamicResource. However, most of the time only one works, and the other would initiate an exception. Starting from…
-
2
votes1
answer84
viewsAlphabetical ordering in Listview equal to the People App
I’ve been searching how to make a list like the App People (People) contact list of Windows 10 and found a good one example. But the example does not implement the alphabetical ordering that exists…
-
2
votes1
answer59
viewsHow to block an Pivot?
On Windows Phone, we have the Pivot structure, which has the Pivotitens, which are tabs (screens) on which the user just navigates by sliding his finger left or right. I’m making an app and…
-
2
votes1
answer201
viewsHow do I instate a class within a wpf?
The thing goes beyond that, the problem is that it always returns this error by instantiating this class: namespace AlmoxarifadoUpas { class ConsultaMaterialEntradaSaida { private…
-
2
votes1
answer30
viewsAdaptive Storyboard (WPF)
I have an animation in my WPF project and I wanted to know if there’s any way Storyboard can be responsive. As in the settings of Margin and Height/Width are responsive marking the auto option…
-
2
votes1
answer1291
viewsInitializecomponent does not exist in the current context
I have this code, where I have the error [XamlCompilation(XamlCompilationOptions.Compile)] public partial class AprovarPopup : PopupPage { public AprovarPopup() { InitializeComponent(); } protected…
-
2
votes2
answers130
viewsThe Binding inside a Compositecollection does not work
I am using a Combobox in a WPF application and when a function is activated, it loads a List<string> coming from a webservice to a property on the screen. My problem is that I can’t get…
-
2
votes1
answer25
viewsHow to change the view of toggle buttons based on a Binding in WPF Datagrid
Hello, I am new with XAML/WPF and I have the following problem. I have a DataGrid which receives as Itemssource a ObservableCollection<DataEstoque>() thus public class DataEstoque { public…
-
1
votes1
answer750
viewsHow to create a Splash Screen on Windows Phone
How do I create a Splash Screen in my app? I would like examples!
-
1
votes1
answer33
viewsError:Build Solution - Visual Studion
When trying to build the solution VS2013 presents the following error: Error 1; Could not copy the file "obj/Debug/Win8appbox.exe" because it was not found. I noticed that the file . exe is deleted…
-
1
votes1
answer474
viewsHow to present app in full screen / fullscreen on Windows Phone 8.1?
I want my application to run in full screen mode. I have tried using the codes below, however, are giving some errors. The code is not recognized by the emulator: <phone:PhoneApplicationPage ...…
-
1
votes1
answer622
viewsHow to do random image uploading?
How do I randomly upload images to the background of a app, so that each time the user enters a given page the background changes between the images ? How should I proceed to do this?…
-
1
votes1
answer206
viewsModify default source
It is possible to modify the default font of my Windowsphone 8.1 application? Because I do the font change, inside Visual Studio is the font I chose, but when I run on the device the font this is…
-
1
votes1
answer2006
viewsHow do I change the border color of a Textbox in a Windows Phone 8.1 app?
In a certain function of the .cs in C# need to change the color of the edge of a TextBox. In my xaml have the TextBox <TextBox Name="txtResult" Text="resultado"/> And in the cs have the…
-
1
votes1
answer84
viewsPass variable through Converterparameter
I have the following code snippet: Visibility = "{Binding TipoDestinatario, Converter={StaticResource conversorTipoDestinatario}, ConverterParameter=}. You would need to pass a boolean variable…
-
1
votes1
answer1271
viewsClose only one Window
I created a window JanelaUm, every time I click on button this window is displayed. in the code-behind of JanelaUm have the event window_KeyDown with the following code: if (e.Key == Key.Escape)…
-
1
votes2
answers125
viewsLonglistselector on Windows Phone 8
I would like to make a screen with a LongListSelector this way, taking results of a webservice of mine and riding in this style. How could I develop this? I am layman in this part of XAML, it is…
-
1
votes1
answer213
viewsSelect City and Status [Filter]
I would like to create two ListPicker or even a LongListSelector, so that when the user selects an "x" state, cities in another ListPicker or enter another window with another LongListSelector, the…