Browse Source
- Reference ICSharpCode.SharpDevelop.Widgets in WpfDesign.Tests to remove Loader exceptions in Assembly.GetTypes(). git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/wpfdesigner@6116 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61pull/1/head
3 changed files with 49 additions and 13 deletions
@ -1,29 +1,60 @@ |
|||||||
<UserControl x:Class="ICSharpCode.WpfDesign.Designer.Controls.GridUnitSelector" |
<?xml version="1.0" encoding="utf-8"?> |
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
<UserControl |
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
x:Class="ICSharpCode.WpfDesign.Designer.Controls.GridUnitSelector" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
x:Name="control" HorizontalContentAlignment="Left" VerticalContentAlignment="Top"> |
x:Name="control" |
||||||
|
HorizontalContentAlignment="Left" |
||||||
|
VerticalContentAlignment="Top"> |
||||||
<UserControl.Resources> |
<UserControl.Resources> |
||||||
<Style TargetType="RadioButton"> |
<Style |
||||||
<Setter Property="Template"> |
TargetType="RadioButton"> |
||||||
|
<Setter |
||||||
|
Property="Template"> |
||||||
<Setter.Value> |
<Setter.Value> |
||||||
<ControlTemplate> |
<ControlTemplate> |
||||||
<ToggleButton |
<ToggleButton |
||||||
IsChecked="{Binding Path=IsChecked, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" |
IsChecked="{Binding Path=IsChecked, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" |
||||||
Content="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" |
Content="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" |
||||||
Padding="{Binding Path=Padding, RelativeSource={RelativeSource TemplatedParent}}" |
Padding="{Binding Path=Padding, RelativeSource={RelativeSource TemplatedParent}}" |
||||||
Name="toggleButton"/> |
Name="toggleButton" /> |
||||||
</ControlTemplate> |
</ControlTemplate> |
||||||
</Setter.Value> |
</Setter.Value> |
||||||
</Setter> |
</Setter> |
||||||
</Style> |
</Style> |
||||||
</UserControl.Resources> |
</UserControl.Resources> |
||||||
<Border CornerRadius="3" BorderBrush="CornflowerBlue" Background="LightBlue" BorderThickness="1"> |
<Border |
||||||
<StackPanel Orientation="{Binding Orientation, ElementName=control}"> |
CornerRadius="3" |
||||||
<RadioButton x:Name="fixed" Content="Fixed" Margin="1" FontSize="8" GroupName="group" Checked="FixedChecked" /> |
BorderBrush="CornflowerBlue" |
||||||
<RadioButton x:Name="star" Margin="1" FontSize="16" GroupName="group" Checked="StarChecked"> |
Background="LightBlue" |
||||||
<TextBlock Text="*" Margin="3,-4,3,-8"/> |
BorderThickness="1"> |
||||||
|
<StackPanel |
||||||
|
Orientation="{Binding Orientation, ElementName=control}"> |
||||||
|
<RadioButton |
||||||
|
x:Name="fixed" |
||||||
|
Content="Fixed" |
||||||
|
Margin="1" |
||||||
|
FontSize="8" |
||||||
|
ToolTip="Fixed - Column size is fixed width" |
||||||
|
GroupName="group" |
||||||
|
Checked="FixedChecked" /> |
||||||
|
<RadioButton |
||||||
|
x:Name="star" |
||||||
|
Margin="1" |
||||||
|
FontSize="16" |
||||||
|
ToolTip="Star - Column size is weighted proportion" |
||||||
|
GroupName="group" |
||||||
|
Checked="StarChecked"> |
||||||
|
<TextBlock |
||||||
|
Text="*" |
||||||
|
Margin="3,-4,3,-8" /> |
||||||
</RadioButton> |
</RadioButton> |
||||||
<RadioButton x:Name="auto" Content="Auto" Margin="1" FontSize="8" GroupName="group" Checked="AutoChecked" /> |
<RadioButton |
||||||
|
x:Name="auto" |
||||||
|
Content="Auto" |
||||||
|
Margin="1" |
||||||
|
FontSize="8" |
||||||
|
ToolTip="Auto - Column size is determined by the Content(s)" |
||||||
|
GroupName="group" |
||||||
|
Checked="AutoChecked" /> |
||||||
</StackPanel> |
</StackPanel> |
||||||
</Border> |
</Border> |
||||||
</UserControl> |
</UserControl> |
||||||
Loading…
Reference in new issue