Telerik Forums
UI for WPF Forum
1 answer
111 views
Hello, I implemented the ZoomAndScrollSettings declaratively in my RadChart using XAML (You can see the code snippet in the attached file). The problem is that the Scrollbar to scroll or to zoom isn't displayed in the diagram. Have I forgotten something or did I do something wrong?
Martin Ivanov
Telerik team
 answered on 18 Apr 2019
1 answer
706 views

Hi, I have a hierarchy that looks something like this:

<RadLayoutControl>

  <LayoutGroup>

    <LayoutExpanderGroup>
      <SomeControl/>
    </LayoutExpanderGroup>

    <LayoutExpanderGroup>

      <RadGridView/>

    </LayoutExpanderGroup>

  </LayoutGroup>

</RadLayoutControl>

My RadGridView has many columns and rows and so causes the entire <RadLayoutControl> to scroll.  Is it possible to configure this view so that only the <LayoutExpanderGroup> that contains the <RadGridView> will scroll?

Any help would be appreciated.

Vladimir Stoyanov
Telerik team
 answered on 17 Apr 2019
3 answers
184 views

Hi,

I'm using the CloudUpload in my application, and I was wondering if there was anyway to update the tooltip language resource of the RadCloudUploadListItem Close Button (I joined a screenshot of the tooltip I'm talking about). I wasn't able to find it in the xaml style template.

Could someone help me with this issue?

Thank you,

Vladimir Stoyanov
Telerik team
 answered on 17 Apr 2019
4 answers
251 views

I want to hide only the horizontal or vertical scrollbar. Is that possible ?

The only solution I found now is the following style :

<Style TargetType="telerik:PanZoomBar">
                <Setter Property="Visibility" Value="{Binding Customization.ChartZoomMode, Converter={StaticResource ChartScrollbarVisibilityConverter}}"/>
            </Style>

The problem here is that it is hiding both Scrollbars. Is there a option where I can decide which one I want to hide ?

How can I use correctly the above xaml in code behind ? 

This is not working :

   return new RadCartesianChart
            {
                //Resources = new ResourceDictionary()
                //{
                //    {"HideScrollBarStyle", new Style(typeof(PanZoomBar))
                //        {
                //            Setters =
                //            {
                //                new Setter()
                //                {
                //                    Property = ContentControl.VisibilityProperty,
                //                    Value = Visibility.Collapsed,
                //                }
                //            }
                //        }
                //    }
                //},
                HorizontalAxis = new CategoricalAxis()
                {
                    LabelFitMode = AxisLabelFitMode.Rotate,
                    PlotMode     = hasBarSeries ? AxisPlotMode.BetweenTicks : AxisPlotMode.OnTicks,
                    Title = Customization.XAxisName?.ToUpper(),
                    SmartLabelsMode = AxisSmartLabelsMode.SmartStep ,
                    LabelTemplate = new DataTemplate()
                    {
                        VisualTree = xAxisFormat,
                    },
 
                    //GapLength = 0.15,
                },
                VerticalAxis = this.HasMultipleAxis ? null : GetYAxis(),
                SmartLabelsStrategy = new ChartSmartLabelsStrategy()
                {
                    ShouldMinimizeConnectorConflicts = true,
                },
......
......
.....

 

Martin Ivanov
Telerik team
 answered on 17 Apr 2019
3 answers
179 views
Hi. I use AStarRouter and FindExtendedRoute. But if the diagram contains many items, it takes a very long time to load. This is especially noticeable when overlaying text on connectors. How I can optimize AStarRouter, for example, by reducing the number of search iterations? Or how I can catch a connection that takes a lot of time in FindExtendedRoute?
Petar Mladenov
Telerik team
 answered on 16 Apr 2019
1 answer
153 views

I am using RadSpellChecker to spell check a WPF TextBox.  In a different area of my application, I am using RadRichTextBox and I have a custom dialog for spell checking.  When I spell check the WPF TextBox, I get the built-in spell checking dialog instead of my custom dialog.  Is there a way to also use the custom dialog when spell checking a WPF TextBox?

 

Brian

Peshito
Telerik team
 answered on 16 Apr 2019
1 answer
393 views

I have created a simple project to start working RadImageEditor.

The problem is that my image doesn't display in the editor at all. Even when I execute the Open command of the ImageEditor.

I'm not sure if the ImageEditor isn't visible or the image doesn't get loaded inside of it.

 

Since I'm not allowed to attach a zip file I'll add the code of each class of my project:

 

MainWindow.Xaml:

<Window x:Class="WpfApp4.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<telerik:RadImageEditor HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ScaleFactor="0" x:Name="ImageEditor" Background="Red"/>
<Button Click="Button_Click" Content="Load picture" Grid.Row="1" />
</Grid>
</Window>

MainWindow.Xaml.cx:

namespace WpfApp4
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            ImageExampleHelper.LoadSampleImage(this.ImageEditor, "RadImageEditor.png");
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.ImageEditor.Commands.Open.Execute(this.ImageEditor);
        }
    }
}

 

