Telerik Forums
UI for WPF Forum
0 answers
2 views

Hi 

I'm using the Fluent Theme and it causes a bit of problems with our Colorblind personel. 

Having the Red color together with the selected line gray color makes the text invisible for them. 

I therefore want to do a couple of things :

- Change the highlight color from Red to something else (Green maybe)

- Bold the Match highlight

I've managed to change the selectedline background but fail to figure out how i change the Match highlight. 

Can i get some help in that regards ?

I really suck at styling XAML and dont know how to do it other than i know i need to insert it into the APP.XAML file

Martin
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 26 Sep 2021
0 answers
3 views

When using Telerik with .net 5 the output includes all the Telerik .dlls even the ones that are not used.  The output from a project containing an empty window is over 100mb. 

With .net framework there was a way to configure the project and only include the referenced assemblies.  Is there a way to do the same for a .net 5 project?

Chris
Top achievements
Rank 1
 updated question on 26 Sep 2021
0 answers
2 views

Hi,

Is there a way to stop the automatic collapse of the sub item menu when a sub item is selected.  I would like to the have the sub menu still expanded after an item is selected.

Thanks

Tony

Tony
Top achievements
Rank 1
 asked on 24 Sep 2021
1 answer
3 views

Hi,

We have inserted multiple signed photos into the cell.However, when we exported the image as excel, the shape and position of the image changed, which was inconsistent with that in the RadSpreadSheet.

I've already uploaded an app.

In RadSpreadSheet:

In Excel:

Nikolay Demirev
Telerik team
 answered on 24 Sep 2021
0 answers
4 views

I edited the template of RadDatePicker, when i click the left and right button to change the month, the month component of date number is totally still, won't change by different month.

I found if DayButtonStyle part is deleted, then nothing wrong. But I need to change DayButtonStyle, is there any solution?

                    <telerik:RadDatePicker Style="{DynamicResource RadDatePickerStyle1}" IsEnabled="True" IsReadOnly="False" Margin="2 0"/>
<Setter Property="DayButtonStyle">
                            <Setter.Value>
                                <Style TargetType="{x:Type Calendar:CalendarButton}">
                                    <Setter Property="FontFamily" Value="Microsoft YaHei UI"/>
                                    <Setter Property="FontSize" Value="12"/>
                                    <Setter Property="Foreground" Value="{DynamicResource BasicFont}"/>
                                    <Setter Property="BorderThickness" Value="1"/>
                                    <Setter Property="HorizontalContentAlignment" Value="Center"/>
                                    <Setter Property="VerticalContentAlignment" Value="Center"/>
                                    <Setter Property="MinWidth" Value="24"/>
                                    <Setter Property="MinHeight" Value="24"/>
                                    <Setter Property="FontWeight" Value="Normal"/>
                                    <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
                                    <Setter Property="Template">
                                        <Setter.Value>
                                            <ControlTemplate TargetType="{x:Type Calendar:CalendarButton}">
                                                <Grid x:Name="LayoutRoot" Background="Transparent">
                                                    <Border x:Name="BorderVisual" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="10" Margin="1"/>
                                                    <ContentControl x:Name="Content" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" Foreground="{TemplateBinding Foreground}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsTabStop="False" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                                                </Grid>
                                                <ControlTemplate.Triggers>
                                                    <Trigger Property="IsFromCurrentView" Value="False">
                                                        <Setter Property="Opacity" TargetName="Content" Value="0.6"/>
                                                    </Trigger>
                                                    <Trigger Property="IsKeyboardFocusWithin" Value="True">
                                                        <Setter Property="BorderBrush" TargetName="BorderVisual" Value="{DynamicResource BrightColor}"/>
                                                        <Setter Property="BorderThickness" TargetName="BorderVisual" Value="1"/>
                                                    </Trigger>
                                                    <Trigger Property="IsMouseOver" Value="True">
                                                        <Setter Property="Background" TargetName="BorderVisual" Value="{DynamicResource BrightColor}"/>
                                                        <Setter Property="BorderBrush" TargetName="BorderVisual" Value="{DynamicResource BrightColor}"/>
                                                        <Setter Property="Foreground" Value="White"/>
                                                    </Trigger>
                                                    <Trigger Property="IsSelected" Value="True">
                                                        <Setter Property="Background" TargetName="BorderVisual" Value="{DynamicResource BrightColor}"/>
                                                        <Setter Property="BorderBrush" TargetName="BorderVisual" Value="{DynamicResource BrightColor}"/>
                                                        <Setter Property="Foreground" Value="White"/>
                                                    </Trigger>
                                                    <Trigger Property="IsEnabled" Value="False">
                                                        <Setter Property="Opacity" TargetName="Content" Value="0.6"/>
                                                    </Trigger>
                                                    <Trigger Property="ButtonType" Value="TodayDate">
                                                        <Setter Property="BorderBrush" TargetName="BorderVisual" Value="Gray"/>
                                                        <Setter Property="Foreground" Value="{DynamicResource BasicFont}"/>
                                                        <Setter Property="FontWeight" TargetName="Content" Value="Bold"/>
                                                    </Trigger>
                                                    <MultiTrigger>
                                                        <MultiTrigger.Conditions>
                                                            <Condition Property="IsEnabled" Value="False"/>
                                                            <Condition Property="IsMouseOver" Value="True"/>
                                                        </MultiTrigger.Conditions>
                                                        <Setter Property="Foreground" TargetName="Content" Value="White"/>
                                                    </MultiTrigger>
                                                    <MultiTrigger>
                                                        <MultiTrigger.Conditions>
                                                            <Condition Property="IsFromCurrentView" Value="False"/>
                                                            <Condition Property="IsMouseOver" Value="True"/>
                                                        </MultiTrigger.Conditions>
                                                        <Setter Property="Opacity" TargetName="Content" Value="1"/>
                                                    </MultiTrigger>
                                                    <MultiTrigger>
                                                        <MultiTrigger.Conditions>
                                                            <Condition Property="ButtonType" Value="TodayDate"/>
                                                            <Condition Property="IsMouseOver" Value="True"/>
                                                        </MultiTrigger.Conditions>
                                                        <Setter Property="Foreground" TargetName="Content" Value="White"/>
                                                        <Setter Property="Background" TargetName="BorderVisual" Value="{DynamicResource BrightColor}"/>
                                                        <Setter Property="BorderBrush" TargetName="BorderVisual" Value="{DynamicResource BrightColor}"/>
                                                    </MultiTrigger>
                                                    <MultiTrigger>
                                                        <MultiTrigger.Conditions>
                                                            <Condition Property="ButtonType" Value="TodayDate"/>
                                                            <Condition Property="IsSelected" Value="True"/>
                                                        </MultiTrigger.Conditions>
                                                        <Setter Property="Background" TargetName="BorderVisual" Value="{DynamicResource BrightColor}"/>
                                                        <Setter Property="BorderBrush" TargetName="BorderVisual" Value="{DynamicResource BrightColor}"/>
                                                        <Setter Property="Foreground" Value="White"/>
                                                    </MultiTrigger>
                                                    <Trigger Property="ButtonType" Value="WeekNumber">
                                                        <Setter Property="Foreground" TargetName="Content" Value="{DynamicResource BasicFont}"/>
                                                        <Setter Property="Opacity" TargetName="Content" Value="0.2"/>
                                                        <Setter Property="Visibility" TargetName="BorderVisual" Value="Collapsed"/>
                                                    </Trigger>
                                                    <Trigger Property="ButtonType" Value="WeekName">
                                                        <Setter Property="Foreground" TargetName="Content" Value="{DynamicResource BrightColor}"/>
                                                        <Setter Property="Visibility" TargetName="BorderVisual" Value="Collapsed"/>
                                                    </Trigger>
                                                </ControlTemplate.Triggers>
                                            </ControlTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </Setter.Value>
                        </Setter>
