using GroupStyle ,and setting : ScrollViewer.CanContentScroll="False",when click the item,
within the group,the ScrollViewer auto scroll up and down,don't using VirtualizingPanel.
but the microsoft ListBox is OK!
the code like the follwoing:
<telerik:RadListBox Width="250" ItemsSource="{Binding Data.View}" SelectionMode="Single"
ItemTemplate="{StaticResource ListBoxTemplate}"
ScrollViewer.CanContentScroll="False">
<telerik:RadListBox.GroupStyle>
<GroupStyle>
<GroupStyle.ContainerStyle>
<Style TargetType="{x:Type GroupItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type GroupItem}">
<Expander IsExpanded="True"
ExpandDirection="Down">
<Expander.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=Name}"
VerticalAlignment="Center" />
<TextBlock Text="{Binding Path=ItemCount, StringFormat=Count:{0}}"
VerticalAlignment="Center"
Margin="5,0,0,0" />
</StackPanel>
</Expander.Header>
<ItemsPresenter />
</Expander>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</GroupStyle.ContainerStyle>
</GroupStyle>
</telerik:RadListBox.GroupStyle>
</telerik:RadListBox>
Most commonly the exception message is "Input file or data stream does not conform to the expected file format specification".
This appears because of the glyphs font used in the different controls.
To work this around you can use two approaches:
RadGlyph.GetRegisteredFonts();
var dictionary =
typeof
(RadGlyph).GetField(
"registeredTypefaces"
, BindingFlags.NonPublic | BindingFlags.Static)?.GetValue(
null
)
as
Dictionary<
string
, Typeface>;
dictionary?.Clear();
RadGlyph.RegisterFont(
new
FontFamily(
new
Uri(
"pack://application:,,,/WpfApp3;component/TelerikFont/"
, UriKind.RelativeOrAbsolute),
"./#TelerikWebUI"
),
"TelerikWebUI"
);
Enable RadBitmap creation with different than the 96 DPI.
Hi there
This is a very impotent control in our company.
However, we need to implement a spell checker as you already have in RTF.
Eliezer Kaplansy PhD
CTO
Makeshet Information Systems
when use the RadTransitionControl's SlideAndZoomTransition effect for the RadTabControl, the radComboBox Multiple Selection will lost in the tabItem。
the radComboBox data is from the mvvm binding,after change the tabitem,the Multiple Selection become single selection.
the RadTabControl's style is following:
...
<ControlTemplate x:Key="TabControlTemplate" TargetType="telerik:RadTabControl">
<Grid>
<telerik:RadDockPanel LastChildFill="True">
<telerik:LayoutTransformControl x:Name="HeaderDockedElement" telerik:RadDockPanel.Dock="Top">
<Grid SnapsToDevicePixels="True">
<Border x:Name="HeaderBackground" Background="{TemplateBinding HeaderBackground}" Visibility="{TemplateBinding BackgroundVisibility}"/>
<telerik:RadDockPanel Panel.ZIndex="10">
<telerik:LayoutTransformControl x:Name="AdditionalContentTransform" Margin="0" telerik1:RadDockPanel.Dock="Right">
<ContentPresenter x:Name="AdditionalContentElement" Content="{TemplateBinding AdditionalContent}"/>
</telerik:LayoutTransformControl>
<ToggleButton x:Name="DropDownButtonElement"
Visibility="Collapsed"
telerik:RadDockPanel.Dock="Right"
Style="{TemplateBinding DropDownButtonStyle}"
ClickMode="Press"
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
<telerik:RadContextMenu.ContextMenu>
<telerikTabControl:DropDownMenu x:Name="DropDownMenuElement"
StaysOpen="False"
Placement="Bottom"
Style="{TemplateBinding DropDownStyle}"
ItemTemplate="{TemplateBinding ItemDropDownContentTemplate}"
ItemTemplateSelector="{TemplateBinding ItemDropDownContentTemplateSelector}"
DisplayMemberPath="{TemplateBinding DropDownDisplayMemberPath}"/>
</telerik:RadContextMenu.ContextMenu>
</ToggleButton>
<RepeatButton x:Name="LeftScrollButtonElement" Style="{StaticResource ScrollButtonStyle}">
<telerik:RadGlyph Glyph="{StaticResource GlyphArrowChevronLeft}"/>
</RepeatButton>
<RepeatButton x:Name="RightScrollButtonElement" Style="{StaticResource ScrollButtonStyle}" telerik:RadDockPanel.Dock="Right">
<telerik:RadGlyph Glyph="{StaticResource GlyphArrowChevronRight}"/>
</RepeatButton>
<ScrollViewer x:Name="ScrollViewerElement"
Style="{StaticResource EmptyScrollViewerStyle}"
VerticalScrollBarVisibility="Disabled"
BorderThickness="0"
IsTabStop="False"
HorizontalScrollBarVisibility="{Binding (ScrollViewer.HorizontalScrollBarVisibility), RelativeSource={RelativeSource TemplatedParent}}">
<ItemsPresenter/>
</ScrollViewer>
</telerik:RadDockPanel>
</Grid>
</telerik:LayoutTransformControl>
<Border x:Name="ContentBorder"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Mode=TwoWay}"
Background="{TemplateBinding Background}"
Padding="{TemplateBinding Padding}">
<Grid>
<telerik:RadTransitionControl x:Name="ContentElement"
Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsContentPreserved,Converter={StaticResource InvertedBooleanToVisibilityConverter}}"
Content="{TemplateBinding SelectedContent}"
ContentTemplate="{TemplateBinding SelectedContentTemplate}"
ContentTemplateSelector="{TemplateBinding SelectedContentTemplateSelector}"
Duration="00:00:00.350">
<telerik:RadTransitionControl.Transition>
<local:TransitionSetFP>
<local:TransitionSetFP.BackTransition>
<telerik:SlideAndZoomTransition SlideDirection="LeftToRight" MinZoom="1" StartSlideAt="0.01" MinAlpha="1"/>
</local:TransitionSetFP.BackTransition>
<local:TransitionSetFP.ForwardTransition>
<telerik:SlideAndZoomTransition SlideDirection="RightToLeft" MinZoom="1" StartSlideAt="0.01" MinAlpha="1"/>
</local:TransitionSetFP.ForwardTransition>
</local:TransitionSetFP>
</telerik:RadTransitionControl.Transition>
</telerik:RadTransitionControl>
<Grid x:Name="ContentElementsPanel" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsContentPreserved, Converter={StaticResource BooleanToVisibilityConverter}}"/>
</Grid>
</Border>
</telerik:RadDockPanel>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="DropDownDisplayMode" Value="Visible">
<Setter Property="Visibility" Value="Visible" TargetName="DropDownButtonElement"/>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="DropDownDisplayMode" Value="WhenNeeded"/>
<Condition SourceName="ScrollViewerElement" Property="ComputedHorizontalScrollBarVisibility" Value="Visible"/>
</MultiTrigger.Conditions>
<Setter Property="Visibility" Value="Visible" TargetName="DropDownButtonElement"/>
</MultiTrigger>
<Trigger Property="TabStripPlacement" Value="Top">
<Setter Property="BorderThickness" TargetName="ContentBorder" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource ThicknessToOrientedThicknessConverter}, ConverterParameter=LeftBottomRight}"/>
</Trigger>
<Trigger Property="TabStripPlacement" Value="Left">
<Setter TargetName="DropDownMenuElement" Property="HorizontalOffset" Value="0"/>
<Setter TargetName="DropDownMenuElement" Property="VerticalOffset" Value="-3"/>
<Setter Property="telerik:RadDockPanel.Dock" Value="Left" TargetName="HeaderDockedElement"/>
<Setter Property="telerik:RadDockPanel.Dock" Value="Left" TargetName="AdditionalContentTransform"/>
<Setter Property="telerik:RadDockPanel.Dock" Value="Left" TargetName="DropDownButtonElement"/>
<Setter Property="LayoutTransform" TargetName="HeaderDockedElement">
<Setter.Value>
<RotateTransform Angle="-90"/>
</Setter.Value>
</Setter>
<Setter Property="BorderThickness" TargetName="ContentBorder" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource ThicknessToOrientedThicknessConverter}, ConverterParameter=TopRightBottom}"/>
</Trigger>
<Trigger Property="TabStripPlacement" Value="Right">
<Setter TargetName="DropDownMenuElement" Property="HorizontalOffset" Value="0"/>
<Setter TargetName="DropDownMenuElement" Property="VerticalOffset" Value="3"/>
<Setter Property="LayoutTransform" TargetName="HeaderDockedElement">
<Setter.Value>
<RotateTransform Angle="90"/>
</Setter.Value>
</Setter>
<Setter Property="BorderThickness" TargetName="ContentBorder" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource ThicknessToOrientedThicknessConverter}, ConverterParameter=TopLeftBottom}"/>
</Trigger>
<Trigger Property="TabStripPlacement" Value="Bottom">
<Setter TargetName="DropDownMenuElement" Property="HorizontalOffset" Value="3"/>
<Setter Property="telerik:RadDockPanel.Dock" Value="Left" TargetName="AdditionalContentTransform"/>
<Setter Property="telerik:RadDockPanel.Dock" Value="Left" TargetName="DropDownButtonElement"/>
<Setter Property="LayoutTransform" TargetName="HeaderDockedElement">
<Setter.Value>
<RotateTransform Angle="180"/>
</Setter.Value>
</Setter>
<Setter Property="LayoutTransform" TargetName="AdditionalContentTransform">
<Setter.Value>
<RotateTransform Angle="180"/>
</Setter.Value>
</Setter>
<Setter Property="BorderThickness" TargetName="ContentBorder" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness, Converter={StaticResource ThicknessToOrientedThicknessConverter}, ConverterParameter=TopRightLeft}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<Style TargetType="telerik:RadTabControl">
<Setter Property="mat:MaterialAssist.ShadowDepth" Value="Depth1"/>
<Setter Property="TextOptions.TextRenderingMode" Value="ClearType"/>
<Setter Property="BorderBrush" Value="{telerik1:FluentResource ResourceKey=BasicBrush}"/>
<Setter Property="HeaderBackground" Value="{telerik1:FluentResource ResourceKey=MainBrush}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Background" Value="{telerik1:FluentResource ResourceKey=PrimaryBackgroundBrush}"/>
<Setter Property="MinWidth" Value="5"/>
<Setter Property="MinHeight" Value="20"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="IsTabStop" Value="False"/>
<Setter Property="FontFamily" Value="{telerik1:FluentResource ResourceKey=FontFamily}"/>
<Setter Property="FontSize" Value="{telerik1:FluentResource ResourceKey=FontSize}"/>
<Setter Property="Foreground" Value="{telerik1:FluentResource ResourceKey=MarkerBrush}"/>
<Setter Property="ItemsPanel">
<Setter.Value>
<ItemsPanelTemplate>
<Primitives:TabWrapPanel/>
</ItemsPanelTemplate>
</Setter.Value>
</Setter>
<Setter Property="DropDownButtonStyle" Value="{StaticResource DropDownButtonStyle}"/>
<Setter Property="DropDownStyle" Value="{StaticResource DropDownMenuStyle}"/>
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
<Setter Property="Template" Value="{StaticResource TabControlTemplate}"/>
</Style>
The control should be customizable so you can place also a content different than an image as in the WPF native splash screen support (https://docs.microsoft.com/en-us/dotnet/framework/wpf/app-development/how-to-add-a-splash-screen-to-a-wpf-application).
NEW Kanban Control LIKE https://www.devexpress.com/Subscriptions/New-2016-2.xml#winforms https://www.syncfusion.com/products/wpf/sfkanban
Requirements:
- Multiple screen RDP-Session with option "Show windowcontents while dragging" turned off.
- RadTabbedwindow with AllowTransparency = false (might not be necessary)
When dragging a maximized TabbedWindow to a different screen into maximized mode, it is allways maximized on the primary screen.
Dragging it on the target screen so that it is not maximized and then clicking maximize works.
The issue only appears when the mentiond setting in the RDP-Session is turned off.
Currently FTP network locations are not present in RadFileDialogs.
Implement support for them similar to MS Dialogs.
RadComboBox dropdown list leave a blank after the last item!
look the attachment.
For the Pivot control,if the group header width greater than the first column width,when start the app,
the first column width will expand the group header width(like the attach file "Start.png"),
instead of it self width (like the attach file "ResizeColumn.png",it is our desired),moreover,when resize the column width,like the attach file "ResizeColumn.png",
then Collapse,the result like the attach file "Collapse.png",but not our desired the group header width(should not cover the text).
private void UpdateHeadersFooters(RadDocument document) { foreach (Section section in document.Sections) { if (section.Headers.Default.Body != null) { this.UpdateFields(section.Headers.Default.Body); } if (section.Headers.First.Body != null) { this.UpdateFields(section.Headers.First.Body); } if (section.Headers.Even.Body != null) { this.UpdateFields(section.Headers.Even.Body); } if (section.Footers.Default.Body != null) { this.UpdateFields(section.Footers.Default.Body); } if (section.Footers.First.Body != null) { this.UpdateFields(section.Footers.First.Body); } if (section.Footers.Even.Body != null) { this.UpdateFields(section.Footers.Even.Body); } } } private void UpdateFields(RadDocument radDocument) { RadDocumentEditor editor = new RadDocumentEditor(radDocument); editor.ChangeAllFieldsDisplayMode(FieldDisplayMode.Code); }
Good morning,
at the moment we are using third parts libraries to show RTSP/MPEG video flow in our app.
After the new RadWebCam control release, we hoped it was possibile to specify another video flow for example from IP camera.
May I suggest to implement the possibility to specify a different stream source in the RadWebCam?
Or maybe to implement a new control called "RadPlayer" that is similar to RadWebCam but permits to set a custom stream?
Because snapshot/video recording feature of RadWebCam are very interesting also for a RTSP flow.
Thank you
Best Regards
Enrico
Current SDK Sample code supports only WPF 40.
Adding support for wpf45 will make more convenient way to work with Samples.
Sample dode can include new wpf 45 features