31 lines
1.4 KiB
XML
31 lines
1.4 KiB
XML
<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"
|
|
xmlns:u="https://irihi.tech/ursa"
|
|
xmlns:vm="using:Flawless.Client.ViewModels.ModalBox"
|
|
x:DataType="vm:EditRepositoryMemberDialogViewModel"
|
|
d:DesignHeight="450" d:DesignWidth="800" mc:Ignorable="d"
|
|
MinWidth="400"
|
|
x:Class="Flawless.Client.Views.ModalBox.EditRepositoryMemberDialogueView">
|
|
|
|
<u:Form HorizontalAlignment="Stretch" LabelPosition="Top">
|
|
<u:Form.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<Grid ColumnDefinitions="*, 10, 160"/>
|
|
</ItemsPanelTemplate>
|
|
</u:Form.ItemsPanel>
|
|
<u:FormItem Grid.Column="0" Label="Username">
|
|
<TextBox Text="{Binding Username}"
|
|
IsEnabled="{Binding !LockUsername, Mode=TwoWay}"/>
|
|
</u:FormItem>
|
|
<u:FormItem Grid.Column="2" Label="Role">
|
|
<ComboBox HorizontalAlignment="Stretch" SelectedIndex="{Binding Role, Mode=TwoWay}">
|
|
<ComboBoxItem>Guest</ComboBoxItem>
|
|
<ComboBoxItem>Reporter</ComboBoxItem>
|
|
<ComboBoxItem>Developer</ComboBoxItem>
|
|
</ComboBox>
|
|
</u:FormItem>
|
|
</u:Form>
|
|
</UserControl>
|