I can't pick the rignt date.  T - T

JIJIKO
Top achievements
Rank 1
 asked on 24 Sep 2021
1 answer
2 views

Hi,

i try to always enable the DropDown-Part (the ToggleButton to open the drop down content) of RadRibbonSplitbutton even if the CanExecute of the binded command returns false. How can i achieve this behavior?

i have tried to set IsEnabled of the RadToggleButton via TogglePartStyle of RadRibbonSplitButton but didnt work.

 

<Style x:Key="SplitButtonToggleStyle" TargetType="telerik:RadToggleButton">
    <Setter Property="IsEnabled" Value="True"/>
</Style>

<Style TargetType="telerik:RadRibbonSplitButton" BasedOn="{StaticResource {x:Type telerik:RadRibbonSplitButton}}">
    <Setter Property="TogglePartStyle" Value="{StaticResource SplitButtonToggleStyle}"/>
</Style>

 

Thanks for your help!

Best regards,

Daniel

Dilyan Traykov
Telerik team
 answered on 23 Sep 2021
1 answer
5 views

Hi,

I tried to use a RadMasketTextInput instead of a standard TextBox, mainly because of the SelectionOnFocus/Selectall property.
Always wotks well, but the width of control doesn't use all the space left in the parent as a TextBox, in the same position, does.
I tried with stackpanel, dockpanel and Grid, this is the attempt with dockpanel:


<DockPanel Grid.Row="0" Grid.Column="0" Margin="12,0,0,0" HorizontalAlignment="Stretch">
				<Label VerticalAlignment="Center" 
Content="{DynamicResource  ResourceKey={x:Static r:ResourcesKeys.NameLabel}}" />
	<t:RadMaskedTextInput 
	  HorizontalAlignment="Stretch"
	 SelectionOnFocus="SelectAll"
         Value="{Binding SorgenteName}"/>			
</DockPanel>

And with textbox:

<DockPanel Grid.Row="0" Grid.Column="0" Margin="12,0,0,0" HorizontalAlignment="Stretch">
				<Label VerticalAlignment="Center" 
				    Content="{DynamicResource  ResourceKey={x:Static r:ResourcesKeys.NameLabel}}" />
				<TextBox 
									  HorizontalAlignment="Stretch"
							Text="{Binding SorgenteName}"/>
			</DockPanel>

With textbox I have the desired layout.

Thank you in advance

Stenly
Telerik team
 answered on 23 Sep 2021
0 answers
3 views

 

Hi,

How do i remove these folders out of build,

can you show me how to set the minimum?And if distributed on the client can I register them in GAC?

Thank you! 

 

Khanh
Top achievements
Rank 1
Iron
 updated question on 23 Sep 2021
1 answer
4 views

Hi,

I haven't used .Net in a while, I've lost some basic knowledge.

Can someone show me how to fix this underline error? 

I am using vb.net.

Please let me know if you need more details. 

 

Thank you!

Khanh
Top achievements
Rank 1
Iron
 answered on 23 Sep 2021
0 answers
3 views

Hi,

It seems that the scroll wheel is not working for first time. i can't scroll the mouse to move the scrollbar.

Andalso, how to make filter files working?

the problem is, after clear filter then scroll mouse work .. Am I missing something?