Telerik Forums
UI for WPF Forum
4 answers
228 views

Hello,

I am having an issue with reordering multiple selected items in a RadListBox. I am trying to select multiple items in a RadListBox, and drag them within the same RadListBox to reorder them. However, it doesn't always work. When I start to drag, sometimes I will be able to reorder the items (cursor indicator and drop visual indicator in the RadListBox show normally), and sometimes it won't. The drag visual always works normally, but it looks like AllowDrop is immediately false sometimes (not sure if that is what is actually happening, but it's the best way I can describe it). I have a test RadListBox for theme visual feedback and testing, and the behavior is happening there. Here is the code I am using:

<telerik:RadListBox SelectionMode="Extended">
    <telerik:RadListBoxItem Content="Item 1"
                    Style="{DynamicResource ReorderableListItemStyle}"/>
    <telerik:RadListBoxItem Content="Item 2"
                    Style="{DynamicResource ReorderableListItemStyle}"/>
    <telerik:RadListBoxItem Content="Item 3"
                    Style="{DynamicResource ReorderableListItemStyle}"/>
    <telerik:RadListBoxItem Content="Item 4"
                    Style="{DynamicResource ReorderableListItemStyle}"/>
    <telerik:RadListBoxItem Content="Item 5"
                    Style="{DynamicResource ReorderableListItemStyle}"/>
    <telerik:RadListBoxItem Content="Item 6"
                    Style="{DynamicResource ReorderableListItemStyle}"/>
    <telerik:RadListBoxItem Content="Item 7"
                    Style="{DynamicResource ReorderableListItemStyle}"/>
    <telerik:RadListBoxItem Content="Item 8"
                    Style="{DynamicResource ReorderableListItemStyle}"/>
    <telerik:RadListBox.DragDropBehavior>
        <telerik:ListBoxDragDropBehavior/>
    </telerik:RadListBox.DragDropBehavior>
</telerik:RadListBox>

 

And here is the code for ReorderableListItemStyle:

<Style x:Key="ReorderableListItemStyle"
    TargetType="telerik:RadListBoxItem"
    BasedOn="{StaticResource RadListBoxItemStyle}">
    <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
</Style>

 

Is there something I am missing? I am using Telerik WPF R3 2020.

Dinko | Tech Support Engineer
Telerik team
 answered on 05 Nov 2020
9 answers
234 views
Hi, i need to understand how to implement following thing. We are unable to navigate with Down key to Exit button in the backstage. I think this is a bug. I do not provide any source because it can be seen also in the example provided by your company (look at the attached picture). When user comes with keyboard to "Help" (look in the picture) he is unable to go down to buttons that are only "command" without anything to show on the right side of the backstage menu. This is a BUG. I should be possible to go there and in the area on the right should not be shown anything
Martin Ivanov
Telerik team
 answered on 04 Nov 2020
4 answers
410 views
Does anyone know how to Hide the Control Panel at the top of a RadGridView control? This is these are the controls that allow you to show and hide the different columns and such. 
Martin Ivanov
Telerik team
 answered on 03 Nov 2020
3 answers
143 views

I'm trying to pass  a Telerik CrystalPalette to a Sub but I get an error "...is class type and can not be used as an expression".  Hints?

Public Function DoSomething() As Boolean
 
   ApplyThemeFontSizes(CrystalTheme)
 
End Function
 
Private Sub ApplyThemeFontSizes(Of T)()
 
        Try
 
            T.Palette.FontSizeXS = 8 + Me.FontOffset
            T.Palette.FontSizeS = 10 + Me.FontOffset
            T.Palette.FontSize = 12 + Me.FontOffset
            T.Palette.FontSizeL = 14 + Me.FontOffset
            T.Palette.FontSizeXL = 16 + Me.FontOffset
 
        Catch ex As Exception
 
            ' TODO: Log error to file (possible the Theme doesn't have a "Palette")
 
        End Try
 
    End Sub
Martin Ivanov
Telerik team
 answered on 03 Nov 2020
6 answers
503 views

NotifyIcon does not showing for Core project with TargetFramework net452 or higher

TestNotifyIcon.csproj

<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net452</TargetFramework>
    <UseWPF>true</UseWPF>
    <ApplicationIcon>Dashboard.ico</ApplicationIcon>
  </PropertyGroup>
  <ItemGroup>
    <None Remove="Dashboard.ico" />
  </ItemGroup>
  <ItemGroup>
    <Reference Include="Telerik.Windows.Controls">
      <HintPath>..\Telerik.Windows.Controls.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Controls.Navigation">
      <HintPath>..\Telerik.Windows.Controls.Navigation.dll</HintPath>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Resource Include="Dashboard.ico" />
  </ItemGroup>
