Telerik Forums
UI for WPF Forum
1 answer
780 views

windows 10 WPF .Net Core 3.1 Telerik 2020 R3 Sp1:

<Window x:Class="DemoAll.Modules.Telerik.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="350" Width="525">
        <Grid>
                <telerik:RadButton x:Name="btTest" Content="test" Height="60" Width="120"></telerik:RadButton>
        </Grid>
</Window>

error:

SeverityCodeDescriptionProjectFileLineSuppression State
ErrorCS0234The type or namespace name 'Windows' does not exist in the namespace 'XXXXX' (are you missing an assembly reference?)

 

==========================================================================

no  x:Name="btTest"

        <Grid>
                <telerik:RadButton  Content="test" Height="60" Width="120"></telerik:RadButton>
        </Grid>

is ok!!!

Martin Ivanov
Telerik team
 answered on 15 Dec 2020
1 answer
284 views

add x:Name="xxxx" show error "" error CS0234: The type or namespace name 'Windows' does not exist in the namespace '' (are you missing an assembly reference?)

 

source:https://share.dmca.gripe/EUqiplofuPzhN3Kv.rar


Martin Ivanov
Telerik team
 answered on 15 Dec 2020
5 answers
308 views

I have the following WPF code

<telerik:RadBusyIndicator x:Name="ThumbnailLoadingIndicator" BusyContent="Loading clip..." IsIndeterminate="True" IsTabStop="False">
   <!-- Some content -->
</telerik:RadBusyIndicator>

 

and as you can see on the attached screenshot it is not rendered properly (i.e. the spinning circles are cut on top and bottom). I have tried to use various sizes and alignment but none of them are working so I guess there is an extra property I need to tweak (or there is a bug).

FYI I am using the fluent theme.

Dinko | Tech Support Engineer
Telerik team
 answered on 15 Dec 2020
2 answers
222 views

Reading the article here, it seems to indicate that setting of the font via control reference will not change the font on an imported document. 

https://docs.telerik.com/devtools/wpf/controls/radrichtextbox/frequently-asked-questions

 

Dim appPathAndFile As String = System.AppDomain.CurrentDomain.BaseDirectory & "\TreeScapesLog.txt"
Dim docProvider As New TxtFormatProvider
Using input As Stream = File.OpenRead(appPathAndFile)
    Dim docLogFile As RadDocument = docProvider.Import(input)
    rtbLogFile.Document = docLogFile
End Using

 

What that article suggests is the TxtFormatProvider strips the content of all formatting ... but it seems to assign a very large default font size.  How do I go about changing that font size when using TxtFormatProvider.Import ... I couldn't find any examples?

Cheers, Rob.

 

Dimitar
Telerik team
 answered on 14 Dec 2020
3 answers
213 views

Hello

I have upgraded my version from 2019 R3 to 2020 R3 and have found that the GridView layouts saved in the old version will not longer load in the new version.

 

Here is my existing code:

string layout; // loaded from file
PersistenceManager manager = new PersistenceManager();
 byte[] byteArray = Encoding.ASCII.GetBytes(layout);
MemoryStream stream = new MemoryStream(byteArray);
manager.Load(this.RadGridView, stream);

 

When trying to load the layout it fails with:

Exception thrown: 'System.NullReferenceException' in Telerik.Windows.PersistenceFramework.dll Object reference not set to an instance of an object.

 

If have tried enabling AllowCrossVersion, but this then fails with:

Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll

 

The only way I can get it to work is by following the recommendation in this post Here, it then loads as expected and without any errors:

PersistenceManager manager = new PersistenceManager();
 byte[] byteArray = Encoding.ASCII.GetBytes(this.layout.Replace("Version=2019.3.1023.45", "Version=2020.3.1020.45"));
MemoryStream stream = new MemoryStream(byteArray);
manager.Load(this.RadGridView, stream);

 

This isn't a satisfactory fix in the long run. Could you please advise how I should be handling this?

 

Thanks

Dave

Dinko | Tech Support Engineer
Telerik team
 answered on 10 Dec 2020
17 answers
538 views

Hi,

 

