Telerik Forums
UI for WPF Forum
12 answers
333 views
Is there any chance that we can get the zoomlevel changed to a double so that I can more precisely size my map? Or is there another way to achieve this? E.G. the difference between zoom level 7 and 8 on one of the supplied US state shapefiles is quite a lot. I'd like to be able to zoom in at, say 7.3 or 7.4.
Vladimir Stoyanov
Telerik team
 answered on 08 Nov 2018
3 answers
2.4K+ views

I am trying to set theme (Fluent) AlternativeBrush into SolidColorBrush resource. I am facing error #FFF2F2F2' is not a valid value for property 'Color'. 

Everything is working fine, but problem when I want to define SolidColorBrush resource from theme. This resource will be used in other templates.

For reference following is sample code what I am doing now

 

<SolidColorBrush Color="{telerik:FluentResource ResourceKey=AlternativeBrush}" x:Key="AlternativeBrush"/>
Vladimir Stoyanov
Telerik team
 answered on 08 Nov 2018
1 answer
115 views

Hi Telerik,

I'm currently using the Outlook Template for visual studio and I'm wondering how can I change the accent color on the template?

I was to be able to use customized color hex or RGB to set colors for like accent, text etc.

 

Vladimir Stoyanov
Telerik team
 answered on 08 Nov 2018
0 answers
132 views

Hi. I am using RadComboBox control in my project. Previously, the control was in non-editable mode (IsEditable="False") and drop functions worked fine.

<telerik:RadComboBox
IsEditable="True"
IsFilteringEnabled="True"
AllowDrop="True"
ItemsSource="{Binding Type.Items}"
DisplayMemberPath="DocumentId"
Text="{Binding Value, Mode=TwoWay}">
<i:Interaction.Behaviors>
<local:DropTargetBehavior DropCommand="{Binding DropCommand}" />
</i:Interaction.Behaviors>
</telerik:RadComboBox

 

When I set IsEditable to True then drop functionality has stopped working. In editable mode there is an "Input Area" overlay control and i cannot drop anything to RadComboBox. Can you suggest any working example for dropping something to RadComboBox in editable mode (IsEditable="True")?

Vladimir
Top achievements
Rank 1
 asked on 08 Nov 2018
1 answer
232 views
When I press Filter button in any RadGridView's column and then press Alt+Tab to switch to other window, filter popup stays on top.
Dinko | Tech Support Engineer
Telerik team
 answered on 07 Nov 2018
2 answers
230 views

When I switched to Fluent theme all RadRibbonButtons direct content was aligned to the left instead of centered as it was previously in Expression Dark theme. The problem is, that ContentPresenter in StackPanel named FirstRowContainer has its HorizontalAlignment property set to Left. I don't know how can I change that to Center and I need your help to fix it. Direct content of buttons is TextBlock displaying Font Glyph. Here is sample code:

                        <telerik:RadRibbonButton x:Name="buttonLock"
                                                 Click="ButtonLock_OnClick"
                                                 IsEnabled="{Binding IsUiUnlocked}"
                                                 Size="Large"
                                                 Text="Lock">
                            <TextBlock Margin="2"
                                       FontFamily="{StaticResource TelerikWebUI}"
                                       FontSize="24"
                                       Foreground="#00BFE8"
                                       Text="{StaticResource GlyphLock}" />
                        </telerik:RadRibbonButton>

Jan
Top achievements
Rank 1
 answered on 07 Nov 2018
3 answers
213 views

Hi,

I would like to create two generic custom aggregators as like your CounterFunction class with the following differences

1st aggregator: it should count only not null value and not the empty strings

2nd aggreagator: it should count the distinct values (example: a a a b b c -> count =3 )

 

Any idea?

Thank you

Vladimir Stoyanov
Telerik team
 answered on 07 Nov 2018
2 answers
306 views

Hi!