</Project>

MainWindow.xaml

<Window x:Class="TestNotifyIcon.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"
  Title="MainWindow" Height="450" Width="800"
  x:Name="_this">
 <Grid>
  <TextBlock x:Name="MessageTextBlock"
       TextAlignment="Center"
       VerticalAlignment="Center"
       Text="Test"/>
  <telerik:RadNotifyIcon x:Name="NotifyIcon"
          ShowTrayIcon="True"
          TooltipContent="{Binding Title, ElementName=_this, Mode=OneWay}"
          TrayIconSource="/TestNotifyIcon;component/Dashboard.ico"
          PopupActivationMouseEvent="All"
          PopupContent="{Binding Text, ElementName=MessageTextBlock, Mode=OneWay}">
  </telerik:RadNotifyIcon>
 </Grid>
</Window>

Vladimir Stoyanov
Telerik team
 answered on 03 Nov 2020
5 answers
1.7K+ views

Hello All,

      After hours of digging through the forums and help pages and examples, I have NOT found a complete example of how to bind a RadRichTextBox to a viewmodel property.  I would like to see a complete example , all the XAML and all the code in the viewmodel to setup the binding.  I think it should be fairly easy , all I want to do is display some simple text from my database (it's a property in the viewmodel) in a RadRichTextBox...  I'm sure I'll have to use a TxtFormatProvider for the control, but I can't seem to find a complete example of how to do this to bind to a viewmodel property.  The viewmodel property gets set on the viewmodels object instantiation .  I have looked at the Developer Focused Examples and found the data binding example , but that's not a View-View Model example.  

Thanks in advance,

Kevin Orcutt
Senior Software Engineer

Wurth Electronics ICS, Inc.
7496 Webster St., Dayton, OH 45414
Tel: 937.415.7700
Toll Free: 877.690.2207
Fax: 937.415.7710
Email: kevin.orcutt@we-ics.com
http://www.we-ics.com
 

Tanya
Telerik team
 answered on 03 Nov 2020
6 answers
253 views

Since you folks don't provide any Telerik Label or TextBox controls, we have to use the Microsoft default controls which I then find out will NOT be themed via StyleManager per this link.  

If using the XML approach, how are we supposed to use themes without key support for two of the most fundamental and basic controls like Label and TextBox?

It makes the entire purpose of "Application level" themes useless without this basic support.

Am I missing something?

Rob.

 

 

Rob A.
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 03 Nov 2020
3 answers
294 views

It seems when I set a theme globally (using Implicit) and new Window I show doesn't have the theme applied to the actual Window ... like Title bar color, font, windows background ... they all seem to inherit default and not my assigned theme (i.e. GreenTheme).  The telerik controls on the Window do indeed use my assigned theme.

Does Telerik UI WPF suite provide an alternative or is this a bug?

Cheers, Rob.

Vicky
Telerik team
 answered on 02 Nov 2020
5 answers
1.2K+ views

Hello.

Help me with next problem, how i can rotate column header text of GridViewDataColumn on 90 degree?

I am create columns in programm code

column = new GridViewDataColumn
{
                   ColumnGroupName = args.ColumnDef.ColumnGroupName,

                    DataMemberBinding = new Binding(args.ColumnDef.Member)
                    {
                        Mode = BindingMode.TwoWay,
                        UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged
                    },
                    IsReadOnlyBinding = new Binding(args.ColumnDef.IsReadOnlyMember)
                    {
                        Converter = new NullToBooleanConverter {IsInverted = true}
                    },

                    Header = args.ColumnDef.Header,
                    HeaderTextWrapping = TextWrapping.Wrap,
                    IsVisible = true,
};

 

Also, how i can add borders to cells?

Anton
Top achievements
Rank 1
Veteran
 answered on 02 Nov 2020
2 answers
611 views

Hi,

I need to draw arrows on my ImageEditor.
These arrows must be drawn in multiple directions (N, NE, E, SE, S, SW, W, NW).
How can I accomplish that?

I implemented a Custom Shape tool and in my GetShapeGeometry() function I return the arrow Path figure.
But my shape seems to be crushed...

Any idea?

 

Thanks.

Fabien
Top achievements
Rank 1
 answered on 30 Oct 2020
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?