123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- xmlns:vm="using:TestRepeat.ViewModels"
- x:DataType="vm:DateUserViewModel"
- x:Class="TestRepeat.Views.DateUser">
- <StackPanel>
- <TextBox
- Text="{Binding UserForPage.Name}"/>
- <TextBox
- Text="{Binding DateString}"/>
- <DatePicker
- SelectedDate="{Binding NewDate}"/>
- <StackPanel
- Orientation="Horizontal">
- <ComboBox
- ItemsSource="{Binding Genders}"
- SelectedItem="{Binding UserForPage.IdGenderNavigation}">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Gender1}"/>
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- <ComboBox
- ItemsSource="{Binding IdNotThreats}"
- SelectedItem="{Binding SelectedThreat}">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <TextBlock
- Text="{Binding Name}"/>
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- </StackPanel>
-
- <StackPanel
- Orientation="Horizontal">
- <Button
- Content="Добавить качество"
- Command="{Binding AddThreat}"
- />
- <Button
- Content="Удалить качество"
- Command="{Binding DeleteThreatUser}"
- />
- </StackPanel>
- <TextBlock
- Foreground="Red"
- IsVisible="{Binding IsCanDeleteThreat}"
- Text="Сначала выделите качество из списка, нажав на него"/>
- <ListBox ItemsSource="{Binding IdThreats}"
- SelectedItem="{Binding SelectedItem}">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Name}"/>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
-
- <Image
- Source="{Binding ImgUser}"
- Width="150"
- Height="150"/>
- <Button
- Content="Изменить аватар"
- Command="{Binding ChangeImg}"/>
- <Button
- Content="Сохранить данные"
- Command="{Binding SaveChange}"/>
- <Button
- Content="На начальный экран"
- Command="{Binding BackToAuth}"/>
- <Button
- IsVisible="{Binding IsAdmin}"
- Content="На список пользователей"
- Command="{Binding BackToListUser}"/>
- </StackPanel>
- </UserControl>
|