Telerik Forums
UI for WPF Forum
2 answers
372 views

   I'm currently running Visual Studio 2022 64-bit, latest version on Windows 11, latest version.  My project is targeting .NET Framework 4.8.  I'm running the latest version of the Telerik Tools for WPF R2 2022 SP1.

   I'm attempting to create a custom implementation of RadWindow by inheriting from it, for example, my base class looks like:

Namespace Windows
    Partial Public Class TBaseRadWindow
        Inherits Telerik.Windows.Controls.RadWindow
        Implements System.ComponentModel.INotifyPropertyChanged, IDisposable
....
  End Class
End Namespace

   When I show my derived Window which comes from this class, I get a tiny, blank RadWindow with no chrome.  Based on my reading, it appears this is caused by NoXAML and the need for the styles to be added to the application's ResourceDictionary.  I'm attempting to follow the instructions from this forum post:  https://www.telerik.com/forums/unable-to-display-a-radwindow
   The forum post says to add these resources to the MergedDictionary this way:

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="Themes/System.Windows.xaml" />
            <ResourceDictionary Source="Themes/Telerik.Windows.Controls.xaml" />
            <ResourceDictionary Source="Themes/Telerik.Windows.Controls.Navigation.xaml" />
          </ResourceDictionary.MergedDictionaries>
        <Style TargetType="local:PreferencesView" BasedOn="{StaticResource RadWindowStyle}" />
    </ResourceDictionary>
</Application.Resources>

   However, when I add these three items to my MergedDictionaries (I have one already that works fine) when I compile I get an error "IO Exception: Cannot location resource "themes/system.windows.xaml".  

   My project references System.Windows, Telerik.Windows.Controls, and many others.  Where can I get this system.windows.xaml from?

 

Masha
Telerik team
 answered on 21 Jul 2022
2 answers
1.4K+ views

Dear Teleriker,

I have a grid using RadGridView with grouping like below image.

I developed a context menu based on the GridViewHeaderCell.

Actually, I would have the behavior like that: When I click on an item of Context Menu (Expand All or Collapse All), it will expand/collapse only the sub-groups which are under the same group.

For example, in the image below, as I'm currently on the group "Cash" of group parent "Asset...Pictet & Cie (Suisse)", I expect that it will close all the groups under the group parent "Asset...Pictet & Cie (Suisse)" (like:Cash, Share, Bonds...) but let expanded other groups (like: group "Cash" under group parent "Asset...First Americain National Bank".

 

 

Is there any solution for that?

Many thanks for your help,

Minh

minh
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 21 Jul 2022
1 answer
193 views
is it possible to select two locations which is displaying on the radmap and draw a curve line. initially a simple straight line needs to be drawn and then user can select the line between the locations and change it to a curve by dragging the line. Currently we achieved placing the marker on the radmap.
Petar Mladenov
Telerik team
 answered on 20 Jul 2022
0 answers
129 views

Tried to adapt the ScheduleView and TimeBar (MiniMap) example. from the WPF Example Controls App.

As in the example the ScheduleView and TimeBar lie in the same column. As in the example TimeBars VisiblePeriodStart is bound to CurrentDate of MiniMapScheduleView. Visible Days of MiniMapScheduler are calculated by a Converter from TimeBar VisiblePeriod..

The problem is that the underlying ScheduleView is only updating its view when clicking on the TimbeBar (even on startup/when itemsource is new bound)).

When scrolling or zooming in the TimeBar all shown MiniMap appointments vanish except the ones which are in the area "selected" by the TimeBer Selector. 

Only when clicking again in the TImeBar (Selection) all MIniMap appointment appear again.

in the mentioned example the underlying ScheduleView updates instant and accordingly to the timebars zoom level.

Tried already:

