Questions tagged as 'xaml'

2
answers

What is the best way to validate a TextBox XAML

I have a UWP application that uses several TextBox to collect user information: <Grid> <TextBox Text="{Binding Codigo}"></TextBox> <TextBox Text="{Binding Producto}"></TextBox> <TextBox Text=...
asked by 16.01.2016 / 01:07
1
answer

Binding the Value of a ComboBox

My problem is that I am trying to bind between a ComboBox and a property type string in viewModel, but I can not do it <ComboBox HorizontalAlignment="Stretch" SelectedItem="{Binding Path=OResultado, Mode=TwoWay}">...
asked by 14.01.2016 / 01:39
1
answer

Binding for a RadioButton group in XAML MVVM

If I add a RadioButton control and specify a property in the ViemModel , I can do the Binding normally, but if I have a list of objects and create a RadioButton for each object in the list, does it? how is it done so t...
asked by 06.01.2016 / 18:47
1
answer

Access controls within a Xaml HUB and c #

I have a problem trying to create a form within a Hub in a UWP application. <Hub> <HubSection> <Datatemplate> <Grid> <TextBox x:Name="txtSerial"/> </Grid> </Datatemplat...
asked by 07.01.2016 / 01:51
1
answer

Change text ComboBox Xaml?

I'm using this code to generate a ComboBox but on the screen I get " choose an item " I want to change it. <ComboBox x:Name="Tempso" HorizontalAlignment="Left" Height="55" Margin="70,243,0,0"...
asked by 12.05.2016 / 07:18
3
answers

identify items in combobox in c # and xaml?

I have this combobox in XAML: <ComboBox x:Name="Tempos" HorizontalAlignment="Left" Height="55" Margin="90,216,0,0" VerticalAlignment="Top" Width="205" SelectionChang...
asked by 15.05.2016 / 02:30
2
answers

C # convert Control to UIElement

How can I convert a Control to UIElement in Windows forms with c # ? I'm extracting Controls from FlowLayoutPanel with Controls but I want to convert them to UIElement     
asked by 24.12.2015 / 01:24
0
answers

How to change a cell background of a DataGrid in a style based on the current element of a collection

I have a collection of objects that have a collection of other objects in the following way: public class Elemento { public string Nombre {get; set;} public ObservableCollection<OtroObjeto> Lista {get; set;} } In WPF, I link...
asked by 30.12.2017 / 23:13
2
answers

What is the correct way to initialize a property in MVVM

I have a question, is it correct to initialize a property full in ViewModel as follows? public class MainViewModel : ViewModelBase { private ObservableCollection<Driver> _drivers = new ObservableCollection<Driver>...
asked by 03.02.2016 / 21:06
1
answer

How to fix the movement of the positioning of buttons or other elements when starting the application?

I have made the following part of the interface But when you start the application, you change your position and the following is left the magnifying glass is an icon in Button that is placed over a TextBox the code of the th...
asked by 11.04.2018 / 02:08