Telerik Forums
UI for WPF Forum
1 answer
122 views
I am attempting to get a reference to the RadCarouselPanel in my RadCarousel.  I need to know when it is animating.  But unless I wait for some sort of manual event (like a keyboard press)  the panel is null.

First I tried adding a handler for the Carousel's Loaded event 


<tk:RadCarousel x:Name="OtherScanGallery"

    ItemsSource="{Binding OtherScansView}"
    VerticalContentAlignment="Top"
    IsSynchronizedWithCurrentItem="True"
    IsVisibleChanged="OtherScanGallery_OnIsVisibleChanged"
    SelectionChanged="OtherScanGallery_OnSelectionChanged"
    Loaded="OtherScanGallery_OnLoaded"
    SelectedItem="{Binding ElementName=Root, Path=DataContext.SelectedOtherScan, Mode=TwoWay}"
    >

private void OtherScanGallery_OnLoaded(object sender, RoutedEventArgs e) {

RadCarouselPanel? panel = null;

if (sender is not RadCarousel car) Log.Debug($"Gallery loaded but no carousel"); elseif (null == (panel = car.FindCarouselPanel())) Log.Debug($"Gallery loaded but no panel"); else Log.Debug($"Gallery fully loaded"); }


Unfortunately the second check fails here.  FindCarouselPanel returns null.    I guess this makes some sense since the carousel is initially not visible when my page is loaded.    So I figured, maybe the carousel waits until it becomes visible to create it's panel

So then I tried to put in a handler for the carousel's IsVisibleChanged event.  I figure the carousel will have to have created the panel by then, right? 

private void OtherScanGallery_OnIsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
{
    var panel = OtherScanGallery.FindCarouselPanel();
    if (null == panel )
        Log.Error("No panel after visible changed.");
}


But no, wrong.  The Panel returned here is still null

However If i then set up an event handler for... say... a keyboard event later on, at that point FindCarouselPanel returns a valid panel.

So what are the rules here?  How do I determine definitively when the Carousel creates its panel?


Note:  I am using The Windows8Touch theme in the binaries with XAML and the StyleManager.  I have not created an sort of ControlTemplate for the carousel or its items.  I am using the theme-provided ones



Martin Ivanov
Telerik team
 answered on 19 Apr 2023
1 answer
149 views

Hi 

Current scenario I am trying to fix is we are wanting to make use of the minimization feature, but disable the double click toggling the minimization. Limiting the minimization toggle to only the Minimize button (or a custom context menu). 

I have tried using the PreviewMouseDoubleClick event which works at a first glance, however it ends up being that a triple click will now minimize. 
Other less successful attempts are disabling minimization and only enable it before the ribbon would be minimized or un minimized. This would mean more control over when the ribbon is minimized but would require more effort in getting all aspects of the minimization working. 

Any assistance would be appreciated. It doesnt feel like too complicated of a problem but struggling with it none the less 

Martin Ivanov
Telerik team
 answered on 18 Apr 2023
1 answer
133 views

Hi,
I would like to use windows11 theme in my application, but when apply the theme every buttons in the toolbars are loaded of large padding and large margin.
Since I don't like this layout I can change it setting properties inside every button, but if I try to setting a style it is ignored.
I think that toolbar apply a style and overwrite my one.

Can I modify the layout without change every button in my application?

Thank you

Luigi

Stenly
Telerik team
 answered on 17 Apr 2023
1 answer
153 views

HI Team,

I wanted to override the theme of RadDocking Control.

I'm using DocumentHost and RadDocumentPane with properties IsDockable="False" CanFloat="False"  CanUserClose="False" CanUserPin="False" but after that in the application Border is coming with thickness "2" .

I used snoop tool where if I set this thickness to 0 then border goes away but when I make changes in RadDockingDocument Style BorderLayer3 control to 0 it doesn't work .

