Questions tagged as 'xaml'

1
answer

Justify Text in Windows Phone

I have an application that the text is displayed in a textBlock and I want to make this text justified, already tried to put the alignment of the text as justified, but it was not, it says that the method is not supported. I've been answered b...
asked by 15.05.2015 / 04:51
2
answers

Windows Phone 8.1 Saving ToggleSwitch Status

I have a code where I need to save the state of ToggleSwitch. In order to start the page, the Ison property is active or inactive, depending on the user's selection. To save the state of the element I have used '' Windows.Storage.App...
asked by 25.11.2014 / 01:39
1
answer

How to limit characters in a textbox

How to limit the amount of characters in a Textbox in xaml and via code behind ?     
asked by 24.12.2014 / 13:39
1
answer

WPF application. How to reference the image in XAML code, so that another user can view them while executing the .exe file of the project?

I'm having a problem with my WPF application. I have two images in the XAML code, and when I run the application on my computer, they appear normal, but when I ask someone to run the .exe file, it runs normally, but the images do not appear. How...
asked by 18.12.2014 / 18:46
1
answer

SelectionBrush property only the border and no fill

You can make the property SelectionBrush equal to the image below: Becausesheisnowlikethis: Followthecodebelow:<TextBoxSelectionBrush="Red" FontSize="12pt"/> I just want the border and no matching fill in the first image, can...
asked by 05.08.2018 / 17:00
4
answers

C # WPF How to separate a long string in multiple positions from an Array?

I need to create a getter and a setter for 14 Model properties that will be used to make Binding on xaml. Properties come from here: I have a field from a database table where it loads a very long string that contains information for 14 textboxe...
asked by 17.07.2017 / 18:17
1
answer

Filter LonglistSelector [CATEGORIES]

Hello, I have a webservice that returns me a list of "categories" with their sub-categories. I need help to "filter" this, for example: Category 1 has subcategories 1 and 2; Category 2 has subcategory 3; Category 3 has subcategories...
asked by 25.02.2015 / 20:51
1
answer

Load image dynamically on a grid?

I have this xaml: <StackLayout Spacing="10" Padding="10" VerticalOptions="Center" Grid.Row="3" Grid.Column="1" > <Image x:Name="MyImage" Source="{local:ImageResource Operacional.Images.images1.png}" > <Image.GestureRe...
asked by 31.01.2018 / 13:45
1
answer

How to format a Label using StringFormat in Xamarin Forms

I'm creating a solution where I should display an integer in a <Label /> . To do this I'm using the code below: public partial class Home : ContentPage { public Home() { InitializeComponent(); BindingContext =...
asked by 09.10.2018 / 16:42