コード例 #1
0
 private void Example_Loaded(object sender, RoutedEventArgs e)
 {
     this.RadSpreadsheet.Focus();
     IconSources.ChangeIconsSet(IconsSet.Light);
     //ThemeSpecificIconsHelper.SubscribeForIconChanges(true);
     //ThemeSpecificIconsHelper.ApplyThemeSpecificIconsWithTwoVariations();
 }
コード例 #2
0
        public TelerikEditor()
        {
            InitializeComponent();

            IconSources.ChangeIconsSet(IconsSet.Modern);

            this.radRichTextBox.CommandExecuting += RadRichTextBox_CommandExecuting;
            this.radRichTextBox.CommandExecuted  += RadRichTextBox_CommandExecuted;
        }
コード例 #3
0
        public MainWindow()
        {
            RadCompositionInitializer.Catalog = new TypeCatalog(
                // format providers
                typeof(XamlFormatProvider),
                typeof(RtfFormatProvider),
                typeof(DocxFormatProvider),
                typeof(HtmlFormatProvider),
                typeof(TxtFormatProvider),

                // mini toolbars
                typeof(SelectionMiniToolBar),
                typeof(ImageMiniToolBar),

                // context menu
                typeof(Telerik.Windows.Controls.RichTextBoxUI.ContextMenu),

                // the default English spell checking dictionary
                typeof(RadEn_USDictionary),

                // dialogs
                typeof(AddNewBibliographicSourceDialog),
                typeof(ChangeEditingPermissionsDialog),
                typeof(EditCustomDictionaryDialog),
                typeof(FindReplaceDialog),
                typeof(FloatingBlockPropertiesDialog),
                typeof(FontPropertiesDialog),
                typeof(ImageEditorDialog),
                typeof(InsertCaptionDialog),
                typeof(InsertCrossReferenceWindow),
                typeof(InsertDateTimeDialog),
                typeof(InsertTableDialog),
                typeof(InsertTableOfContentsDialog),
                typeof(ManageBibliographicSourcesDialog),
                typeof(ManageBookmarksDialog),
                typeof(ManageStylesDialog),
                typeof(NotesDialog),
                typeof(ProtectDocumentDialog),
                typeof(RadInsertHyperlinkDialog),
                typeof(RadInsertSymbolDialog),
                typeof(RadParagraphPropertiesDialog),
                typeof(SetNumberingValueDialog),
                typeof(SpellCheckingDialog),
                typeof(StyleFormattingPropertiesDialog),
                typeof(TableBordersDialog),
                typeof(TablePropertiesDialog),
                typeof(TabStopsPropertiesDialog),
                typeof(UnprotectDocumentDialog),
                typeof(WatermarkSettingsDialog)
                );

            InitializeComponent();
            IconSources.ChangeIconsSet(IconsSet.Modern);

            this.Loaded += this.MainWindow_Loaded;
        }
コード例 #4
0
        public MainWindow()
        {
            Telerik.Windows.Controls.RichTextBoxUI.StylesGallery stylesGallery = new Telerik.Windows.Controls.RichTextBoxUI.StylesGallery();

            InitializeComponent();
            IconSources.ChangeIconsSet(IconsSet.Modern);
            Back              = Background;
            this.Activated   += MainWindow_Activated;
            this.Deactivated += MainWindow_Deactivated;
            this.Loaded      += this.MainWindow_Loaded;
        }
コード例 #5
0
        private void switchThemeBtn_Click(object sender, RoutedEventArgs e)
        {
            if (isDark)
            {
                IconSources.ChangeIconsSet(IconsSet.Light);
                this.SwitchTheme("Office2013");
            }
            else
            {
                IconSources.ChangeIconsSet(IconsSet.Dark);
                this.SwitchTheme("Expression_Dark");
            }

            this.isDark = !this.isDark;
        }