Please help me to remove the border in case we use DocumentHost.

 <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer Margin="0,0,0,0" BorderThickness="0" Padding="0">
                    <telerik:RadPaneGroup BorderThickness="0" >
                        <telerik:RadDocumentPane Style="{StaticResource LayoutRadDocument}" PaneHeaderVisibility="Collapsed"  telerik:RadDocking.SerializationTag="AnotherDocPane" Background="Transparent" Margin="0,0,0,0" BorderThickness="0" Padding="0" Header="DocPane" Visibility="Collapsed" IsDockable="False" CanFloat="False"  ContextMenuTemplate="{x:Null}"  CanUserClose="False" CanUserPin="False">
                            <Grid x:Name="RighHandColumn">

Please look into the SS.

 

Stenly
Telerik team
 answered on 17 Apr 2023
0 answers
86 views
Hello!
I am using Telerik GridView control in WPF application.
I wanted to use the SelectedItems Binding for GridView according article "SelectedItemsBehavior fixes for crashes, changing DataContext" at https://www.telerik.com/forums/selecteditemsbehavior-fixes-for-crashes-changing-datacontext.
I downloaded the example from the link from github, but I had a problem: the downloaded example does not work...
After starting the programm, when trying to select a row, the application throws the error "cannot change ObservableCollection during a CollectionChanged event".
In the comments, one of the users wrote about this error, to which the author replied that he had updated the code on the github and now this error has been fixed. But I still get an error. How do I fix the "MySelectedItemsBindingBehavior" class to make it work?
Vlad
Top achievements
Rank 1
 asked on 14 Apr 2023
1 answer
182 views
Is there a way to use Telerik Document Processing Libraries in a .NET 6 WPF project?
Yoan
Telerik team
 answered on 10 Apr 2023
1 answer
129 views

Hi Team,

We are using RadPdfViewer in .net 6 WPF application. It is failing to load 3D PDF content. We found the very old thread about this feature from around 2013 and it says this feature is not supported. Is there any option to show the 3D content in latest PDF control or any plans to release this functionality in near future ?

 

Thanks in Advance.

Peshito
Telerik team
 answered on 10 Apr 2023
0 answers
271 views

Hi. 

I've tried to use RadDateTimePicker inside RadGridView, but datepicket is not showing (examle from: WPF DateTimePicker - How to use RadDateTimePicker in a Grid - Telerik UI for WPF).  Tried to add control outside grid but without any effect. 

Project is referenced to Telerik.Windows.Data.dll, Telerik.Windows.ControlsTelerik.Windows.Controls.InputTelerik.Windows.Controls.GridView...


<Window x:Class="Test"
        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"         
        Title="Test" Height="450" Width="800">
    <Grid>
    
        <telerik:RadDateTimePicker                                 
                                InputMode="DatePicker"
                                telerik:DropDownButtonExtensions.FocusContentOnOpen="True"                              
                                SelectedValue="{Binding Established, Mode=TwoWay}"/>
        
        <telerik:RadGridView Name="radGridView" 
                     AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Name" 
                                    DataMemberBinding="{Binding Name}" />
                <telerik:GridViewDataColumn Header="Established" 
                                    DataMemberBinding="{Binding Established}">
                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate>
                            <telerik:RadDateTimePicker                                 
                                InputMode="DatePicker"
                                telerik:DropDownButtonExtensions.FocusContentOnOpen="True"
                              
                                SelectedValue="{Binding Established, Mode=TwoWay}"/>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellEditTemplate>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn Header="Stadium" 
                                    DataMemberBinding="{Binding StadiumCapacity}" 
                                    DataFormatString="{}{0:N0}" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>

Michał
Top achievements
Rank 1
 asked on 06 Apr 2023
1 answer
130 views

I'm having trouble entering Korean in the RichTextBox demo.

This issue seems to be happening in the latest version of Windows 11. (22H2 22621.1413)

This is not a problem with WPF native RichTextBox controls.

 

Vladislav
Telerik team
 answered on 06 Apr 2023
0 answers
179 views

Hello, everyone,

I found different acts of ToolTip in different computers, the tooltip will drift to the left a little in some computers. Do you have any clue about the reason? How can we solve this? Is there any configuration of computer system we should adjust?

Lily
Top achievements
Rank 1
 updated question on 06 Apr 2023
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?