Projekt-Anfragen: Tel: 07022/9319004 info@CodeDocu.de Software Entwicklung in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

Telerik, wpf: RibbonWindow: Der Background überdeckt die Application-Title Leiste

Problem: wenn ich bei einem Telerik RibbonWindow im inneren Stackpanel den Hintergrund farbig mache, dann überdeckt es die Buttons des Fensters
Zum Minimieren

<StackPanel Background="Wheat" >

Hier ein Screenshot




<telerik:RadRibbonWindow xmlns:_usercontrols="clr-namespace:wpf_Calendar._usercontrols" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
.. Height="445" Width="646" ResizeMode="CanResizeWithGrip" >
<StackPanel Background="Wheat" >

Inner-Elements

</StackPanel>

</telerik:RadRibbonWindow>




Gelöst: wenn man das RibbonView im RibbonWindow betreibt, dann versucht das Ribbonwindow die Bar hochzuschieben aus optischen gründen.
Da das Aero Theming aber einen unsichtbaren bereich hat, wird dieser vom Grid oder Panel Background überzeichnet oder kommt eben durch.

Mein Vorschlag: den Background mit einem untergeordneten Grid ausführen.
http://www.telerik.com/forums/radribbonwindow---windowstate

Thank you for getting back to us. I would like to apologize for misunderstanding your issue. Indeed when you set the RibbonView in a panel with a solid color Background, the panel background will hide part of the RibbonWindow chrome.

When the RibbonWindow detects that there is a RibbonView in its content, it tries to move it up so that the RibbonView title can be displayed in the window's TitleBar. When the RibbonView is inside a panel, the panel is moved up as well but if it has a solid color background, the Window chrome is not entirely visible. This is the expected result and we advice our customers to place theRibbonView directly in a RibbonWindow if they want to have a smooth integration between the components. If you have to wrap the ribbon in a panel, then you will have to make sure to set a Transparent background on the panel.




Also so:
Hier habe ich den Workbereich ummantelt

RibbonWindow
Telerik.RibbonView
<StackPanel x:Name="pnlWorkarea" Background="Beige" VerticalAlignment="Stretch" >
..
</StackPanel>





Die Telerik.Ribbonbar


<telerik:RadRibbonView x:Name="ctlRibbonbar" VerticalAlignment="Top" ApplicationName="Calendar Scheduler"
ContentHeight="100" QuickAccessToolBarPosition="NotHosted"
MinimizeButtonVisibility="Visible" IsMinimized="True" >
..



Und das Hauptfenster:

<telerik:RadRibbonWindow xmlns:_usercontrols="clr-namespace:wpf_Calendar._usercontrols" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Primitives="clr-namespace:Telerik.Windows.Controls.RibbonView.Primitives;assembly=Telerik.Windows.Controls.RibbonView" x:Class="wpf_Calendar.MainWindow"
Height="445" Width="646" ResizeMode="CanResizeWithGrip" Title="All Calendar" Icon="_images/icons/iconCalendar.ico"
>
<StackPanel >

<_usercontrols:ucRibbonbar x:Name="ucRibbonbar" BorderThickness="1" />
<StackPanel x:Name="pnlWorkarea" Background="Beige" VerticalAlignment="Stretch" >

<StackPanel x:Name="pnlButtons" Orientation="Horizontal" Height="43" Background="WhiteSmoke" >
<Button x:Name="BtnTest" Content="Test" HorizontalAlignment="Left" Margin="10,7,0,0" VerticalAlignment="Top" Width="75" Click="BtnTest_Click" Height="22"/>
<Button x:Name="BtnLoad" Content="Laden" HorizontalAlignment="Left" Margin="10,7,0,0" VerticalAlignment="Top" Width="75" Click="BtnLoad_Click" Height="22"/>
<Button x:Name="BtnSave" Content="Speichern" HorizontalAlignment="Left" Margin="10,7,0,0" VerticalAlignment="Top" Width="75" Click="BtnSave_Click" Height="22"/>
<TextBox x:Name="tbxEingabe" HorizontalAlignment="Left" Height="24" Grid.Row="1" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="120" MouseRightButtonDown="tbxEingabe_MouseRightButtonDown" Margin="0,6,0,0" RequestBringIntoView="tbxEingabe_RequestBringIntoView"/>
<Button x:Name="BtnToRecord" Content="ToRecord" HorizontalAlignment="Left" Margin="10,7,0,0" VerticalAlignment="Top" Width="75" Click="BtnToRecord_Click" Height="22" />
<Button x:Name="BtnShowScrollViewer" Content="Refresh Scroll" HorizontalAlignment="Left" Margin="10,7,0,0" VerticalAlignment="Top" Width="75" Click="BtnShow_Scrollviewer_Click" Height="22" />
</StackPanel>

<Grid x:Name="ctlGrid_Calender_Main" Loaded="ctlGrid_Calender_Main_Loaded" Background="red" Margin="10,10,10,10" ShowGridLines="True"
VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Visible" SelectiveScrollingGrid.SelectiveScrollingOrientation="Both" >
<Grid.RowDefinitions>
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions >
</Grid.ColumnDefinitions>
<ScrollViewer VerticalScrollBarVisibility="Auto" x:Name="ctlGrid_Calender_Main_Scrollbars" >
<Border Height="10" Background="blue" />
</ScrollViewer>
</Grid>
</StackPanel>
</StackPanel>

</telerik:RadRibbonWindow>


Mobile
»
Telerik: RadDataGrid No custom resource loader set
»
Gelöst: Telerik, wpf: RibbonWindow: Der Background überdeckt die Application-Title Leiste
»
Anzeigen einer Liste mit Teleriks Listview
»
Telerik SpreadSheet Control

.

Jobs, Projekte, Angebote für Freiberufler, Selbstständig an Info@CodeDocu.de