本文整理汇总了C#中IThemeManager类的典型用法代码示例。如果您正苦于以下问题:C# IThemeManager类的具体用法?C# IThemeManager怎么用?C# IThemeManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IThemeManager类属于命名空间,在下文中一共展示了IThemeManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DnSpyLoaderManager
DnSpyLoaderManager(IImageManager imageManager, IThemeManager themeManager, ISettingsManager settingsManager, [ImportMany] IEnumerable<Lazy<IDnSpyLoader, IDnSpyLoaderMetadata>> mefLoaders) {
this.imageManager = imageManager;
this.themeManager = themeManager;
this.settingsManager = settingsManager;
this.loaders = mefLoaders.OrderBy(a => a.Metadata.Order).ToArray();
this.windowLoader = new WindowLoader(this, imageManager, themeManager, settingsManager, loaders);
}
示例2: WindowManager
public WindowManager(IEnvWindowsManager envWindowsManager, IHostedControls hostedControls, IResourceStore resourceStore, IThemeManager themeManager)
{
_envWindowsManager = envWindowsManager;
_hostedControls = hostedControls;
_resourceStore = resourceStore;
_themeManager = themeManager;
}
示例3: IconBarMargin
public IconBarMargin(ITextEditorUIContext uiContext, ITextLineObjectManager textLineObjectManager, IImageManager imageManager, IThemeManager themeManager)
{
this.uiContext = uiContext;
this.textLineObjectManager = textLineObjectManager;
this.imageManager = imageManager;
this.themeManager = themeManager;
}
示例4: ApplicationManager
public ApplicationManager(IMessengerManager messenger, ITranslationManager translation, IConfigurationManager configuration, IUserManager user,
INotifyIconManager notifyIcon, IEventLogManager logger, IControllerConfigurationManager controller, IThemeManager theme)
{
Messenger = messenger;
Translation = translation;
Configuration = configuration;
User = user;
NotifyIcon = notifyIcon;
Logger = logger;
Controller = controller;
Theme = theme;
Logger.Initialize(Constants.SERVICE_NAME);
Logger.Subscribe(param => Messenger.NotifyColleagues(AppMessages.NEW_LOG_MESSAGE, param.Entry));
string a = Configuration.GetData(ConfOptions.OPTION_ACCENT);
string t = Configuration.GetData(ConfOptions.OPTION_THEME);
Theme.SetTheme(a, t);
Translation.ChangeLanguage(Configuration.GetData(ConfOptions.OPTION_LANGUAGE));
DuplexChannelFactory<ISubscribingService> pipeFactory = new DuplexChannelFactory<ISubscribingService>(new ServiceCommand(Messenger),
new NetNamedPipeBinding(), new EndpointAddress(Constants.PIPE_ADDRESS + Constants.SERVICE_NAME));
Service = pipeFactory.CreateChannel();
Service.Subscribe();
}
示例5: BreakpointsVM
BreakpointsVM(ILanguageManager languageManager, IImageManager imageManager, IThemeManager themeManager, IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IBreakpointManager breakpointManager, IBreakpointSettings breakpointSettings, Lazy<IModuleLoader> moduleLoader, IInMemoryModuleManager inMemoryModuleManager)
{
this.breakpointContext = new BreakpointContext(imageManager, moduleLoader) {
Language = languageManager.Language,
SyntaxHighlight = debuggerSettings.SyntaxHighlightBreakpoints,
UseHexadecimal = debuggerSettings.UseHexadecimal,
ShowTokens = breakpointSettings.ShowTokens,
ShowModuleNames = breakpointSettings.ShowModuleNames,
ShowParameterTypes = breakpointSettings.ShowParameterTypes,
ShowParameterNames = breakpointSettings.ShowParameterNames,
ShowOwnerTypes = breakpointSettings.ShowOwnerTypes,
ShowReturnTypes = breakpointSettings.ShowReturnTypes,
ShowNamespaces = breakpointSettings.ShowNamespaces,
ShowTypeKeywords = breakpointSettings.ShowTypeKeywords,
};
this.breakpointManager = breakpointManager;
this.theDebugger = theDebugger;
this.breakpointList = new ObservableCollection<BreakpointVM>();
breakpointSettings.PropertyChanged += BreakpointSettings_PropertyChanged;
breakpointManager.OnListModified += BreakpointManager_OnListModified;
debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
themeManager.ThemeChanged += ThemeManager_ThemeChanged;
languageManager.LanguageChanged += LanguageManager_LanguageChanged;
inMemoryModuleManager.DynamicModulesLoaded += InMemoryModuleManager_DynamicModulesLoaded;
foreach (var bp in breakpointManager.Breakpoints)
AddBreakpoint(bp);
}
示例6: TreeViewManager
TreeViewManager(IThemeManager themeManager, IImageManager imageManager, [ImportMany] IEnumerable<Lazy<ITreeNodeDataCreator, ITreeNodeDataCreatorMetadata>> treeNodeDataCreators)
{
this.themeManager = themeManager;
this.imageManager = imageManager;
this.guidToCreator = new Dictionary<Guid, List<Lazy<ITreeNodeDataCreator, ITreeNodeDataCreatorMetadata>>>();
InitializeGuidToCreator(treeNodeDataCreators);
}
示例7: OutputCacheFilter
public OutputCacheFilter(
ICacheManager cacheManager,
IOutputCacheStorageProvider cacheStorageProvider,
ITagCache tagCache,
IDisplayedContentItemHandler displayedContentItemHandler,
IWorkContextAccessor workContextAccessor,
IThemeManager themeManager,
IClock clock,
ICacheService cacheService,
ISignals signals,
ShellSettings shellSettings) {
_cacheManager = cacheManager;
_cacheStorageProvider = cacheStorageProvider;
_tagCache = tagCache;
_displayedContentItemHandler = displayedContentItemHandler;
_workContextAccessor = workContextAccessor;
_themeManager = themeManager;
_clock = clock;
_cacheService = cacheService;
_signals = signals;
_shellSettings = shellSettings;
Logger = NullLogger.Instance;
}
示例8: MPTCheckBox
public MPTCheckBox()
{
themeManager = ServiceScope.Get<IThemeManager>();
// Setup message queue for receiving Messages
IMessageQueue queueMessage = ServiceScope.Get<IMessageBroker>().GetOrCreate("message");
queueMessage.OnMessageReceive += OnMessageReceive;
}
示例9: MainMenuSettingsViewModel
public MainMenuSettingsViewModel(IThemeManager themeManager)
{
_themeManager = themeManager;
SelectedTheme = themeManager.CurrentTheme;
AutoHideMainMenu = Properties.Settings.Default.AutoHideMainMenu;
SelectedLanguage = Properties.Settings.Default.LanguageCode;
}
示例10: ThemedViewResultFilter
public ThemedViewResultFilter(IThemeManager themeManager, WorkContext workContext, ILayoutAwareViewEngine layoutAwareViewEngine)
{
_themeManager = themeManager;
_workContext = workContext;
_layoutAwareViewEngine = layoutAwareViewEngine;
Logger = NullLogger.Instance;
}
示例11: TreeViewImpl
public TreeViewImpl(ITreeViewManager treeViewManager, IThemeManager themeManager, IImageManager imageManager, Guid guid, TreeViewOptions options)
{
this.guid = guid;
this.treeViewManager = treeViewManager;
this.imageManager = imageManager;
this.treeViewListener = options.TreeViewListener;
this.sharpTreeView = new SharpTreeView();
this.sharpTreeView.SelectionChanged += SharpTreeView_SelectionChanged;
this.sharpTreeView.CanDragAndDrop = options.CanDragAndDrop;
this.sharpTreeView.AllowDrop = options.AllowDrop;
this.sharpTreeView.AllowDropOrder = options.AllowDrop;
VirtualizingStackPanel.SetIsVirtualizing(this.sharpTreeView, options.IsVirtualizing);
VirtualizingStackPanel.SetVirtualizationMode(this.sharpTreeView, options.VirtualizationMode);
this.sharpTreeView.SelectionMode = options.SelectionMode;
this.sharpTreeView.BorderThickness = new Thickness(0);
this.sharpTreeView.ShowRoot = false;
this.sharpTreeView.ShowLines = false;
if (options.IsGridView) {
this.sharpTreeView.ItemContainerStyle = (Style)Application.Current.FindResource(SharpGridView.ItemContainerStyleKey);
this.sharpTreeView.Style = (Style)Application.Current.FindResource("SharpTreeViewGridViewStyle");
}
else {
// Clear the value set by the constructor. This is required or our style won't be used.
this.sharpTreeView.ClearValue(ItemsControl.ItemContainerStyleProperty);
this.sharpTreeView.Style = (Style)Application.Current.FindResource(typeof(SharpTreeView));
}
this.sharpTreeView.GetPreviewInsideTextBackground = () => themeManager.Theme.GetColor(ColorType.SystemColorsHighlight).Background;
this.sharpTreeView.GetPreviewInsideForeground = () => themeManager.Theme.GetColor(ColorType.SystemColorsHighlightText).Foreground;
// Add the root at the end since Create() requires some stuff to have been initialized
this.root = Create(options.RootNode ?? new TreeNodeDataImpl(new Guid(FileTVConstants.ROOT_NODE_GUID)));
this.sharpTreeView.Root = this.root.Node;
}
示例12: OnThemeUpdated
void OnThemeUpdated(IThemeManager themeManager) {
var theme = themeManager.Theme;
CodeBreakpointHighlightingColor = theme.GetTextColor(ColorType.BreakpointStatement).ToHighlightingColor();
CodeBreakpointDisabledHighlightingColor = theme.GetTextColor(ColorType.DisabledBreakpointStatement).ToHighlightingColor();
StackFrameCurrentHighlightingColor = theme.GetTextColor(ColorType.CurrentStatement).ToHighlightingColor();
StackFrameReturnHighlightingColor = theme.GetTextColor(ColorType.ReturnStatement).ToHighlightingColor();
StackFrameSelectedHighlightingColor = theme.GetTextColor(ColorType.SelectedReturnStatement).ToHighlightingColor();
}
示例13: ExceptionsContent
ExceptionsContent(IWpfCommandManager wpfCommandManager, IThemeManager themeManager, Lazy<IExceptionsVM> exceptionsVM) {
this.exceptionsControl = new ExceptionsControl();
this.vmExceptions = exceptionsVM;
themeManager.ThemeChanged += ThemeManager_ThemeChanged;
wpfCommandManager.Add(CommandConstants.GUID_DEBUGGER_EXCEPTIONS_CONTROL, exceptionsControl);
wpfCommandManager.Add(CommandConstants.GUID_DEBUGGER_EXCEPTIONS_LISTVIEW, exceptionsControl.ListBox);
}
示例14: TabManager
public TabManager(IThemeManager themeManager, IMenuManager menuManager, IWpfFocusManager wpfFocusManager)
{
themeManager.ThemeChanged += ThemeManager_ThemeChanged;
this.menuManager = menuManager;
this.wpfFocusManager = wpfFocusManager;
this.tabGroupManagers = new List<TabGroupManager>();
this.selectedIndex = -1;
}
示例15: ViewComponentTagHelperDescriptorResolver
public ViewComponentTagHelperDescriptorResolver(
TagHelperTypeResolver typeResolver,
IShapeTableManager shapeTableManager,
IThemeManager themeManager)
: base(typeResolver, designTime: false)
{
_shapteTableManager = shapeTableManager;
_themeManager = themeManager;
}