Telerik Forums
UI for WPF Forum
1 answer
261 views
How do I disable or remove the New Folder button in OpenFileDialog?
Dinko | Tech Support Engineer
Telerik team
 answered on 24 May 2021
1 answer
330 views
Is it possible to set a watermark when no value has ben entered in a RadNumericUpDown input box in Telerik UI for WPF?
Dinko | Tech Support Engineer
Telerik team
 answered on 24 May 2021
5 answers
748 views

 

Hello

I've attached an example, and the ContentTemplateSelector will cause a designer exception.
Build and debug works fine.

First. In using navigation I want to control everything by binding in MainWindowViewModel.
Each UserControl is a different screen.
However, the combo box and button are the same.
So, when you move the view, the data should remain the same.

This is actually implemented using RadTabControl.
Tab control does not have a hierarchy, so I want to use navigation.

[TabControl Sample.xaml] : This is automatically set to the datacontext in the window if you do not set the datacontext in the usercontrol.

<telerik:RadTabItem Header="View 1" Width="60" >
    <telerik:RadTabItem.Content>
        <userControl:UserControlView/>
    </telerik:RadTabItem.Content>
</telerik:RadTabItem>

Second. In the current source, Hierarchy 1 and 2 are set to View(UserControlMain - This is not really necessary.).
I want to open only the hierarchy by clicking on the hierarchy. (view maintained, only IsExpanded)

However, if you don't put a View in the selector, an exception will be thrown.
"Must disconnect specific child from current parent Visual before attaching to new parent Visual."
This made it happen when you choose Hierarchy 3.

Images are also attached for easy understanding.

I will be glad for your help.
thank you.

 

Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
 answered on 24 May 2021
1 answer
172 views

I use WPF RadRichTextBox to show/edit HTML-document containing images having restricted access. To show HTML-document inside RadRichTextBox I use HtmlFormatProvider.
In the case of using WebBrowser control, it is enough to call InternetSetCookie to pass user token to the WebRequest used there.

How can I pass the user token to the HTTP request used inside RadRichTextBox to get an image?

Dimitar
Telerik team
 answered on 21 May 2021
1 answer
364 views

Hi,

I have a RadCartesianChart with a ScatterSeriesDescriptor.

My ViewModel of the data points do not have any values that I can bind directly. Instead, I want to bind to properties within another class.

 

Example:

 Public Class PointViewModel

 Public Property MyValueInX As ValueContainer

 Public Property MyValueInY As ValueContainer

End Class

 

Public Class ValueContainer

 Public Property ValueForDiagram As Double

End Class

 

When I try to bind ValueForDiagram I get a System.ArgumentException: "Could not find property 'MyValueInX .ValueForDiagram ' for type 'TelerikTestProjekt.ViewModel.PointViewModel'".


My XAML:

            <telerik:ScatterSeriesDescriptor ItemsSourcePath="Points" XValuePath="MyValueInX.ValueForDiagram" YValuePath="MyValueInY.ValueForDiagram ">

Is there any way I can set this binding?

Best Regards

Sandra

Martin Ivanov
Telerik team
 answered on 21 May 2021
1 answer
168 views
Do we have Ignoreuppercase as a property for the richtext spell check?
Dimitar
Telerik team
 answered on 21 May 2021
2 answers
482 views

Hi,

