public AdvancedAreaStyleUserControl(AreaStyle style)
        {
            InitializeComponent();
            AreaStyleViewModel styleViewModel = new AreaStyleViewModel(style);

            styleViewModel.PropertyChanged += (s, e) => StyleItem.UpdateStyleItem();
            DataContext = styleViewModel;

            string helpUri = GisEditor.LanguageManager.GetStringResource("AreaStyleHelp");

            if (!string.IsNullOrEmpty(helpUri))
            {
                HelpUri = new Uri(helpUri);
            }
        }
        private void Hyperlink_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            Hyperlink             hyperlink             = (Hyperlink)sender;
            StyleItem             styleItem             = (StyleItem)hyperlink.DataContext;
            StyleSettingViewModel styleSettingViewModel = (StyleSettingViewModel)DataContext;

            if (styleSettingViewModel.StyleItems.Count > 1)
            {
                styleSettingViewModel.StyleItems.Remove(styleItem);
                if (styleSettingViewModel.Option.StylePlugin.StyleCandidates.Contains(styleItem.Style))
                {
                    styleSettingViewModel.Option.StylePlugin.StyleCandidates.Remove(styleItem.Style);
                }
                styleSettingViewModel.SelectedStyleItem = styleSettingViewModel.StyleItems.FirstOrDefault();
            }
        }