Telerik Forums
UI for WPF Forum
3 answers
114 views
I would like to know if there is a way to bind the columns to a enum value, and when I drag/drop the tiles between the columns, the correct enum assigned to that column is attributed to the object.
Dinko | Tech Support Engineer
Telerik team
 answered on 16 Dec 2020
1 answer
760 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
273 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
294 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
209 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
198 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
514 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
283 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
84 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
177 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
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?