本文整理汇总了C#中IThemeManager类的典型用法代码示例。如果您正苦于以下问题:C# IThemeManager类的具体用法?C# IThemeManager怎么用?C# IThemeManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IThemeManager类属于命名空间,在下文中一共展示了IThemeManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
开发者ID:levisre,项目名称:dnSpy,代码行数:7,代码来源:DnSpyLoaderManager.cs
示例2: WindowManager
public WindowManager(IEnvWindowsManager envWindowsManager, IHostedControls hostedControls, IResourceStore resourceStore, IThemeManager themeManager)
{
_envWindowsManager = envWindowsManager;
_hostedControls = hostedControls;
_resourceStore = resourceStore;
_themeManager = themeManager;
}
开发者ID:Irdis,项目名称:VSTalk,代码行数:7,代码来源:WindowManager.cs
示例3: IconBarMargin
public IconBarMargin(ITextEditorUIContext uiContext, ITextLineObjectManager textLineObjectManager, IImageManager imageManager, IThemeManager themeManager)
{
this.uiContext = uiContext;
this.textLineObjectManager = textLineObjectManager;
this.imageManager = imageManager;
this.themeManager = themeManager;
}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:7,代码来源:IconBarMargin.cs
示例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();
}
开发者ID:kenzya,项目名称:ds4ui,代码行数:26,代码来源:ApplicationManager.cs
示例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);
}
开发者ID:n017,项目名称:dnSpy,代码行数:28,代码来源:BreakpointsVM.cs
示例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);
}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:7,代码来源:TreeViewManager.cs
示例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;
}
开发者ID:hxmtl,项目名称:Orchard-Harvest-Website,代码行数:25,代码来源:OutputCacheFilter.cs
示例8: MPTCheckBox
public MPTCheckBox()
{
themeManager = ServiceScope.Get<IThemeManager>();
// Setup message queue for receiving Messages
IMessageQueue queueMessage = ServiceScope.Get<IMessageBroker>().GetOrCreate("message");
queueMessage.OnMessageReceive += OnMessageReceive;
}
开发者ID:sanyaade-embedded-systems,项目名称:MPTagThat,代码行数:7,代码来源:MPTCheckBox.cs
示例9: MainMenuSettingsViewModel
public MainMenuSettingsViewModel(IThemeManager themeManager)
{
_themeManager = themeManager;
SelectedTheme = themeManager.CurrentTheme;
AutoHideMainMenu = Properties.Settings.Default.AutoHideMainMenu;
SelectedLanguage = Properties.Settings.Default.LanguageCode;
}
开发者ID:tgjones,项目名称:gemini,代码行数:7,代码来源:MainMenuSettingsViewModel.cs
示例10: ThemedViewResultFilter
public ThemedViewResultFilter(IThemeManager themeManager, WorkContext workContext, ILayoutAwareViewEngine layoutAwareViewEngine)
{
_themeManager = themeManager;
_workContext = workContext;
_layoutAwareViewEngine = layoutAwareViewEngine;
Logger = NullLogger.Instance;
}
开发者ID:gokhandisikara,项目名称:Coevery-Framework,代码行数:7,代码来源:ThemedViewResultFilter.cs
示例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;
}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:35,代码来源:TreeViewImpl.cs
示例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();
}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:8,代码来源:DebuggerColors.cs
示例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);
}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:8,代码来源:ExceptionsContent.cs
示例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;
}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:8,代码来源:TabManager.cs
示例15: ViewComponentTagHelperDescriptorResolver
public ViewComponentTagHelperDescriptorResolver(
TagHelperTypeResolver typeResolver,
IShapeTableManager shapeTableManager,
IThemeManager themeManager)
: base(typeResolver, designTime: false)
{
_shapteTableManager = shapeTableManager;
_themeManager = themeManager;
}
开发者ID:OnefoursevenLabs,项目名称:Orchard2,代码行数:9,代码来源:ShapeTagHelperDescriptorResolver.cs
示例16: SessionManager
public SessionManager(INavigationService navService, IApiClient apiClient, ILogger logger, IThemeManager themeManager, ITheaterConfigurationManager config, IPlaybackManager playback)
{
_navService = navService;
_apiClient = apiClient;
_logger = logger;
_themeManager = themeManager;
_config = config;
_playback = playback;
}
开发者ID:jfrankelp,项目名称:MediaBrowser.Theater,代码行数:9,代码来源:SessionManager.cs
示例17: InlineShapeFactory
public InlineShapeFactory(IAuthorizer authorizer,
IWorkContextAccessor workContextAccessor,
IShapeTableManager shapeTableManager,
IThemeManager themeManager) {
_authorizer = authorizer;
_shapeTableManager = shapeTableManager;
_themeManager = themeManager;
_workContext = workContextAccessor.GetContext();
}
开发者ID:Jetski5822,项目名称:Orchard.InlineEditing,代码行数:9,代码来源:InlineShapeFactory.cs
示例18: LocalsContent
LocalsContent(IWpfCommandManager wpfCommandManager, IThemeManager themeManager, ILocalsVM localsVM) {
this.localsControl = new LocalsControl();
this.vmLocals = localsVM;
this.localsControl.DataContext = this.vmLocals;
themeManager.ThemeChanged += ThemeManager_ThemeChanged;
wpfCommandManager.Add(CommandConstants.GUID_DEBUGGER_LOCALS_CONTROL, localsControl);
wpfCommandManager.Add(CommandConstants.GUID_DEBUGGER_LOCALS_LISTVIEW, localsControl.ListView);
}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:9,代码来源:LocalsContent.cs
示例19: DefaultShapeFactory
public DefaultShapeFactory(
IEnumerable<IShapeFactoryEvents> events,
IShapeTableManager shapeTableManager,
IThemeManager themeManager)
{
_events = events;
_shapeTableManager = shapeTableManager;
_themeManager = themeManager;
}
开发者ID:adwardliu,项目名称:Orchard2,代码行数:9,代码来源:DefaultShapeFactory.cs
示例20: MPTButton
public MPTButton()
{
themeManager = ServiceScope.Get<IThemeManager>();
// Setup message queue for receiving Messages
IMessageQueue queueMessage = ServiceScope.Get<IMessageBroker>().GetOrCreate("message");
queueMessage.OnMessageReceive += OnMessageReceive;
UseVisualStyleBackColor = true;
}
开发者ID:dineshkummarc,项目名称:MediaPortal-MPTagThat,代码行数:9,代码来源:MPTButton.cs
注:本文中的IThemeManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论