Dragablz icon indicating copy to clipboard operation
Dragablz copied to clipboard

A style intended for type 'DragablzItem' cannot be applied to type 'DragablzItem'.

Open dmathias1974 opened this issue 8 years ago • 1 comments

Would love to use the trapezoidal tab control, but when I add the following code to my user controls, I get the error for A style intended for type 'DragablzItem' cannot be applied to type 'DragablzItem'.

Is there any way you can help me fix this?

Here is the code I add to my user control: <UserControl.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/Dragablz;component/Themes/Generic.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </UserControl.Resources>

Here is the XAML code that I am using: Parent: <dragablz:TabablzControl Name="tcTripLegs" ShowDefaultCloseButton="False" ShowDefaultAddButton="False" ItemContainerStyle="{StaticResource TrapezoidDragableTabItemStyle}" Style="{DynamicResource MyFont}" AdjacentHeaderItemOffset="-10" Padding="5" Margin="0,25,0,0" > <TabItem Header=" Leg 1 " Name="tiTripLeg1" IsSelected="True"> <Grid> <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Grid.ColumnDefinitions> <ColumnDefinition Width="711*"/> <ColumnDefinition Width="128*"/> </Grid.ColumnDefinitions> <local:ucTripLeg x:Name="MyUcTripLeg1" Grid.ColumnSpan="2"/> </Grid> </Grid> </TabItem> <TabItem Header=" + "/> </dragablz:TabablzControl>

Child: <dragablz:TabablzControl ShowDefaultCloseButton="False" ShowDefaultAddButton="False" ItemContainerStyle="{StaticResource TrapezoidDragableTabItemStyle}" Style="{DynamicResource MyFont}" AdjacentHeaderItemOffset="-10" Padding="5" Margin="0,25,0,0" > <TabItem Header=" Details "> <Grid> <TextBox x:Name="tbDetails" Style="{DynamicResource MyFont}" BorderBrush="Transparent" Background="Transparent" Foreground="Black" Height="217" TextAlignment="Left" FontSize="12" AcceptsReturn="True" AcceptsTab="True" Padding="8" Text="The reason for this trip..."/> </Grid> </TabItem> </dragablz:TabablzControl>

dmathias1974 avatar Apr 07 '17 14:04 dmathias1974

Can you please post a full GitHub repo...but gonna be busy for a week...

ButchersBoy avatar Apr 07 '17 14:04 ButchersBoy