Hi
We're using a WPF RadWindow to customize a titlebar with an image and keeping the other behaviors and we application is used in one or two monitors.
After implementation, when restore and maximize in the second monitor, the window's height override the taskbar and exceeds the second monitor and show the RadWindow in the primary monitor.
How correct this problem?
Best Regards
Pierre Voigt
OBS:
* The second monitor is above the primary monitor.
* The telerik's version is 2018.1.220.45.
* We're using the Fluent theme.
* Sample:
MainWindow.xaml.cs
01.
using
Telerik.Windows.Controls;
02.
03.
namespace
RadWindowSample
04.
{
05.
public
partial
class
MainWindow : RadWindow
06.
{
07.
public
MainWindow()
08.
{
09.
InitializeComponent();
10.
}
11.
}
12.
}
MainWindow.xaml
01.
<
telerik:RadWindow
x:Class
=
"RadWindowSample.MainWindow"
03.
xmlns:x
=
"http://schemas.microsoft.com/winfx/2006/xaml"
04.
xmlns:d
=
"http://schemas.microsoft.com/expression/blend/2008"
05.
xmlns:mc
=
"http://schemas.openxmlformats.org/markup-compatibility/2006"
06.
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
07.
xmlns:local
=
"clr-namespace:RadWindowSample"
08.
mc:Ignorable
=
"d"
09.
MinHeight
=
"600"
10.
MaxHeight
=
"900"
11.
MinWidth
=
"900"
12.
WindowState
=
"Maximized"
13.
Height
=
"450"
Width
=
"800"
>
14.
<
Grid
>
15.
16.
</
Grid
>
17.
</
telerik:RadWindow
>
App.xaml.cs
01.
using
System.Windows;
02.
03.
namespace
RadWindowSample
04.
{
05.
public
partial
class
App : Application
06.
{
07.
protected
override
void
OnStartup(StartupEventArgs e)
08.
{
09.
var mainWindow =
new
MainWindow();
10.
mainWindow.Show();
11.
base
.OnStartup(e);
12.
}
13.
}
14.
}
App.xaml
01.
<
Application
x:Class
=
"RadWindowSample.App"
03.
xmlns:x
=
"http://schemas.microsoft.com/winfx/2006/xaml"
04.
xmlns:local
=
"clr-namespace:RadWindowSample"
05.
>
06.
<
Application.Resources
>
07.
<
ResourceDictionary
>
08.
<
ResourceDictionary.MergedDictionaries
>
09.
<!--Telerik.Windows.Controls is used by all assemblies -->
10.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.xaml"
/>
11.
12.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/System.Windows.xaml"
/>
13.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Input.xaml"
/>
14.
15.
<!-- Requires: System.Windows.xaml -->
16.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Navigation.xaml"
/>
17.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Chart.xaml"
/>
18.
19.
<!-- Requires: Telerik.Windows.Controls.Input -->
20.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Data.xaml"
/>
21.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.DataVisualization.xaml"
/>
22.
23.
<!-- Requires: Telerik.Windows.Controls.Navigation -->
24.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Docking.xaml"
/>
25.
26.
<!-- Requires: Telerik.Windows.Controls.Input -->
27.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.GridView.xaml"
/>
28.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.ImageEditor.xaml"
/>
29.
30.
<!-- Requires: Telerik.Windows.Controls.Input, Telerik.Windows.Controls.Navigation -->
31.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.RibbonView.xaml"
/>
32.
<!--<ResourceDictionary Source="/Telerik.Windows.Themes.Office2016;component/Themes/Telerik.Windows.Controls.RibbonView.xaml" />-->
33.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Diagrams.xaml"
/>
34.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Diagrams.Extensions.xaml"
/>
35.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Documents.xaml"
/>
36.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Spreadsheet.xaml"
/>
37.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.GanttView.xaml"
/>
38.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Pivot.xaml"
/>
39.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.PivotFieldList.xaml"
/>
40.
41.
<!-- Used for PdfViewerControl -->
42.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.FixedDocumentViewers.xaml"
/>
43.
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.FixedDocumentViewersUI.xaml"
/>
44.
</
ResourceDictionary.MergedDictionaries
>
45.
<
Style
TargetType
=
"local:MainWindow"
BasedOn
=
"{StaticResource RadWindowStyle}"
/>
46.
</
ResourceDictionary
>
47.
</
Application.Resources
>
48.
</
Application
>