I want to modify the RadImageEditorUI controls placement and remove some icons form controls. can you any one tell me how to remove File open and save control ?

 

Regards

Hema

Martin Ivanov
Telerik team
 answered on 09 Dec 2020
5 answers
297 views

Reading this article ...

Palette Font Size

Assume I have my Font Sizes setup as in the sample:

Office2016Palette.Palette.FontSizeS = 10; 
Office2016Palette.Palette.FontSize = 12; 
Office2016Palette.Palette.FontSizeL = 14;
Office2016Palette.Palette.FontFamily = new FontFamily("Segoe UI");

 

Suppose I want to set the FontSize for a specific control:

<telerik:RadRadioButton x:Name="rbBiomeOption" Grid.Row="0" Grid.Column="0" Content="Standard Biome" GroupName="Biomes" Margin="4" CornerRadius="8" FontWeight="Bold"/>

 

I'd like to add to the RadRadioButton something like 

<telerik:RadRadioButton x:Name="rbBiomeOption" Grid.Row="0" Grid.Column="0" Content="Standard Biome" GroupName="Biomes" Margin="4" CornerRadius="8" FontWeight="Bold" FontSize="FontSizeL"/>

 

Which is not valid, but that's essentially my objective.

Any ideas?

Cheers, Rob.

Martin Ivanov
Telerik team
 answered on 09 Dec 2020
6 answers
100 views

After reading the documentation on the ImageEditor I find a significant lack of documentation on how to use the many "commands".  In my case the HueShiftTool?

Image Editor Docs

I'd love to see code samples contained in the documentation rather than links to generic projects that need to be installed.  I usually just need the basic "idea" behind how to implement, but I see nothing on "HueShiftTool".  There is an "Effect" property but no idea what I need to do beyond that?

My objective is to simply apply a Hue Shift to the loaded image in the Image Editor.  I don't need all the UI aspects, just execute a hue shift on the loaded image.

Any suggestions welcome.

Cheers, Rob.

Rob A.
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 09 Dec 2020
8 answers
182 views

Have a project that uses Telerik UI for WPF libraries.

Researching an up coming customer request: they want to submit a request from the current project to SQL and write the output directly to Excel without UI component.

Question using the current Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport.for.Wpf or Telerik.Windows.Documents.SpreadsheetStreaming. Can I  do SQL query take the result/data store object and write the output directly to Excel or must I use a UI like RadGridView then export to Excel?

I will need to set the Excel worksheet format before import data.

 

herb
Top achievements
Rank 1
Veteran
Iron
 answered on 09 Dec 2020
1 answer
624 views

Hello,

we're currently updating our application to use Telerik components in order to make use of implicit styling.
I'm making good progress so far but am stuck at this one.

We're currently using the Office2019 theme in the Light color variation.
The problem I'm facing is with the selection of a TreeViewItem and the involved change of the Foreground color that goes along with it.

For TreeViewItems that use a string as a header this works just fine. The item i selected, the Background changes to blue and the Foreground to white. Perfetly readable.

However if I use a grid (containing a TextBlock) as the Header the foreground of the TextBlock remains black and does not change to white.

I tried binding the Foreground color of the TextBlock to the Foreground color of the parent TreeViewItem like so:

Binding binding = new Binding("Foreground");
binding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(RadTreeViewItem), 1);
tb.SetBinding(TextBlock.ForegroundProperty, binding);

 

However this does not work. Possible because the Foreground property of the TreeViewItem is never changed, but only the Foreground property of the header:

<!-- IsSelected general setters -->
<Trigger Property="IsSelected" Value="True">
    <Setter TargetName="Header" Property="Foreground" Value="{telerik1:Office2019Resource ResourceKey=CheckedForegroundBrush}"/>
    <Setter TargetName="BorderVisual" Property="Background" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(helpers:ThemeHelper.CheckedBrush)}"/>
</Trigger>

 

I tried to add another setter to this trigger and set the Foreground property of the TreeViewItem. This kind of works, but unfortunately propagates through all child items of a TreeViewItem.

Any suggestions on how my desired behaviour could be implemented?

Vladimir Stoyanov
Telerik team
 answered on 08 Dec 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?