I created a new net5.0 WPF application in Visual Studio (16.9.6) and installed the Progress UI for WPF Extension. I added the Telerik Nuget source and installed the package "Telerik.UI.for.Wpf.NetCore.Xaml". I added the Telerik namespace (http://schemas.telerik.com/2008/xaml/presentation) to my main view and I am able to add controls from that namespace in the XAML code just fine including Intellisense support. I also see all the Telerik controls in the VS Toolbox and I can drag controls onto my view in the designer.

But, all the controls are invisible in the designer and also at runtime. No errors during design time or compilation whatsoever. Seems like there is no default theme applied at all. I already tried to explicitly set a theme but all the controls stay invisible. Default WPF controls work without any issue...

I've been working with Telerik and WPF for 10 years now and I never had a similar issue so far. Docs and forums did not lead me on the right trace unfortunately. Help would be much appreciated!

Thanks!

Marcel
Top achievements
Rank 1
Iron
 answered on 20 May 2021
1 answer
710 views

 I would like to set the value of the RadRichTextBox to a property in the view Model. and similarly I would like to get the valueof the Property and bind it to the RadRichTextBox in the WPF UI.

What would be the Syntax used in the XAML file?

I have something like this below in the XAML file.

 <telerik:RadRichTextBox x:Name="radRichTextBox" DocumentInheritsDefaultStyleSettings="True" AcceptsTab="True" AcceptsReturn="True" ScrollViewer.VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" IsSelectionMiniToolBarEnabled="True" IsSpellCheckingEnabled="True" Language="en-US" IsContextMenuEnabled="True" Margin="250,190,121,70" VerticalScrollBarVisibility="Hidden"/>
  <telerik:TxtDataProvider Source="{Binding Path=Customer.Notes,ElementName=radRichTextBox, Mode=TwoWay}"/>

 

But the value is not bound to the Path "Customer.Notes" in the viewmodel.

Tanya
Telerik team
 answered on 19 May 2021
0 answers
245 views

Hi,

My ViewModel implements INotifyDataErrorInfo

I want to use an attached property Validation.ValidationAdornerSiteFor

RadComboBox highlights an error but tooltip is empty

Is there something I need to enable?

                            <telerik:RadComboBox
                                ItemsSource="{Binding Path=ItemsSource}" Validation.ValidationAdornerSiteFor="{Binding ElementName=selectorBehavior}"
                                AllowMultipleSelection="True"
                                MultipleSelectionSeparator=";">
                                <b:Interaction.Behaviors>
                                    <behaviors:SelectedItemsMultiSelectorBehavior x:Name="selectorBehavior" SelectedItems="{Binding Path=SelectedItems, Mode=TwoWay}" />
                                </b:Interaction.Behaviors>
                            </telerik:RadComboBox>


Alex
Top achievements
Rank 1
 asked on 19 May 2021
2 answers
319 views

Hi to all,

Maybe someone can help me with my problem. Thank you all in advance for any suggestions.

When I programmatically add a row/item to the RadGridView I have always am empty row above the last row:

 

Here is my XAML code:

            <Border x:Name="m_borderOperands" BorderThickness="3" CornerRadius="5" >
                <telerik:RadGridView x:Name="m_dgOperands" Margin="1" Background="#FF2C2C2C" CanUserGroupColumns="False" 
                                     telerik:StyleManager.Theme="Expression_Dark" BorderThickness="0"
                                     SelectionMode="Extended" SelectionUnit="Mixed" CanUserSortColumns="False" 
                                     CanUserSelectColumns="True" ShowColumnFooters="False" ShowColumnHeaders="True" 
                                     IsFilteringAllowed="False" CanUserFreezeColumns="False" CanUserDeleteRows="False" 
                                     ClipboardPasteMode="Cells" ClipboardCopyMode="Cells" 
                                     ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                     ScrollViewer.VerticalScrollBarVisibility="Visible" 
                                     ShowGroupPanel="false" EditTriggers="TextInput" GroupRenderMode="Flat" 
                                     FontSize="14" MaxWidth="2560" MaxHeight="1600" ValidatesOnDataErrors="InEditMode" 
                                     EnableColumnGroupsVirtualization="True" EnableColumnVirtualization="True" 
                                     EnableRowVirtualization="True" CanUserInsertRows="False" EnableStickyGroupHeaders="False" 
                                     ColumnsSelectionButtonVisibility="Collapsed" ShowGroupFooters="True"
                                     FrozenColumnsSplitterVisibility="Collapsed" />
            </Border>

Here are my GridView styles:

    <UserControl.Resources>
        <Style TargetType="telerik:GridViewHeaderCell">
            <Setter Property="LayoutTransform">
                <Setter.Value>
                    <RotateTransform Angle="-90" />
                </Setter.Value>
            </Setter>
            <EventSetter Event="PreviewMouseUp" Handler="GridViewHeaderCell_PreviewMouseUp"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
            <Setter Property="Margin" Value="1,10,1,3"/>
        </Style>

        <Style TargetType="telerik:GridViewHeaderRow">
            <Setter Property="MinHeight" Value="10"/>
        </Style>
        <Style TargetType="telerik:GridViewFooterRow">
            <Setter Property="Background" Value="#FF303030"/>
        </Style>
        <Style TargetType="telerik:GridViewCell">
            <Style.Triggers>
                <Trigger Property="Value" Value="1">
                    <Setter Property="Background" Value="#4CFFFF00" />
                </Trigger>
                <Trigger Property="Value" Value="2">
                    <Setter Property="Background" Value="#4C32CD32" />
                </Trigger>
            </Style.Triggers>
        </Style>
        <Style TargetType="telerik:CommonColumnHeader">
            <Setter Property="FontSize" Value="14"/>
            <Setter Property="FontWeight" Value="Bold"></Setter>
            <Setter Property="Background" Value="#FF303030" />
        </Style>
        <DataTemplate x:Key="GridViewCellImageTextTemplate">
            <StackPanel Orientation="Horizontal">
                <Image Source="{Binding Image}" Margin="0,0,5,0" MaxHeight="16" MaxWidth="16" />
                <TextBlock Text="{Binding InfoText}"/>
            </StackPanel>
        </DataTemplate>
    </UserControl.Resources>

And here my c# code:
        private void AddStepToDataGrid(SelmoCreatorStepBase stepBase, int idxInsert)
        {
            if (idxInsert >= 0)
            {
                m_dgOperands.Items.Insert(idxInsert, stepBase);
            }
            else
            {
                m_dgOperands.Items.Add(stepBase);
            }
        }

I appreciate any help.

Best regards

Christoph

cwider
Top achievements
Rank 1
Iron
 answered on 18 May 2021
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?