| <telerikNavigation:RadPanelBar x:Name="pb" Margin="5" Width="180" BorderBrush="#9098a3" |
| BorderThickness="1" HorizontalAlignment="Left" ExpandMode="Multiple"> |
| <telerikNavigation:RadPanelBarItem> |
| <telerikNavigation:RadPanelBarItem.Header> |
| <TextBlock Text="מבט ענף" Height="13" Margin="5 2 5 2" /> |
| </telerikNavigation:RadPanelBarItem.Header> |
| <telerikNavigation:RadPanelBarItem Header="תוכניות עבודה" /> |
| <telerikNavigation:RadPanelBarItem Header="ממתינות לתקצוב" /> |
| <telerikNavigation:RadPanelBarItem Header="הצעות לתוכנית" /> |
| </telerikNavigation:RadPanelBarItem> |
| <telerikNavigation:RadPanelBarItem> |
| <telerikNavigation:RadPanelBarItem.Header> |
| <TextBlock Text="מבט מחלקה" Height="13" Margin="5 2 5 2" /> |
| </telerikNavigation:RadPanelBarItem.Header> |
| <telerikNavigation:RadPanelBarItem Header="תוכניות עבודה" /> |
| <telerikNavigation:RadPanelBarItem Header="ממתינות לתקצוב" /> |
| <telerikNavigation:RadPanelBarItem Header="הצעות לתוכנית" /> |
| </telerikNavigation:RadPanelBarItem> |
| <telerikNavigation:RadPanelBarItem IsEnabled="True"> |
| <telerikNavigation:RadPanelBarItem.Header> |
| <TextBlock Text="ניהול המערכת" Height="13" Margin="5 2 5 2" /> |
| </telerikNavigation:RadPanelBarItem.Header> |
| </telerikNavigation:RadPanelBarItem> |
| </telerikNavigation:RadPanelBar> |
#region
Property: Items
private MYOutlookBarItemCollection _items;
public MYOutlookBarItemCollection Items
{
get
{
if (_items == null)
{
_items =
new MYOutlookBarItemCollection ();
}
return _items;
}
}
#endregion
The above code exposes the items property in MYoutlookbar
MYOutlookBarItemCollection.cs will be a separate will which contains
public class MYOutlookBarItemCollection: ObservableCollection<MYOutlookBarItem>
{
}
#region
Property: Content
public object Content
{
get { return (object)GetValue(ContentProperty); }
set { SetValue(ContentProperty, value); }
}
public static readonly DependencyProperty ContentProperty =
DependencyProperty.Register(
"Content", typeof(object), typeof(MyOutlookBarItem),
new FrameworkPropertyMetadata
{
PropertyChangedCallback = (obj, e) =>
{
(obj
as MyOutlookBarItem).UpdateContent((object)e.NewValue);
}
});
private void UpdateContent(object sel)
{
OutlookBarItem.Content = sel;
}
#endregion
Can you guys help me..
Thanks,
Deepz
I am using a heirarchical grid and there are times the childGrid could be null. how to check that condition?
GridViewRow
grdRow = (GridViewRow)grdCell.ParentRow;
RadGridView
childGrid = grdRow.ChildrenOfType<RadGridView>().FirstOrDefault();
Please let me know
Thanks
Sathish.K
protected override void OnSourceInitialized(EventArgs e) { HwndSource hwndSource = (HwndSource)HwndSource.FromVisual(this); hwndSource.AddHook(WndProcHook); base.OnSourceInitialized(e); }private static IntPtr WndProcHook(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handeled) { if (msg == 0x0084) // WM_NCHITTEST { handeled = true; return (IntPtr)2; // HTCAPTION } return IntPtr.Zero; }this.MouseLeftButtonDown += delegate { DragMove(); };Good morning, afternoon, evening,
I am having trouble figuring out how I can center a RadWindow using WindowStartupLocation.CenterOwner when I open it from a non-wpf application.
I used the following code in my winform app to open a dialog that is a System.Windows.Window. When I convert it to a RadWindow, it doesn't work and I am at a loss as to how to duplicate functionality.
var dlg = new MyDialog();
System.Windows.Interop.
WindowInteropHelper hwndHelper = new System.Windows.Interop.WindowInteropHelper(dlg);
hwndHelper.Owner =
new IntPtr(Globals.ThisAddIn.Application.Hwnd);
dlg.ShowDialog();
How can I center the window?
Please assist.
Thanks,
Alan
PS. I have a support agreement but decided to post here so that others might benefit from response.