Hi all,
I am using theme manager on my user controls as follow:
<UserControl x:Class="BackupCustomizing.Views.NavigationView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:ig="http://schemas.infragistics.com/xaml" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> <UserControl.Resources> <Style x:Key="_btn" TargetType="{x:Type Button}"> <Setter Property="Margin" Value="10 10 0 0" /> </Style> </UserControl.Resources> <Grid x:Name="_navi"> <ig:ThemeManager.Theme> <ig:Office2013Theme StyleMicrosoftControls="True" /> </ig:ThemeManager.Theme> <Grid.RowDefinitions> <RowDefinition Height="50" /> <RowDefinition Height="50" /> <RowDefinition Height="50" /> <RowDefinition Height="50" /> <RowDefinition Height="50" /> </Grid.RowDefinitions> <Button Grid.Row="0" Content="Server" Margin="10 10 0 0"/> <Button Grid.Row="1" Content="Organisation Unit" Margin="10 10 0 0"/> <Button Grid.Row="2" Content="Folders" Margin="10 10 0 0"/> <Button Grid.Row="3" Content="Users" Margin="10 10 0 0"/> </Grid></UserControl>
How can I inherent it for changing for margin:
<Style x:Key="_btn" TargetType="{x:Type Button}" BasedOn="???????"> <Setter Property="Margin" Value="10 10 0 0" /></Style>
Which class I have to basedOn?
Thanks
Hello,
I am just checking if you require any further assistance on the matter.
I will try it soon and let you know, thanks very much.
Hi,
Thank you for your reply. I am glad that you have managed to resolve your issue.
Hi all
thanks so much for help. It works like charm.
Regards
Thank you for the feedback. We are looking forward to hearing from you.