When set IsRightToLeft in Culture then ApplicationMenu is not correct.
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…
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>
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?
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
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
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)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!