Telerik Forums
UI for WPF Forum
2 answers
185 views

I tried this "How to" here: https://docs.telerik.com/devtools/wpf/controls/radnavigationview/how-to/customize-open-close-animations

and it works. However, the animation is applied only to the bit when the nav. view is in compact mode. I need it to go all the way to completely hidden or collapsed.

I opened the xaml theme file 

Telerik.Windows.Controls.Navigation.xaml

from here

C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2021\Themes.Implicit\WPF40\Office2016\Themes

The file is 9000 lines.

On what element instead of "PART_PaneRoot" should I apply the animation so that the complete nav. view is hidden:

<Setter Property="animation:AnimationManager.AnimationSelector">
                        <Setter.Value>
                            <animation:AnimationSelector>
                                <animation:ResizeAnimation AnimationName="ResizePaneAnimation" TargetElementName="PART_PaneRoot" Duration="0:0:3" ResizeMode="Horizontal">
                                    <animation:ResizeAnimation.Easing>
                                        <ExponentialEase EasingMode="EaseOut" />
                                    </animation:ResizeAnimation.Easing>
                                </animation:ResizeAnimation>
                                <animation:SlideAnimation AnimationName="MinimalPaneOpenAnimation" TargetElementName="PART_PaneRoot" Duration="0:0:0.2" PixelsToAnimate="250" Orientation="Horizontal" Direction="In" />
                                <animation:SlideAnimation AnimationName="MinimalPaneCloseAnimation" TargetElementName="PART_PaneRoot" Duration="0:0:0.2" PixelsToAnimate="250" Orientation="Horizontal" Direction="Out"/>
                                
                            </animation:AnimationSelector>
                        </Setter.Value>
                    </Setter>

Vladimir
Top achievements
Rank 1
Veteran
 answered on 09 Apr 2021
10 answers
2.5K+ views

Hello

How can I bind the selected Items from the Combobox when using "AllowMultipleSelection"?

ItemTemplate: <CheckBox Content="{Binding Name}" IsChecked="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadComboBoxItem}, Path=IsSelected}" />

Sincerly

A.Kasar

 

Dinko | Tech Support Engineer
Telerik team
 answered on 09 Apr 2021
1 answer
114 views

    Hi,

 

i need to add some sorting and filtering methods, we were testing to create a grid and put in on the back of the listview so we can use the headers as sort&filter buttons (attached an image to show how we use it).

 

 

the thing is, that we are having like a ton of information, and the grid/listview just hangs when we set the property of the datasource of both lists.

 

how would be the best way to get the filtering and sorting for a listbox?

is there a way to replicate the buttons functionality of the grid on plain buttons? maybe a toolbar?

 

 

thanks for any advice...

 

 

Martin Ivanov
Telerik team
 answered on 09 Apr 2021
6 answers
166 views

 

I am working with the RadRichTextBox Document History, and I noticed that whenever I change the Depth of the Undo stack, or change IsEnabled, the Redo stack is cleared, but the Undo stack is preserved.  Is there any way to preserve the Redo stack during these changes?

For example:

myRadRichTextBox.Document.History.Depth = newDepthLimit;

and

myRadRichTextBox.Document.History.IsEnabled = false;

 

will both clear the Redo stack.  I am trying to prevent a callback command that manipulates a bookmark from adding an element to the history, but if I use either of these methods, I lose the Redo stack.

 

Thanks,

Bob

 

Tanya
Telerik team
 answered on 09 Apr 2021
4 answers
381 views

We have a custom Find/Replace dialog for our RadRichTextBox.  As part of the replacement of text, we have this code:

var startPos = Document.Selection.Ranges.First.StartPosition;
var endPos = Document.Selection.Ranges.First.EndPosition;
 
this.CurrRichTextBox.Document.CaretPosition.MoveToPosition(endPos);
 
this.CurrRichTextBox.Document.Selection.SetSelectionStart(startPos);
this.CurrRichTextBox.Document.Selection.AddSelectionEnd(endPos);
 
StyleDefinition style = new StyleDefinition();
style.CopyPropertiesFrom(this.CurrRichTextBox.CurrentEditingStyle);
 
