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
private bool IsDesignMode { | |
get { | |
DependencyProperty isDesignModeProperty = (DependencyProperty)AppDomain.CurrentDomain.GetData(“IsDesignModeProperty”); | |
return isDesignModeProperty == null ? false : true.Equals(isDesignModeProperty.GetValue(this)); | |
} | |
} |
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 Grid.IsSharedSizeScope="True"> | |
<ItemsControl.ItemTemplate> | |
<DataTemplate DataType="HeaderedContentControl"> | |
<Grid> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition SharedSizeGroup="Labels" /> | |
<ColumnDefinition SharedSizeGroup="Inputs" /> | |
</Grid.ColumnDefinitions> | |
<TextBlock Grid.Column="0" Text="{Binding Header}" /> | |
<ContentControl Grid.Column="1" Content="{Binding Content}" /> |
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 StuffThatIsCool}"> | |
<ItemsControl.ItemTemplate> | |
<DataTemplate> | |
<TextBlock Text="{Binding WhyCool}" /> | |
</DataTemplate> | |
</ItemsControl.ItemTemplate> | |
</ItemsControl> |
NewerOlder