Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Resources.xaml « Xamarin.PropertyEditing.Windows - github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d79ee64222680f7cf3247b217a40a076a96db20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:local="clr-namespace:Xamarin.PropertyEditing.Windows">

	<Style TargetType="local:StringEditorControl">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:StringEditorControl">
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition SharedSizeGroup="Label" />
							<ColumnDefinition />
						</Grid.ColumnDefinitions>

						<Label Target="{Binding ElementName=TextBox,Mode=OneTime}" Content="{TemplateBinding Label}" />
						<TextBox Name="TextBox" Grid.Column="1" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="local:PropertyEditorPanel">
		<Setter Property="Grid.IsSharedSizeScope" Value="True" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate>
					<ItemsControl Name="propertyItems">
						<ItemsControl.ItemTemplateSelector>
							<local:EditorPropertySelector />
						</ItemsControl.ItemTemplateSelector>
					</ItemsControl>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>