this.CurrRichTextBox.Delete(false);
this.CurrRichTextBox.Document.Insert(s, style);

 

However, this code uses the deprecated Insert method, and this also causes the history to be cleared.  What is the now correct method for replacing text and maintaining the styling of the text?  Can you please provide a code example?  I have tried to search through documentation, but I could not find any examples.

Thanks, Bob

 

 

 

 

Bob
Top achievements
Rank 3
Iron
Iron
Veteran
 answered on 07 Apr 2021
1 answer
95 views

Hello,

I want to drag multiple items in RadTreeView and drop to Grid (NOT GridView).

Is there any previous threads about it or code samples?

 

Martin Ivanov
Telerik team
 answered on 07 Apr 2021
5 answers
329 views

Hello.

 

First of all, please check the image.

My question is this.

1. The textbox in the splitbutton has no function. Can the ColorPicker be displayed in the same way as the arrow function?

    Arrow button down when clicking text box.

 

 

2. Can I change the location of Themes colors and Standard Colors?

     MainPalette and StandardPalette properties exist, but cannot be reversed.

 

 

 

Is there a solution?

Thanks.

Dilyan Traykov
Telerik team
 answered on 07 Apr 2021
7 answers
503 views

Hello

I created the Editor after watching the demo.

When an error occurs, clicking the button first opens the Editor window, but an error occurs.

-------This Error-------------

System.Windows.Markup.XamlParseException: ''Cannot set unknown member 'System.Windows.Controls.TextBox.IsReadOnly'.'

Line number '1301' and line position '21'.'

------------------------

There is no content of Editor Xaml. 

There is no error when creating an instance. Error appears when using ShowDialog!

 

 

var window = new EditorView(); // Pass

window.showdialog(); // <<  Error

 

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/KickOff;component/Resources/NoXaml/NoXamlTemplate.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
 
    <Grid>
        <telerik:RadColorEditor x:Name="radColorEditor" />
        <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Right"
                    Height="32" Margin="0 0 11 11">
            <Button Content="OK" Width="60" Margin="0 0 10 0"
                    Click="OnClickOkCommand"  => Using DialogResult = true, Close()
                    />
            <Button Content="Cancel"  Width="60"
                    Click="OnClickCancelCommand"  => Using DialogResult = false, Close()
                    />
        </StackPanel>
    </Grid>

 

I used telerik noxaml version 2021_1_308, office 2019 themes.

refer : telerik controls, controls.input 

themes.implicit wpf40 office2019 : system.windows.xaml, telerik.controls.xaml, telerik.controls.input.xaml

 

Thanks.

Vicky
Telerik team
 answered on 07 Apr 2021
2 answers
136 views

In my WPF application, I'm using Office theme (2016 or 2019). It causes that some of controls I'm using has an odd style. For example,  Xceed DoubleUpDown/IntegerUpDown etc. has an additional internal border. I'd like to avoid overriding the entire control template.

 

How to solve this problem?

Thanks!

Lukasz
Top achievements
Rank 1
Iron
 answered on 07 Apr 2021
2 answers
116 views
public class BaseType
{
      public int Id { get; set; }
}
  
public class ChildType1 : BaseType
{
      public string Name1 { get; set; }
}
  
public class ChildType2 : BaseType
{
      public string Name2 { get; set; }
}
  
// View model
  
public class WindowViewModel : ViewModelBase
{
     public ObservableCollection<BaseType> Items { get; }
}

I have a problem with binding to ItemSource from ViewModel with ObservableCollection. It's a generic collection of base type e.g. BaseType. Moreover I have a few child classes inherited from BaseType. They contain loads of additional properties of simple types such like double, int, string. For each child type I have another DataTemplate with different column definitions. When I'm opening the window, System.ArgumentException is throwing from Telerik with message "Property with name XXX cannot be fround on type BaseType". Due to this problem, GridView's performance is unacceptable (in release mode either).

How to solve that problem?
Thanks for help!

Lukasz
Top achievements
Rank 1
Iron
 answered on 07 Apr 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?