or
Contextualgroup.IsActive =
true
;
<
telerik:RadRibbonWindow
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
x:Class
=
"TestRibbon.MainWindow"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
Loaded
=
"Window_Loaded"
Background
=
"Transparent"
>
</
telerik:RadRibbonWindow
>
public
partial
class
MainWindow : RadRibbonWindow
{
public
MainWindow()
{
InitializeComponent();
}
private
void
Window_Loaded(
object
sender, RoutedEventArgs e)
{
try
{
IntPtr mainWindowPtr =
new
WindowInteropHelper(
this
).Handle;
HwndSource mainWindowSrc = HwndSource.FromHwnd(mainWindowPtr);
mainWindowSrc.CompositionTarget.BackgroundColor = Color.FromArgb(0, 0, 0, 0);
System.Drawing.Graphics desktop = System.Drawing.Graphics.FromHwnd(mainWindowPtr);
float
DesktopDpiX = desktop.DpiX;
float
DesktopDpiY = desktop.DpiY;
MARGINS margins =
new
MARGINS();
margins.cxLeftWidth = Convert.ToInt32(0 * (DesktopDpiX / 96));
margins.cxRightWidth = Convert.ToInt32(
this
.Width * (DesktopDpiX / 96));
margins.cyTopHeight = Convert.ToInt32(0 * (DesktopDpiX / 96));
margins.cyBottomHeight = Convert.ToInt32(
this
.Height * (DesktopDpiX / 96));
int
hr = DwmExtendFrameIntoClientArea(mainWindowSrc.Handle,
ref
margins);
if
(hr < 0)
{
MessageBox.Show(
"Can't apply glass..."
);
}
}
catch
(DllNotFoundException)
{
Application.Current.MainWindow.Background = Brushes.White;
}
}
[StructLayout(LayoutKind.Sequential)]
public
struct
MARGINS
{
public
int
cxLeftWidth;
public
int
cxRightWidth;
public
int
cyTopHeight;
public
int
cyBottomHeight;
};
[DllImport(
"DwmApi.dll"
)]
public
static
extern
int
DwmExtendFrameIntoClientArea(
IntPtr hwnd,
ref
MARGINS pMarInset);
}
PersistenceManager.GetStorage()
Hi!
Is there a buildin Drag&Drop functionality (Drop-Inside, Drop-Above, Drop-Below) like in the TreeView control? I downloaded the trail version of the control but couldn’t spot something like that.
Kind Regards,
Dominik