コード例 #6
0
ファイル: Diagrams1.xaml.cs プロジェクト: hamerstandr/Tools
        public Diagrams1()
        {
            //IconManager icon set light - for win8
            IconSources.ChangeIconsSet(IconsSet.Light);
            InitializeComponent();

            this.SamplesList1.DataContext = this.SamplesList.DataContext = new SamplesViewModel(this.diagram);
            this.diagram.ItemsChanged    += this.DiagramItemsChanged;
            this.fileManager = new FileManager(this.diagram);

            //// This is needed so that the code in SL and WPF is the same
            //// for the Undo/Redo list bindings in the SplitButton DropDownContent.
            this.DataContext         = this.diagram.UndoRedoService;
            this.toolBox.ItemsSource = new HierarchicalGalleryItemsCollection();
        }
コード例 #7
0
        public MainWindow()
        {
            InitializeComponent();
            IconSources.ChangeIconsSet(IconsSet.Modern);

            this.serviceURL = this.ReadAppSetting(SERVICE_URL);
            this.serverName = this.ReadAppSetting(SERVER_NAME);

            this.formService = new UserControlService();

            this.lblBranchName.Text = this.serverName;
            this.lblUserName.Text   = this.GetFullUserName();
            this.SetDateTimeTimer();

            // Can connect later on
            bool rst = this.formService.Connect(this.serviceURL);
        }
コード例 #8
0
        public CalendarView()
        {
            InitializeComponent();
            IconSources.ChangeIconsSet(IconsSet.Modern);
            try
            {
                StreamReader R = new StreamReader(Application.Current.StartupUri + @"\Data1.dat");//Directory.GetCurrentDirectory()
                string       s = R.ReadToEnd();
                R.Close();
                Model.Appointments = CreateObject(s, typeof(ObservableCollection <Appointment>)) as ObservableCollection <Appointment>;
            }
            catch { }

            StyleManager.SetTheme(CalendarScheduleView, new Office2016Theme());

            Unloaded += CalendarView_Unloaded;
        }
コード例 #9
0
        public static void ApplyThemeSpecificIconsWithTwoVariations()
        {
            string currentTheme = ApplicationThemeManager.GetInstance().CurrentTheme;

            switch (currentTheme)
            {
            case "Expression_Dark":
            case "VisualStudio2013_Dark":
            case "Green_Dark":
            case "Fluent_Dark":
            case "Crystal_Dark":
                IconSources.ChangeIconsSet(IconsSet.Dark);
                break;

            default:
                IconSources.ChangeIconsSet(IconsSet.Light);
                break;
            }
        }
コード例 #10
0
        public static void ApplyThemeSpecificIconsWithThreeVariations()
        {
            string currentTheme = ApplicationThemeManager.GetInstance().CurrentTheme;

            switch (currentTheme)
            {
            case "Expression_Dark":
            case "VisualStudio2013_Dark":
            case "Green_Dark":
            case "Fluent_Dark":
            case "Crystal_Dark":
                IconSources.ChangeIconsSet(IconsSet.Dark);
                break;

            case "Green_Light":
            case "Office2013":
            case "Office2016":
            case "Office2016Touch":
            case "Office2013_LightGray":
            case "Office2013_DarkGray":
            case "VisualStudio2013":
            case "VisualStudio2013_Blue":
            case "Windows8":
            case "Windows8Touch":
            case "Material":
            case "Fluent_Light":
            case "Crystal_Light":
            case "VisualStudio2019":
                IconSources.ChangeIconsSet(IconsSet.Modern);
                break;

            default:
                IconSources.ChangeIconsSet(IconsSet.Light);
                break;
            }
        }
コード例 #11
0
 public CalendarView()
 {
     InitializeComponent();
     IconSources.ChangeIconsSet(IconsSet.Modern);
 }
コード例 #12
0
        public TelerikEditor()
        {
            InitializeComponent();

            IconSources.ChangeIconsSet(IconsSet.Modern);
        }
コード例 #13
0
 public CtrlPrintOrder()
 {
     InitializeComponent();
     IconSources.ChangeIconsSet(IconsSet.Modern);
 }