I'm wondering if you can suggest an approach to achieve an effect I want (which I describe below). I don't think so but I thought I would check.
I'm using a NumericUpDown to show length values of type double. I want to be able to make the Up/Down buttons change the displayed value to an even multiples of a a whole number, regardless of the starting value or the direction (up vs down) of the button they hit. Is there a way to do this?
For example, suppose the initial value is 1.23.
If the user hits the "Up" button, I want the value to change from 1.23 to 2.00. But the next time he/she hits it I want it to change from 2.00 to 3.00
But if the user hits the "Down" button, I want the value to change from 1.23 to 1.00. The next time, I want it to change from 1.00 to 0.00
If there were separate "SmallChange" properties for the up and down directions, this would be easy. I could bind them and do the math whenever the value changes. But I only have the one "SmallChange" property.
If there were some way for me to insert a "CoerceValue" callback into the "Value" property, I could do that. But I don't believe that is possible. If it is, please tell me how
Is there any way to achieve this?
Are the WPF-controls completely comaptible with .net core 3? I developed a project. The xaml designer was working at first but sudddenly crashed(1st image) and then Visual Stutio 2019 crashed(2 image). When I reopen the project, xaml designer still crashed, then VS 2019 crashed.
With Framwork 4.7 is everything OK.
Hi there,
I hope you can help me with this, attached a screenshot that shows what I am looking for.
Thanks,
Bahram Afsharipoor
Hi All
I would like to prevent the transition control from showing any transition/animation under certain conditions. For example, the content is bound to an enum field, for certain enum values I dont want it to transition.
I have tried using IValueConverter
public class DispatchContentTransitionConverter : IValueConverter { public TransitionProvider TransitionForward { get; set; } public TransitionProvider TransitionBackward { get; set; } public TransitionProvider NoTransition { get; set; } public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) return NoTransition; KeyValuePair<int, string> OSDispatchStatus = (KeyValuePair<int, string>)value; if (OSDispatchStatus.Key == SettingsConsts.OS_DispatchStatus_ReadytoBookCollection) { return TransitionForward; } else { return NoTransition; } } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } }
But for this option I cannot set a "No Transition" transition
Second option tried: Setting Duration of the transition on TransitionStatusChanged, but this option only applies to the "Next" transition called not the current
private void MainTransControl_TransitionStatusChanged(object sender, Telerik.Windows.Controls.TransitionControl.TransitionStatusChangedEventArgs e) { OrderDispatchModel VM = DataContext as OrderDispatchModel; if (VM != null ) { if (VM.OSDispatchStatus.Key == SettingsConsts.OS_DispatchStatus_ReadytoBookCollection) { this.MainTransControl.Duration = new TimeSpan(0, 0, 1); } else { this.MainTransControl.Duration = new TimeSpan(0, 0, 0); } } else { this.MainTransControl.Duration = new TimeSpan(0, 0, 0); } }
Anyone have any ideas of how to implement this?

Hi everybody.
I'm facing an issue with telerik's RadRibbonView for WPF controls. I set the focus through code by calling ribbonView.Focus(), but afterwards I can not move focus to buttons inside ribbon view. I tried setting IsTabStop on ribbon buttons manually, but it didn't work either. Sample Xaml code is as follows:
<telerik:RadRibbonWindow x:Class="WpfRadRibbonFocusIssue.MainWindow" xmlns:local="clr-namespace:WpfRadRibbonFocusIssue" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Title="MainWindow" Width="800" Height="450" mc:Ignorable="d"> <telerik:RadRibbonWindow.Resources> <Style x:Key="FocusedStyle"> <Setter Property="Control.Template"> <Setter.Value> <ControlTemplate> <Rectangle Stroke="Blue" StrokeThickness="1" /> </ControlTemplate> </Setter.Value> </Setter> </Style> </telerik:RadRibbonWindow.Resources> <DockPanel> <telerik:RadRibbonView x:Name="ribbonView" DockPanel.Dock="Top" FocusVisualStyle="{StaticResource FocusedStyle}"> <telerik:RadRibbonTab Header="Tab 01"> <telerik:RadRibbonGroup Header="Group 01"> <telerik:RadRibbonButton IsTabStop="True" Text="Hello" /> <telerik:RadRibbonButton IsTabStop="True" Text="Hello 2" /> <telerik:RadRibbonButton IsTabStop="True" Text="Hello 3" /> </telerik:RadRibbonGroup> </telerik:RadRibbonTab> <telerik:RadRibbonTab Header="Tab 02"> <telerik:RadRibbonGroup Header="Group 02"> <telerik:RadRibbonButton Text="Command 01" /> <telerik:RadRibbonButton Text="Command 02" /> <telerik:RadRibbonButton Text="Command 03" /> </telerik:RadRibbonGroup> </telerik:RadRibbonTab> </telerik:RadRibbonView> </DockPanel></telerik:RadRibbonWindow>
Hi there,
I have a DataTemplate that is added as TitleTemplate to a RadDocumentPane - as you see below. So I need to access to RadToggleButton which is inside my DataTemplate in code behind, can you please tell me how can i do that?
<Window.Resources> <DataTemplate x:Key="SyncTemplate"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition /> </Grid.ColumnDefinitions> <ContentPresenter Content="{Binding}" Margin="0,5,0,0"/> <telerik:RadToggleButton x:Name="xScrollSync" Grid.Column="1" HorizontalAlignment="Right" Content="XScroll Sync" Width="75" /> </Grid> </DataTemplate> </Window.Resources>
<Grid><telerik:RadDocking Margin="0 60 0 30" HorizontalAlignment="Stretch" Height="auto" HasDocumentHost="False" Width="auto" VerticalAlignment="Stretch"><telerik:RadSplitContainer telerik:ProportionalStackPanel.RelativeSize="1000, 200"><telerik:RadSplitContainer x:Name="ganttViewSplit" InitialPosition="DockedLeft" HorizontalAlignment="Stretch" Height="auto" VerticalAlignment="Stretch" telerik:ProportionalStackPanel.RelativeSize="800,200"> <telerik:RadPaneGroup> <telerik:RadDocumentPane x:Name="ganttDoc" TitleTemplate="{StaticResource SyncTemplate}"> <telerik:RadDocumentPane.Content> <Grid> </Grid> </telerik:RadDocumentPane.Content> </telerik:RadDocumentPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer></telerik:RadDocking></Grid>
Ok, stupid beginner question here, but how do I visually edit what goes into each tab for WPF UI Desktop using Visual Studio 2019?
When I drag the Tab Control into the design window, it places it just fine. But, if I try to add anything, the items do not show up per tab. Is there some trick to be able to edit a multi-tab XAML document visually?
