This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ItemsControl ItemsSource="{Binding Parameters}"> | |
<ItemsControl.ItemsPanel> | |
<ItemsPanelTemplate> | |
<StackPanel IsItemsHost="True" /> | |
</ItemsPanelTemplate> | |
</ItemsControl.ItemsPanel> | |
</ItemsControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FormElement | |
{ | |
public string Name { get; set; } | |
public object Value { get; set; } | |
} | |
public class FormElement<T> : FormElement | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<DataTemplate DataType="{x:Type Elements:DateElement}"> | |
<DockPanel> | |
<TextBlock Text="{Binding Name}" DockPanel.Dock="Left" Width="80"/> | |
<DatePicker SelectedDate="{Binding Value}" /> | |
</DockPanel> | |
</DataTemplate> | |
<DataTemplate DataType="{x:Type Elements:StringElement}"> | |
<DockPanel> | |
<TextBlock Text="{Binding Name}" DockPanel.Dock="Left" Width="80" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ ServiceHost | |
Language="C#" | |
Service="WcfService.GenericService`1[[WcfInterfaces.SpecificEntity, WcfInterfaces]]" | |
CodeBehind="GenericService.cs" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GenericService<T> : IGenericService<T> where T : EntityBase, new() | |
{ | |
public T GetEntity(string text) | |
{ | |
var t = new T() { Text = text }; | |
t.Initialize(); | |
return t; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Page | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<StackPanel> | |
<StackPanel.Resources> | |
<Style TargetType="TextBlock" x:Key="DefaultTextBlock"> | |
<Setter Property="Background" Value="Red" /> | |
</Style> | |
<Style TargetType="TextBlock" | |
BasedOn="{StaticResource DefaultTextBlock}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Page | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<StackPanel> | |
<StackPanel.Resources> | |
<Style TargetType="TextBlock"> | |
<Setter Property="Background" Value="Red" /> | |
</Style> | |
<Style TargetType="TextBlock" x:Key="Custom1"> | |
<Setter Property="Foreground" Value="Blue" /> |