Telerik Forums
UI for WPF Forum
3 answers
194 views

how do we set RadObservableCollection<T>.ShouldResetOnResumeNotifications to false?

there is no public constructor that allows for this and the property is readonly ...

Dinko | Tech Support Engineer
Telerik team
 answered on 12 Aug 2020
1 answer
115 views

Hello.

I want to implement module that add "EndShape" on toolbox and dragdrop to diagram.

Help me.

Petar Mladenov
Telerik team
 answered on 12 Aug 2020
4 answers
261 views

Hi in our application we can enter on three different positions the same value via an autocomplete box. Unfortunately the Text is not align with all the other positions. I prepared a small example where you can test it. 

You can enter the value for Search Text in the Grid (via cell edit template) the First Tab and the Second tab at the bottom.You can see that if you enter similar text examples like Test, Test1, TestT and switch between them the value gets overwritten by the old value (First Tab: Test, Second Tab: Test1, Switch back to first tab => Test overwrites Test1) 

I hope you can reproduce this issue. We found a workaround at handling the binding at the lost focus event, but in my opinion this is a bug in the control. 

Thanks and Br,

Stefan

 

https://drive.google.com/file/d/1MEYAVatohcLog67PukJc2LHzXh_yvq4_/view?usp=sharing

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 12 Aug 2020
3 answers
497 views

Hello,

I am facing some issues with the FileDialogs Controls in WPF:

When using the controls, none of their fields are recognized (for example, ExplorerControl has no Filter neither Multiselect member)

I created a simple WPF project with only the two following files, and added Assembly references to:

  • Telerik.Windows.Controls
  • Telerik.Windows.Controls.FileDialogs
  • Telerik.Windows.Controls.GridView
  • Telerik.Windows.Controls.Input
  • Telerik:Windows.Controls.Navigation
  • Telerik.Windows.Data

MainWindow.xaml:

<Window x:Class="TelerikTest.MainWindow"
        xmlns:fileDialogs="clr-namespace:Telerik.Windows.Controls.FileDialogs;assembly=Telerik.Windows.Controls.FileDialogs"
        mc:Ignorable="d"
        d:DesignHeight="300"
        d:DesignWidth="300">
    <Grid>
        <fileDialogs:ExplorerControl    x:Name="explorer"/>
    </Grid>
</Window>

 

MainWindow.xaml.cs:

using System.Windows;
using System.Windows.Controls;
 
namespace TelerikTest
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
    }
}

 

And when trying to run it, I get this exception:

System.ArgumentNullException: 'Value cannot be null. Parameter name: source'

This exception was originally thrown at this call stack:
    System.Linq.Enumerable.OfType<TResult>(System.Collections.IEnumerable)
    Telerik.Windows.Controls.FileDialogs.ExplorerControl.MainNavigationPaneLoaded(object, System.Windows.RoutedEventArgs)
    System.Windows.RoutedEventHandlerInfo.InvokeHandler(object, System.Windows.RoutedEventArgs)
    System.Windows.EventRoute.InvokeHandlersImpl(object, System.Windows.RoutedEventArgs, bool)
    System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
    System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)
    System.Windows.BroadcastEventHelper.BroadcastEvent(System.Windows.DependencyObject, System.Windows.RoutedEvent)
    System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(object)
    MS.Internal.LoadedOrUnloadedOperation.DoWork()
    System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
    ...
    [Call Stack Truncated]

Thanks in advance for your reply

Note: I have no issue with direct call to FileDialog dialogs, the following code works:

new RadOpenFileDialog().ShowDialog();
Dilyan Traykov
Telerik team
 answered on 11 Aug 2020
3 answers
147 views
Hello, There was a problem raised while I tried to customize the source of radDiagramToolBox Demo, so I came to this courtyard.
In the demo version, the toolbox provides the default items provided by telerik ui control.
However, I want the Toolbox to have only Start, Rectangle, and Decision shape items.
While reading various articles here, I tried using the methods suggested there, but I could not realize this.
Please help me with this.
I am currently using the DiagramToolBox Demo source provided by Telerik UI for WPF.
Petar Mladenov
Telerik team
 answered on 10 Aug 2020
1 answer
151 views

I have a ScheduleView component inside a RadPane that is docked to Top as you can see in the Image1, I have 10 visible days with 3 groups, due to the size of the RadPane I can only see 3 days which is correct. Now, when I make the panel floating I would like to see the whole 10 days without having to scroll.

Is it possible automatically resize the visible days to fit in the available space?

This is the definition of my ScheduleView control:

