/Syncfusion.Themes.FluentLight.WPF;component/ Common / Brushes.xaml.
|
<Border Height="200" Width="300" BorderThickness="2" BorderBrush="{StaticResource BorderAlt }"> |
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Syncfusion.Themes.FluentLight.WPF;component/Common/Brushes.xaml"/>
<ResourceDictionary Source="/Syncfusion.Themes.FluentLight.WPF;component/MSControl/TextBox.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Grid>
<Grid.Resources>
<Style x:Key="CustomTextBoxStyle" TargetType="TextBox" BasedOn="{StaticResource WPFTextBoxStyle}" >
<Setter Property="BorderBrush" Value="Red"/>
</Style>
</Grid.Resources>
<Border Height="200" Width="300" BorderThickness="2" BorderBrush="{StaticResource BorderAlt }">
<TextBox Height="50" Width="150" Text="TextBox" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{DynamicResource CustomTextBoxStyle}">
</TextBox>
</Border>
</Grid> |
<TextBox Height="50" Width="150" Text="TextBox" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{DynamicResource CustomTextBoxStyle}">
<TextBox.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="3"/>
</Style>
</TextBox.Resources> |
S.NO |
Query |
Response |
1 |
Is there a shorter way to do that?
when setting up syncfusion: SfSkinManager.VisualStyle = "FluentLight"
Everything seemed to show up as I wanted, but when I ran the code everything didn't go.
Do I need to do this with all other controls? I want to use the your skin default setting as graphically since I don't need any specific setting such as radius = 3.
|
We regret that we are unable to get your actual requirement is. So could you please brief about your requirement clearly . If the watermark need to set for sftextbox , that is the only way. However please brief about your query related to theme , it would be helpful for us to check and provide you the exact solution. |
2 |
Please check my sample file.
I'm exhausted.
Thanks you!
I want to give some more info: I'm loading this program into Inventor. and call this dll from there. Is it a problem?
Mainwindow cls = New Mainwindow;
cls.ShowDialog();
My code works fine without the skin. But there is an error since:
syncfusion:SfSkinManager.VisualStyle="FluentLight"
or
SfSkinManager.SetTheme(Me, New Theme("FluentLight"))
|
We have checked the reported crash using your sample, but we are unable to deploy your application, as it throws the following warning
On further checking your sample, you have been attached the following location in Start external program option
C:\Program Files\Autodesk\AutoCAD 2022\acad.exe
So could you please let us know what might be need to deploy your application. It would be helpful for us to investigate on your case better at our end |