Manually Update Scheduler (UpdateLayout() etc. in VisiblePeriodChanged- no effect.

Copied the bound Appointments observable collection from the MasterScheduleView to an own MiniMapAppointmentsCollection (thought had maybe something to do with virtuilaziation) - no effect.

Automatically updating the view when changing the underlying parameters (ItemsSource,VisiblePeriod, VisibleDays etc. etc) should be something very essential, am i missing something?

 

 

 

Technik
Top achievements
Rank 1
 asked on 20 Jul 2022
0 answers
179 views

The NavigationPane is not shown in the following example.

I "almost" follewed the description. I removed DataContext to get my pdf file rendered.

 

<Grid

<Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition/> </Grid.RowDefinitions>

 <telerik:RadPdfViewerToolBar RadPdfViewer="{Binding ElementName=pdfViewer, Mode=OneTime}"/> <Grid Grid.Row="2"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition/> </Grid.ColumnDefinitions> <telerik:RadPdfViewerNavigationPane Grid.Column="0" RadPdfViewer="{Binding ElementName=pdfViewer, Mode=OneTime}" PaneWidth="300" /> <telerik:RadPdfViewer Grid.Column="1" x:Name="pdfViewer" DocumentSource="{Binding PdfFileName, Mode=OneWay, Converter={StaticResource PdfDocumentSourceValueConverter}, ConverterParameter=ReadOnDemand}" RenderOptions.BitmapScalingMode="NearestNeighbor"/> </Grid> </Grid>

Axel
Top achievements
Rank 1
 asked on 18 Jul 2022
0 answers
133 views

Hi Telerikers,

I have a RadCartesianChart with 2 series: Line and Bar. I would expect that the labels of LineSeries should be out of the bar item zone.

Below is my current situation with the red highlighted in the problem. All I need is to put out the label "-0.02%" from the orange bar item zone.

I would be much appreciated if you guys have a solution for that.

Many thanks in advance.

minh
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 15 Jul 2022
1 answer
691 views

Windows 11 build 22000.795

XAML Code:

<telerik:RadWindow x:Class="WpfApp1.MainWindow" 
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
                   xmlns:helpers="clr-namespace:Telerik.Windows.Controls.Theming.Helpers;assembly=Telerik.Windows.Controls" 
                   helpers:WindowEffectsHelper.BackdropMaterial="Acrylic" 
                   Header="RadWindow" Style="{StaticResource RadWindowStyle}" Width="400" Height="400">
    <Grid>
        
    </Grid>
</telerik:RadWindow>

 

App.xaml file:
<Application x:Class="WpfApp1.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:WpfApp1"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows11;component/Themes/System.Windows.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows11;component/Themes/Telerik.Windows.Controls.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows11;component/Themes/Telerik.Windows.Controls.Input.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows11;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows11;component/Themes/Telerik.Windows.Controls.Data.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>

App.xaml.cs file:

using System.Windows;

namespace WpfApp1
{
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            new MainWindow().Show();
            base.OnStartup(e);
        }
    }
}

Result - see in attachment (no effect)

 

 

Vicky
Telerik team
 answered on 14 Jul 2022
0 answers
122 views

I have a number of xaml files that are are using telerik masked inputs, specifically

  • telerik:RadMaskedDateTimeInput
  • telerik:RadMaskedNumericInput

and will likely be using more. These are being used to make sure the user is entering the correct input. Once the user enters the input the input data needs to run through a multiconverter. I have not been able to find a solution to bind the input data to a muliconverter. Is this possible?

I have been able to make this work in the RadGrid columns using the published work around which does not work in this context and am looking for either a way to make this work or if this is even possible.

For example, below is one of the date time inputs. How can the bound data, singleSpeedDataInt, be run through a multi binding converter?

   <telerik:RadMaskedDateTimeInput
                                                     IsEnabled="{Binding singleSpeed.UseDataInt, Mode=OneWay}"
                                                     IsClearButtonVisible="false"
                                                     Placeholder=""
                                                     Mask="HH:mm:ss"
                                                     Height="36"
                                                     Width="120"
                                                     Margin="8,0,0,0"
                                                     Value="00:01:00"
                                                     Text="{Binding singleSpeed.DataInt, Mode=TwoWay}" />
  
Paul
Top achievements
Rank 1
 asked on 14 Jul 2022
0 answers
125 views

What do I need to change for me to see the Subject above correctly?

And how do I make each AppointmentItem (in MonthView) double the size from now on?

 

Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
 asked on 14 Jul 2022
1 answer
141 views

I want to do something in the style of Outlook so that the change (in terms of design) of working hours can be noticed

 

Krasimir Balchev
Telerik team
 answered on 13 Jul 2022
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?