nice, i might actually start understanding all this text to art stuffags wrote:You can also try http://www.kaxaml.com/
if you have illustrator:
http://www.mikeswanson.com/xamlexport/default.htm
nice, i might actually start understanding all this text to art stuffags wrote:You can also try http://www.kaxaml.com/
Code: Select all
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="MachineView/MachineMenu.xaml"/>
</ResourceDictionary.MergedDictionaries>
Ahhhhh gotcha, no that makes perfect sense - Ok looks like I'm gonna have to reorganise my theme a bit then. Cheers manstrobotone wrote:since we use the resources in different places we kinda have to put them into the same namespace.
otherwise the styles will not get overwritten.
Code: Select all
<ControlTemplate x:Key="{x:Static MachineList}" TargetType="{x:Type MenuItem}">
<Border x:Name="Border" Background="Transparent"
BorderThickness="1" CornerRadius="2" Margin="2,0,6,0" >
</Border>
</ControlTemplate>
Code: Select all
<Style TargetType="{x:Type local:QuickNewMachineWindow}">
<Style.Resources>
<Style x:Key="ItemStyle" TargetType="{x:Type ListBoxItem}">
<Setter Property="bgc:CommandBehavior.Event" Value="MouseDoubleClick" />
<Setter Property="bgc:CommandBehavior.Command" Value="{Binding ElementName=PART_Window, Path=SelectCommand}" />
<Setter Property="bgc:CommandBehavior.CommandParameter" Value="{Binding}" />
</Style>
</Style.Resources>
<Setter Property="AllowsTransparency" Value="True"/>
<Setter Property="MinWidth" Value="200"/>
<Setter Property="MinHeight" Value="323"/>
<Setter Property="SizeToContent" Value="Width"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type local:QuickNewMachineWindow}">
<Border BorderBrush="#c0111111" BorderThickness="2" CornerRadius="3" >
<Border Background="#e0080808" BorderBrush="#cccccc" BorderThickness="2" CornerRadius="3" Padding="2" Opacity="0.95">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="24"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderBrush="#666" BorderThickness="1" CornerRadius="2" Margin="3">
<TextBox Name="PART_TextBox" BorderThickness="0" Background="#e3282828" Foreground="#eeeeee"/>
</Border>
<Border Grid.Row="1" BorderBrush="#666" BorderThickness="1" CornerRadius="2" Margin="3" Padding="2">
<ListBox Name="PART_ListBox" ItemsSource="{Binding Path=Items}" ItemContainerStyle="{StaticResource ItemStyle}" ItemTemplate="{StaticResource MachineListItemTemplate}"
VirtualizingStackPanel.IsVirtualizing="True" BorderThickness="0" Padding="0,0,8,0">
<ListBox.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Offset="0" Color="#e8080808"/>
<GradientStop Offset="1" Color="#e8161616"/>
</LinearGradientBrush>
</ListBox.Background>
</ListBox>
</Border>
</Grid>
</Border>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>