예제 #1
0
        private void AlignDetailsView(object sender, SizeChangedEventArgs e)
        {
            //Get the parent element
            var detailsView = VisualTreeHelper.GetParent(this) as UIElement;

            //Get the position of the parent element relative to the root visual
            // GeneralTransform generalTransform = detailsView.TransformToVisual(Application.Current.RootVisual);
            GeneralTransform generalTransform    = detailsView.TransformToVisual(NavigationApp.MainVisual());
            Point            detailsViewPosition = generalTransform.Transform(new Point(0, 0));

            //Align the DetailsView
            this.HorizontalAlignment = (detailsViewPosition.X > 0)
                                           ? HorizontalAlignment.Left
                                           : HorizontalAlignment.Right;
        }
        private string GetComponentSamplePath()
        {
            var path    = "http://";
            var culture = NavigationApp.CurrentCultureName().ToLower();

            if (culture.Contains("jp"))
            {
                path += "jp.";
            }
            else
            {
                path += "www.";
            }
            path += "infragistics.com/help/wpf/";
            path += GetSamplesComponentName(this.Component);
            return(path.ToLower());
        }
예제 #3
0
        public static void Main()
        {
            NavigationApp app = new NavigationApp();

            app.Run();
        }