Telerik Forums
UI for WPF Forum
0 answers
107 views

Dear Team!

I have the same issue on WPF, what i had in WinForm earlier.

You helped me on this link:
https://www.telerik.com/forums/space-less-custom-language-in-syntax-editor

I have to achieve the same under WPF, but i had no success so far. I tried to modify the WF code to make it work under a WPF class (vb.net)

but it doenst color those keywords which are connected to other strings. Examples and everything are available on the above link, i can share more if you want.

Thank you for the support

Peter

Peter
Top achievements
Rank 1
Iron
Iron
 asked on 25 Sep 2022
2 answers
132 views

Hello,

I am experiencing the same issue, that "Guy" has mentioned in his thread:

Link to question

However, the topic is discontinued. So the issue is, that when i use classic field style, everything looks good. My object has 4 properties, and the event FieldLoaded is called 4 times - see counter at the bottom.

However, when i apply FieldStyle (in my case FieldStyle="{StaticResource PropertyGridFieldStyleCustom}") to make property name appear over editor instead of on the left on it, the fieldloaded event is called 8 times - twice for each property.

I am attaching my solution where You can see the example im referring to. Is there something im doing wrong, or it may be a RadPropertyGrid bug?

Thanks for any help.

Andrzej
Top achievements
Rank 1
Iron
 answered on 23 Sep 2022
1 answer
287 views

I'm trying to update the bound property in a RadNumericUpDown by calling UpdateSource on the Value BindingExpression.  But the Value property hasn't been updated from the internal TextBox yet.  Is there some way I can tell the RadNumericUpDown to update the Value property using the Text in its internal TextBox? 

Dilyan Traykov
Telerik team
 answered on 22 Sep 2022
0 answers
110 views

Question cancelled

francis
Top achievements
Rank 1
 updated question on 22 Sep 2022
1 answer
287 views

In our applications we have several large ResourceDictionaries that contain many images that we then use throughout our applications.

For example, we have a "refresh" icon defined as :

<BitmapImage x:Key="Refresh32Image" UriSource="Refresh32px.png"/>

Then whenever we want to show that image on any WPF window we just put this:

 <Button x:Name="RefreshButton">
        <Image Source="{StaticResource Refresh32Image}"/>
</Button>

We have this in dozens of different windows etc.

We are now switching over to use Telerik Implicit Theming and we can make this work by adding an IconSource at the top of each window and changing the buttons content to :

<Image Style="{StaticResource Image16Style}"
       Source="{telerik:IconResource IconRelativePath=Refresh32px.png,IconSources={StaticResource CommonIconSources}}"/>
 

This does work, however, requires a LOT of code changes throughout the application. We have hundreds of buttons that would all need updating with various different image filenames etc. etc.

So ideally we want to change the Bitmap Image Resource instead, so that we don't have to change the button content, and of course, any new buttons that we want to add are much simpler.

However, we cannot find  way to do this.  We have tried this, so instead of declaring the Refresh32Image as a BitmapResource, instead it's an IconResource

<telerik:IconResource x:Key="Refresh32Image" IconRelativePath="Refresh32px.png" IconSources="{StaticResource CommonIconSources}" />

However, this won't compile because when we then try to use that resource in a button, WPF shows:

'Telerik.Windows.Controls.IconResourceExtension' is not a valid value for property

We also tried declaring the image resource as 


<BitmapImage x:Key="Refresh32Image" UriSource="{telerik:IconResource IconRelativePath=Refresh32px.png,IconSources={StaticResource CommonIconSources}}"/>

But this is rejected as 

Property 'UriSource' or property 'StreamSource' must be set.

 

I'm sure there must be an easy way of declaring BitmapImage resources just once and reusing them wherever we need using IconResources, so can you help us work out how to do this?

Masha
Telerik team
 answered on 21 Sep 2022
1 answer
104 views

Hi,

I'm trying to identify the best approach / best control that I could bind its "value" to a property that may change type during runtime.

For instance it could look like:  Value = [ ... ],  where [ ... ]  would be the value of a boolean, string or decimal.

Simple code could be:

<StackPanel Orientation="Horizontal">
                            <TextBlock Text="Value ="/>
                            <!--< Control something ??? Value={Binding ActiveItem, Mode=TwoWay} />-->

                        </StackPanel>

I guess some type of generic control where I  can set a Template Selector. But in addition I would be great if I could set an EditTemplateSelector as well,  so I can use a different control for editing

GridViewCell has this kind of behavior but I would need it out of a RadGridView

Thank you for your help and ideas.

Stenly
Telerik team
 answered on 20 Sep 2022
2 answers
219 views

Hello,

After update Telerik components we have problem with filtering control.

After first click we don't see text fields  (filtering1.png)

But after second click everything is ok   (filtering2.png).

 

Previously we have used Telerik v 2012.

 

Dilyan Traykov
Telerik team
 answered on 20 Sep 2022
1 answer
111 views

I have referred to example solutions and projects provided by Progress/Telerik.

I have a sample WPF application which refers to the Csharp.ReportLibrary project,  and under Csharp.ReportLibrary I have added a Folder which contains .cs component design file(CardSummary.cs in below image). This design file is the ui of my report.

The question is , is it possible to bind this component with a object data source at run time? where the object can be of any user defined type?

Currently by right clicking the object datasource icon and changing properties of DataMember and DataSource, I am only able to bind it to a method within a class file which returns list. (CardSummaryActivity.cs is the class as shown in below image)

 

 

Todor
Telerik team
 answered on 19 Sep 2022
0 answers
85 views

Hi,

We are using the Telerik diagram control as a templating tool to allow users to create various templates, and then use the template to generate labels for records in the DB by replacing placeholders in the template text.  

This is simple enough, serialize the template, make replacements, load the template again using WPF diagram control and export as image.  However, when you wish to export thousands of images, this can become time consuming.

The Diagram control being a control needs a UI thread, WPF has a single UI thread, and as such even if  you add multiple instances of the diagram control, you can not technically achieve parallel processing since everything has to go through the serialized Dispatcher of the UI thread.

So my question is, is their a way perhaps through some Diagram API wherein batch processing can be achieved in a multithreaded scenario? Do note that we have elements that need to resize automatically (auto width / height)  based on the new content that is merged, also the SVG export of Diagram has limits since it does not support all elements such as images.

The only solution so far that we think might work is to create multiple instances of the program itself, however for many reasons, I would rather prefer a multi-threaded solution in a single application.

Mrugendra
Top achievements
Rank 1
Iron
 asked on 17 Sep 2022
1 answer
162 views

Hello,

is it possible to use a ListCollectionView for BindingToICustomTypeDescriptor in a RadGridView?

If yes how?

I attached the project from Telerik and tryed it out with an ListCollectionView but the data will not show properly.

Dilyan Traykov
Telerik team
 answered on 15 Sep 2022
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?