<scheduleView:RadScheduleView x:Name="scheduleViewOrders" Grid.RowSpan="2" BorderThickness="0 1 1 1" MinAppointmentHeight="20" FirstVisibleTime="00:00" GroupHeaderContentTemplateSelector="{StaticResource CustomGroupHeaderContentTemplateSelector}" AppointmentItemContentTemplate="{ StaticResource AppointmentTemplate}" ResourceTypesSource="{StaticResource ResourcesTypes}" PreviewMouseWheel="ScheduleViewOrders_PreviewMouseWheel" xmlns:local="clr-namespace:ProductionScheduler.ViewModel.Production" HorizontalScrollBarVisibility="Visible" >
                                    <scheduleView:RadScheduleView.ActiveViewDefinition>
                                        <scheduleView:DayViewDefinition GroupFilter="{Binding GroupFilter}" Orientation="Horizontal" VisibleDays="10" MinorTickLength="1h"
                                                                        MajorTickLength="1h" MinTimeRulerExtent="3000"/>
                                    </scheduleView:RadScheduleView.ActiveViewDefinition>                                   
                                    <scheduleView:RadScheduleView.GroupDescriptionsSource>
                                        <scheduleView:GroupDescriptionCollection>
                                            <scheduleView:DateGroupDescription></scheduleView:DateGroupDescription>
                                            <scheduleView:ResourceGroupDescription ResourceType="Schedule" />
                                        </scheduleView:GroupDescriptionCollection>
                                    </scheduleView:RadScheduleView.GroupDescriptionsSource>                                   
                                </scheduleView:RadScheduleView>

 

And this is the definition of the GroupHeaderContentTemplateSelector:

<localStyles:CustomGroupHeaderContentTemplateSelector x:Key="CustomGroupHeaderContentTemplateSelector">
    <localStyles:CustomGroupHeaderContentTemplateSelector.HorizontalTemplate>
        <DataTemplate>
            <ContentPresenter Content="{Binding FormattedName}" Margin="2" Width="80" Height="30" VerticalAlignment="Center"/>
        </DataTemplate>
    </localStyles:CustomGroupHeaderContentTemplateSelector.HorizontalTemplate>
 
    <localStyles:CustomGroupHeaderContentTemplateSelector.VerticalTemplate>
        <DataTemplate>
            <telerik:LayoutTransformControl VerticalAlignment="Center">
                <telerik:LayoutTransformControl.LayoutTransform>
                    <RotateTransform Angle="0" />
                </telerik:LayoutTransformControl.LayoutTransform>
                <ContentPresenter Content="{Binding FormattedName}" Margin="5" Width="70"/>
            </telerik:LayoutTransformControl>
        </DataTemplate>
    </localStyles:CustomGroupHeaderContentTemplateSelector.VerticalTemplate>
 
    <localStyles:CustomGroupHeaderContentTemplateSelector.HorizontalResourceTemplate>
        <DataTemplate>
            <ContentPresenter Content="{Binding Name.DisplayName}" Margin="2" Width="80" Height="30" VerticalAlignment="Center"/>
        </DataTemplate>
    </localStyles:CustomGroupHeaderContentTemplateSelector.HorizontalResourceTemplate>
 
    <localStyles:CustomGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
        <DataTemplate>
            <telerik:LayoutTransformControl VerticalAlignment="Center">
                <telerik:LayoutTransformControl.LayoutTransform>
                    <RotateTransform Angle="0" />
                </telerik:LayoutTransformControl.LayoutTransform>
                <ContentPresenter Content="{Binding FormattedName}" Margin="5" Width="60" Height="23" MaxHeight="23" MinHeight="23"/>
            </telerik:LayoutTransformControl>
        </DataTemplate>
    </localStyles:CustomGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
     
</localStyles:CustomGroupHeaderContentTemplateSelector>
Dilyan Traykov
Telerik team
 answered on 10 Aug 2020
1 answer
181 views

Is the webcam control capable of using Onvif compatible net cameras? Onvif is a protocol and hundreds of security cameras support it, see: https://www.onvif.org/ for further details.

Windows 10 2004 also supports it. But before I buy such a camera I wanted to know if the webcam control can use it? https://blogs.windows.com/windowsdeveloper/2019/10/15/announcing-windows-10-support-for-network-cameras/.

More details to connect a camera, here: https://blogs.windows.com/windowsdeveloper/2019/10/10/connecting-network-cameras-to-windows-10-devices/#q0HZLYwmvHbx7F2e.97.

Thanks

Mike

Ivan Petrov
Telerik team
 answered on 10 Aug 2020
1 answer
72 views

Hello,

A colleague of mine handed to me a project he has previously created. He has used Telerik .dll libraries from "Telerik UI controls for WPF". I have installed this extension trial and I would expect these libraries would automatically load in my VS2019. It is not the case unfortunatelly. I have to delete them and manually add them again. I think the problem is with versions of the libraries but there are plenty of them used and it is hard to do it all manually. What am I doing wrong? Thanks a lot

 

Kind regards

Jan

 

 

 

 

Dilyan Traykov
Telerik team
 answered on 10 Aug 2020
3 answers
314 views
The tool box that hold shapes has 3 shapes listed in a row by default

The tool box also assumes a vertical orientation.

If suppose I need to align the tool box on top of the diagram, how can i do it ?
Milena
Telerik team
 answered on 10 Aug 2020
6 answers
370 views

I am using a GridView and I have a column with cell merging enabled (IsCellMergingEnabled="True"), also I have a style to set the aligment of the value of the cell:

<Style TargetType="telerik:GridViewMergedCell">
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
        </Style>

I would like to change the background color of the cell based on the value of that cell?

How can I do that?

I was thinking of using a converter but I don't know how can I pass the value of the cell as a parameter.

Dilyan Traykov
Telerik team
 answered on 10 Aug 2020
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?