public ApplicationWindow(ApplicationElement element)
        {
            Current = this;
            Element = element;
            Title   = element.Name ?? "Unknown Title";

            InitializeComponent();
        }
示例#2
0
        private void ApplicationDoubleClicked(object sender, MouseButtonEventArgs e)
        {
            ApplicationElement element = ((ApplicationElement)((ListView)sender).SelectedItem);

            if (element != null)
            {
                ApplicationWindow.ApplicationWindow window = new ApplicationWindow.ApplicationWindow(element)
                {
                    Owner = Window.GetWindow(this),
                    Icon  = new WriteableBitmap(element.Icon as BitmapSource)
                };
                window.ShowDialog();
            }
        }