ImageExampleHelper.cs:

    public class ImageExampleHelper
    {
        public static void LoadSampleImage(RadImageEditor imageEditorUI, string image)
        {

            Stream stream1 = File.OpenRead("D://test image//radImageEdito.png");
            string extension = Path.GetExtension("D://test image//radImageEdito.png").ToLower();

            IImageFormatProvider formatProvider = ImageFormatProviderManager.GetFormatProviderByExtension(extension);
            if (formatProvider != null)
            {
                imageEditorUI.Image = formatProvider.Import(stream1);
                imageEditorUI.ApplyTemplate();
                imageEditorUI.ScaleFactor = 0;
            }
            stream1.Close();
        }
    }

Thanks!
Mahdieh,

 

 

Mahdieh
Top achievements
Rank 1
 answered on 15 Apr 2019
6 answers
398 views
Hi, I'd like to know if it would be possible to edit the RadTimeline's template so that I can remove (preferably, if not I'll just hide it) the scroll bar and add the scrolling functionality to the timeline itself, by having the user click and drag on it. Other than that, which PART_ should I apply styles to if I wanted to customize the timeline background? Seems like the examples of customizing cover the TimelineItemTemplate, TimelineInstantItemTemplate and ToolTipTemplate. Thank you!
Martin Ivanov
Telerik team
 answered on 15 Apr 2019
4 answers
186 views

Hi,

I'm trying to apply a red color outer border for the funnel filtering icon when filter is applied to indicate the filter is active.

Looking at the documentation, I see 4 Path elements for PART_DropDownButton.

https://docs.telerik.com/devtools/wpf/controls/radgridview/styles-and-templates/templates-structure#filteringdropdown

 

But I only see 2 Path elements under DistinctFilterControlTemplate from GridView xaml (as shown in below code block). 2 of the paths from documentation indicate the outer border and background when filtering is applied.

Please guide me here on how to proceed to apply a red border when filtering is active.

<ControlTemplate TargetType="grid:FilteringDropDown" x:Key="DistinctFilterControlTemplate">
    <Grid>
        <Button x:Name="PART_DropDownButton">
            <Button.Template>
                <ControlTemplate TargetType="Button">
                    <ContentPresenter/>
                </ControlTemplate>
            </Button.Template>
            <Border Cursor="Hand" MinWidth="22" Background="Transparent">
                <Grid>
                    <Path
                    Data="M0.93340254,0 L4.934082,0 L6.934082,0 L10.93358,0 C11.996876,0 12.199773,0.75 11.668063,1.359375 L8.4335356,5.5 C8.100522,5.8975558 7.983531,6.062263 7.9429321,6.2736206 L7.934082,6.3298788 L7.934082,10.332101 C7.934082,10.332101 3.9340818,14.997499 3.9340818,14.997499 L3.9340818,6.3293748 L3.9286206,6.3012671 C3.8825667,6.1045012 3.751812,5.9296875 3.3865709,5.5 L0.24589038,1.40625 C-0.2067349,0.84375 -0.066181421,1.2241071E-16 0.93340254,0 z"
                    Fill="{telerik:Windows8Resource ResourceKey=StrongBrush}"
                    Stretch="Fill"
                    Margin="2 1 2 2"
                    Width="8"
                    Height="11"/>
                    <Path
                    Data="M0.93340254,0 L4.934082,0 L6.934082,0 L10.93358,0 C11.996876,0 12.199773,0.75 11.668063,1.359375 L8.4335356,5.5 C8.100522,5.8975558 7.983531,6.062263 7.9429321,6.2736206 L7.934082,6.3298788 L7.934082,10.332101 C7.934082,10.332101 3.9340818,14.997499 3.9340818,14.997499 L3.9340818,6.3293748 L3.9286206,6.3012671 C3.8825667,6.1045012 3.751812,5.9296875 3.3865709,5.5 L0.24589038,1.40625 C-0.2067349,0.84375 -0.066181421,1.2241071E-16 0.93340254,0 z"
                    Fill="{telerik:Windows8Resource ResourceKey=AccentBrush}"
                    Width="8"
                    Height="11"
                    Visibility="{TemplateBinding FunnelFillVisibility}"
                    Margin="2 1 2 2"
                    Stretch="Fill"/>   
                </Grid>
            </Border>
        </Button>
        <Popup x:Name="PART_DropDownPopup" StaysOpen="True" AllowsTransparency="True" PopupAnimation="Slide"/>
    </Grid>
</ControlTemplate>
Vladimir Stoyanov
Telerik team
 answered on 15 Apr 2019
4 answers
286 views

I need to create a container something like image target.png.

I've been looking at building this using nested containers (see 1.png)

The first issue I have is when you collapse the inner container, you still get a small body area (see 2.png), how do I get rid of this?

The other thing to note here is that collapsing the inner container also moves the connection point to the bottom of the header - which seems like a sensible place for it to move to.

The main issue occurs if you collapse the outer container (see 3.png)

Now the connection point from the inner container moves to the center of the header block. How do I make it behave like it did when only one level is collapsed (i.e. move to the bottom right of the header block?

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 12 Apr 2019
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?