Telerik Forums
UI for WPF Forum
1 answer
231 views

Is there a way to extract active theme settings from the StyleManager?

Cheers, Rob.

Dilyan Traykov
Telerik team
 answered on 27 Jan 2021
2 answers
251 views
I am trying to change the selected tab's background color.  I've managed to do this the following code, but when i run the project, I can't select any tabs at all.  Nothing happens when I click a tab.

<Window.Resources>
    <Style TargetType="{x:Type telerik:RadTabItem}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type telerik:RadTabItem}">
                    <Grid >
                        <Border
                             Name="Border"
                             Background="LightBlue"
                             BorderBrush="Black"
                             BorderThickness="1,1,1,1"
                             CornerRadius="6,6,0,0" >
                            <ContentPresenter x:Name="ContentSite"  Margin="12,2,12,2" VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Header"/>
                        </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter TargetName="Border" Property="Background" Value="LightBlue" />
                        </Trigger>
                        <Trigger Property="IsSelected" Value="False">
                            <Setter TargetName="Border" Property="Background" Value="LightGray" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</Window.Resources>
Richard
Top achievements
Rank 2
Veteran
 answered on 27 Jan 2021
6 answers
289 views

Hello

Do I get it right, that when I receive following exception, that means that somewhere my ```INotifyDataErrorInfo.GetErrors``` returns null instead of empty list?

```

System.ArgumentNullException: Value cannot be null.
Parameter name: collection
   at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
   at Telerik.Windows.Controls.GridViewBoundColumnBase.GetDataErrorValidationErrors(Object dataItem, String propertyName, GridViewValidationType gridViewValidationType)
   at Telerik.Windows.Controls.GridViewBoundColumnBase.GetValidationErrors(Object dataItem, String propertyName)
   at Telerik.Windows.Controls.GridView.GridViewCell.GetDataErrors()
   at Telerik.Windows.Controls.GridView.GridViewCell.UpdateIsValidState()
   at Telerik.Windows.Controls.GridView.GridViewDataControl.Telerik.Windows.Data.IWeakEventListener<System.ComponentModel.DataErrorsChangedEventArgs>.ReceiveWeakEvent(Object sender, DataErrorsChangedEventArgs args)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

```

Vladimir Stoyanov
Telerik team
 answered on 27 Jan 2021
2 answers
229 views

Hi

I'm attempting to set the TextAlignment property of a GridViewExpressionColumn at runtime. The property is set correctly but the change is not reflected in the grid. The same change to a GridViewDataColumn works as I would expect - the alignment is set visually on the screen straight away.

var col = this.RadGridView.Columns[0];
col.TextAlignment = TextAlignment.Right;

 

I have found that it the column is removed and re-inserted it will work correctly:

var col = this.RadGridView.Columns[0];
 
this.RadGridView.Columns.Remove(col);
 
col.TextAlignment = TextAlignment.Right;
 
this.RadGridView.Columns.Insert(0, col);

 

 

Is this a bug? Or am I missing something?

 

Regards

 

Dave

 

 

David
Top achievements
Rank 1
Veteran
 answered on 26 Jan 2021
1 answer
1.7K+ views

Hello:

We have several SVG icons designed by company, but we cannot find a way to use them on Robbon buttons, 

Is there any solution that we can use .svg for button icon?

Thanks!

 

Martin Ivanov
Telerik team
 answered on 26 Jan 2021
1 answer
156 views

I'm getting a strange pause during the animation of a callout?  See code below:

 

Private Sub imHelpEnhanceDistance_MouseDown(sender As Object, e As MouseButtonEventArgs) Handles imHelpEnhanceDistance.MouseDown
 
        Try
            Dim clCodeCallout As New RadCallout()
            With clCodeCallout
                .FontSize = 10
                .Content = "My helpful Text Message"
                .Width = 210
                .Height = 70
                .TextWrapping = TextWrapping.Wrap
                .Background = Brushes.DarkGreen
                .Foreground = Brushes.White
            End With
 
            Dim clSettings As New CalloutPopupSettings()
            With clSettings
                .Placement = System.Windows.Controls.Primitives.PlacementMode.Top
                .CanPopupExceedScreen = True
                .ShowAnimationDuration = 0.55D
                .ShowAnimationEasing = New BounceEase() With {.EasingMode = EasingMode.EaseOut, .Bounces = 20, .Bounciness = 5}
                .CloseAnimationEasing = New CircleEase() With {.EasingMode = EasingMode.EaseOut}
                .CloseAnimationDuration = 0.3D
                .ShowAnimationType = CalloutAnimation.Move
                .CloseAnimationType = CalloutAnimation.Move
                .AutoClose = True
            End With
 
            CalloutPopupService.Show(clCodeCallout, TryCast(sender, FrameworkElement), clSettings)
 
        Catch ex As Exception
 
            Log.Write(ex)
 
        End Try
 
    End Sub
Martin Ivanov
Telerik team
 answered on 21 Jan 2021
10 answers
258 views

Hi

I am wondering if it is possible to use the clustering features available in RadMap to be able to group moving map markers?

For example 1) Two vehicles driving next to each other along a road show as a moving cluster

For example 2) Two vehicles driving towards each other on a road, cluster when close to each other, then separate when they have passed each other

 

In both examples, can the cluster(s) be recalculated when marker locations change so that the cluster marker moves / de-clusters as appropriate?

 

I understand that the clustering features work great with static markers (like in the 'airports' example) and I understand that clusters can be regenerated on a map zoom but I cannot see a way to regenerate, move and possibly break-up a cluster on a marker location change.

 

Am I missing something obvious?

 

Thanks

 

 

Martin Ivanov
Telerik team
 answered on 21 Jan 2021
1 answer
101 views

Hello,

This already appears with previous release and is still visible with the current one: it seems that the stylesheet is missing as no formatting is applied to the text...

Dilyan Traykov
Telerik team
 answered on 21 Jan 2021
1 answer
105 views

Currently a DayViewDefinition in RadScheduleView  is

<telerik:DayViewDefinition MinorTickLength="30min" MajorTickLength="2h" />

I am trying to achieve a different tick interval value before midday and another  tick interval value after midday

For example
For 6 AM to 12 PM, we are looking to set 10 minute slot and after 12 PM we are looking to set 9 minute slot

Can this achieved somehow ?

Dilyan Traykov
Telerik team
 answered on 21 Jan 2021
7 answers
150 views
I've managed to customize all the colors for the Windows8Touch theme to my liking to make it a generally dark theme.  I get the Windows8TouchPalette at startup and set the colors that the Telerik docs recommend.


However I still do not like the Gradient Background brush.  It appears too light for what I want.  I would like to be able to either directly set it to make it darker or simply make the theme use solid brushes in place of the gradient ones .

Is there a way to directly alter the gradient brushes -- individually - in this theme?   Or is it simply constructed from the colors I specify and I have no other control over it?
Martin Ivanov
Telerik team
 answered on 21 Jan 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?