Telerik Forums
UI for WPF Forum
3 answers
157 views

When set IsRightToLeft in Culture then ApplicationMenu is not correct.

 

Arkady
Top achievements
Rank 1
Iron
Iron
 updated answer on 11 Nov 2021
1 answer
117 views
How can I prevent the bars below the bottom of the Z Axis from being displayed? In the attached image I don't want the data below 10°c to display. It seems to draw everything from Z=0. I need it to draw from Z>=10 (which is the bottom value of the Z Axis)
Martin Ivanov
Telerik team
 answered on 10 Nov 2021
1 answer
120 views
Hello,

In RadPivotFieldList, how could we remove the NumberFormat part on the Dropdwnlist in the values part?

Thanks
Stenly
Telerik team
 answered on 10 Nov 2021
1 answer
352 views

 

I have a requirement to override the Minimize function of the radWindow (clicking the Minimize Button on the Title Bar). Instead of the Window Minimizing to the bottom left of the screen I intend to simply reduce the Height of the Window leaving just the Title Bar showing (in its original position). Restoring the Window will again simply set the Height back to its original value to expand the Window….

So, I need to set Handle = true when the SC_MINIMIZE Message is received, this will prevent the Window from minimizing, then i can implement my own code to change the Height of the Window… This is the code so far…

        private void RadWindow_HostCreated(object sender, HostWindowCreatedEventArgs e)

        {

            e.HostWindow.SourceInitialized += HostWindow_SourceInitialized;

        }

 

        private void HostWindow_SourceInitialized(object sender, EventArgs e)

        {

            var source = PresentationSource.FromVisual((Window)sender) as HwndSource;

            if (source != null) source.AddHook(new HwndSourceHook(HandleMessages));

        }

 

        private IntPtr HandleMessages(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)

        {

            if (msg == 0x0112 && ((int)wParam & 0xFFF0) == 0xF020)

            {

                handled = true;

            }

 

            return IntPtr.Zero;

        }

 

However, while I seem to be catching Windows Messages in the HandleMessages function, it is not setting handled = true; when i click the Windows Minimize Button

Any help would be appreciated…

Martin Ivanov
Telerik team
 answered on 10 Nov 2021
1 answer
296 views

Hi (QwQ),

I met a problem that "IsReadOnly=true" of GridViewDataColumn doesn't work.

<telerik:GridViewDataColumn Header="IsChecked" DataMemberBinding="{Binding IsChecked}"
                        Style="{DynamicResource GridViewColumnStyle}" IsReadOnly="True">
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
            <CheckBox IsChecked="{Binding IsChecked}" Style="{DynamicResource CheckBoxStyle}"/>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
I can still edit the checkbox in column.
Stenly
Telerik team
 answered on 09 Nov 2021
1 answer
412 views

Hi(=^_^=),

I have set the Style and EditorStyle of GridViewCheckBoxColumn.

Here it is:

<telerik:GridViewCheckBoxColumn Header="IsChecked1" 
DataMemberBinding="{Binding IsChecked}"
Style="{DynamicResource GridViewColumnStyle}" 
EditorStyle="{DynamicResource CheckBoxStyle}">
</telerik:GridViewCheckBoxColumn>

But the CheckBoxStyle only works when it is being edited.

Like this:

So..Which style can i set to change the normal style of checkbox?

Martin Ivanov
Telerik team
 answered on 09 Nov 2021
1 answer
134 views

Hello,

In my WPF application I want to integrate a page indicator, like everybody knows from mobile devices, to browse/slide through e.g. some images or pages/controls and the dots at the bottom indicating the current position.

I saw that Telerik provides something like that for Xamarin (SlideView: https://docs.telerik.com/devtools/xamarin/controls/slideview/slideview-overview). 

Is there something similar for WPF I just don't see? Or any suggestion how I can realize this easily (e.g. with bit of restyling of another control)? Or maybe is it possible to host Xamarin control in WPF?

 

Thanks

Martin Ivanov
Telerik team
 answered on 09 Nov 2021
0 answers
169 views

Hi,

I just upgrade my solution from telerik wpf 2021.1.325.310  to 2021.3.914.45. I performed the wizard upgrade but after restart vs2019, and rebuild of solution I get runtime exceptions like this: 
'The invocation of the constructor on type 'Telerik.Windows.Controls.RadBusyIndicator' that matches the specified binding constraints threw an exception.' Line number '50' and line position '3'.
If I delete RadBusyIndicator:

''The invocation of the constructor on type 'Telerik.Windows.Controls.RadNotifyIcon' that matches the specified binding constraints threw an exception.' Line number '56' and line position '5'.'

And so on...
I restored old version and I'm waiting for help.
Thank you

Luigi

 

Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
 asked on 09 Nov 2021
0 answers
139 views

I use diagram each Tab Item.

And I tried save & load diagram.

it worked. but, connection's Source/Target is null when I change the tab.

then I checked DeserializeLink in GraphSource.

'base.DeserializeLink(connection, info)' is not return Source/Target.

Help me,,,

 

in GraphSource.

public override void SerializeLink(Link link, SerializationInfo info)
        {
            this.ClearCache();
            base.SerializeLink(link, info);
        }
        public override Link DeserializeLink(IConnection connection, SerializationInfo info)
        {
            return base.DeserializeLink(connection, info);
        }
kim
Top achievements
Rank 1
Iron
 asked on 09 Nov 2021
1 answer
507 views

Hello Forum!

I have the following method in a RadGridView-behavior which expands all groups in my RadGridView (just like method ExpandAllGroups()):


      private static void onExpandAllCommandBoolChanged( DependencyObject dependencyObject, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs )
      {
         var radGridView = ( (RadGridViewExpandAndCollapseAllGroupingsCommandBehavior) dependencyObject ).AssociatedObject;

         var groups = radGridView?.Items.Groups;
         if( groups == null )
            return;
         foreach( var group in groups )
         {
            radGridView.ExpandGroup( (IGroup)group );
         }

         // easier: ((RadGridViewExpandAndCollapseAllGroupingsCommandBehavior)dependencyObject).AssociatedObject.ExpandAllGroups();
      }

My task is to expand the same RadGridView-groups after a reload of the RadGridView-data that were expanded before the reload.
To accomplish this, i need the IsExpanded-property of the RadGridView-group, but it isn't available in type Group.

Which datatype can I use to get the IsExpanded-property?
I use WPF and MVVM.

Thank you!

Martin Ivanov
Telerik team
 answered on 08 Nov 2021
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?