For example I took an DockingIntegration_WPF project from examples provided by Telerik. I set up grid snapping and it has worked fine, until I have rotated the shape on 90 (or 270) degrees.
After rotation, the shape does not snap to grid  neither when I drag it over the diagram nor I drop it on the diagram.
But when I rotate the shape on 180 degrees , it snaps to grid well.
On attached picture you can see this bug.
Is it possible to fix this issue?

toschkin
Top achievements
Rank 1
 answered on 06 Nov 2018
0 answers
71 views

I have VerticalLinearScale with properties:

Min= 0

Max = 100

MajorTickStep = 20

MiddleTicks = 4

by click on button I changed the values of the properties to:

Min= 0
Max = 30000
MajorTickStep = 5000
MiddleTicks = 10

the problem is that it takes too much time till the element render again with the new values

I attached my sample with the problem

Thanks,

Shoshana

 

 

שושי
Top achievements
Rank 1
 asked on 06 Nov 2018
3 answers
95 views

Hello again!

I am creating custom RadDiagramShape as it is written in Telerik documentation: https://docs.telerik.com/devtools/wpf/controls/raddiagram/howto/create-custom-shape . It contains 2 borders and an image inside of them. When I am doing it according to the documentation, rotation and zoom after rotation works weird with ancor-points of this CustomControl. When I am doing 2 borders and an image inside RadDiagramShape inside xaml without any CustomControl it works as it should.

The picture of weird behaviour is attached (after rotating of both figures).

Would you be so kind to tell me how I can fix this weird behaviour of my CustomControl?

This is my .cs code

public class RasterObject : RadDiagramShapeBase
{
    static RasterObject()
    {
        DefaultStyleKeyProperty.OverrideMetadata(typeof(RasterObject), new FrameworkPropertyMetadata(typeof(RasterObject)));
    }
 
    public static readonly DependencyProperty ContrastyBorderBrushProperty =
         DependencyProperty.Register("ContrastyBorderBrush", typeof(Brush),
         typeof(RasterObject), new FrameworkPropertyMetadata(Brushes.Transparent));
 
    // .NET Property wrapper
    public Brush ContrastyBorderBrush
    {
        get { return (Brush)GetValue(ContrastyBorderBrushProperty); }
        set { SetValue(ContrastyBorderBrushProperty, value); }
    }
 
    public static readonly DependencyProperty SourceProperty =
         DependencyProperty.Register("Source", typeof(ImageSource),
         typeof(RasterObject));
 
    // .NET Property wrapper
    public ImageSource Source
    {
        get { return (ImageSource)GetValue(SourceProperty); }
        set { SetValue(SourceProperty, value); }
    }
 
 
}

This is my style code:

<Style TargetType="{x:Type local:RasterObject}">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type local:RasterObject}">
                <Border BorderBrush="{TemplateBinding ContrastyBorderBrush}"
                        BorderThickness="{TemplateBinding BorderThickness}">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <Image Source="{TemplateBinding Source}" Stretch="Fill"/>
                    </Border>
                </Border>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

This is my Xaml code:

<telerik:RadDiagram  IsBackgroundSurfaceVisible="True">
                                     
                                    <telerik:RadDiagramShape Position="50, 50" Background="Transparent" BorderBrush="Transparent">
                                        <Border BorderBrush="Red" BorderThickness="13" >
                                            <Border BorderBrush="Blue" BorderThickness="23" >
                                                <Image Source="/Images/MainToolbar/Arc.png" Stretch="Fill"/>
                                            </Border>
                                        </Border>
                                    </telerik:RadDiagramShape>
                                    <imageeditor:RasterObject BorderBrush="Gray" BorderThickness="10"
                                                               ContrastyBorderBrush="White"
                                                              Source="/Images/MainToolbar/Arc.png"/>
                                     
 
                                </telerik:RadDiagram>

 

Best regards,
Tatiana

Martin Ivanov
Telerik team
 answered on 06 Nov 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?