Alternate TextWant to become a Vibe Coder? Join Vibe Coding Training here
C# Corner
  • Tech
  • News
  • Videos
  • Forums
  • Jobs
  • Books
  • Events
    • Interviews
    • Live
    • Learn
    • Training
    • Career
    • Members
    • Blogs
    • Challenges
    • Certification
  • Article
  • Blog
  • Video
  • Ebook
  • Interview Question
  • .NET
  • .NET Assemblies
  • .NET Core
  • .NET Standard
  • Active Directory
  • ADO.NET
  • Agile Development
  • AJAX
  • Alexa Skills
  • Algorithms in C#
  • Android
  • Angular
  • Architecture
  • ArcObject
  • Artificial Intelligence
  • ASP.NET
  • ASP.NET Core
  • Augmented Reality
  • Aurelia
  • AWS
  • Azure
  • Backbonejs
  • Big Data
  • BizTalk Server
  • Blockchain
  • Bootstrap
  • Bot Framework
  • Business
  • C#
  • C# Corner
  • C, C++, MFC
  • Career Advice
  • Chapters
  • CIO
  • Cloud
  • COBOL.NET
  • Coding Best Practices
  • Cognitive Services
  • COM Interop
  • Compact Framework
  • Cortana Development
  • Cryptocurrency
  • Cryptography
  • Crystal Reports
  • Current Affairs
  • Custom Controls
  • Cyber Security
  • Data Mining
  • Databases & DBA
  • Design Patterns & Practices
  • DevOps
  • DirectX
  • Dynamics CRM
  • Enterprise Development
  • Entity Framework
  • Error Zone
  • Exception Handling
  • Expression Studio
  • F#
  • Files, Directory, IO
  • Games Programming
  • GDI+
  • General
  • Generative Engine Optimization (GEO)
  • Google Cloud
  • Google Development
  • Graphics Design
  • Hardware
  • Hiring and Recruitment
  • HoloLens
  • How do I
  • HTML 5
  • Internet & Web
  • Internet of Things
  • Ionic
  • iOS
  • Java
  • Java and .NET
  • JavaScript
  • JQuery
  • JSON
  • JSP
  • Knockout
  • kotlin
  • Leadership
  • Learn .NET
  • LightSwitch
  • LINQ
  • Machine Learning
  • Microsoft 365
  • Microsoft Office
  • Microsoft Phone
  • Mobile Development
  • Multithreading
  • Nano Banana
  • NetBeans
  • Networking
  • Node.js
  • Office Development
  • OOP/OOD
  • Open Source
  • Operating Systems
  • Oracle
  • Outsourcing
  • Philosophy
  • PHP
  • Power BI
  • Printing in C#
  • Products
  • Progressive Web Apps
  • Project Management
  • Python
  • Q#
  • QlikView
  • R
  • React
  • Reports using C#
  • Robotics & Hardware
  • Ruby on Rails
  • Salesforce
  • Security
  • Servers
  • SharePoint
  • SignalR
  • Silverlight
  • Smart Devices
  • Software Testing
  • SQL Language
  • SQL Server
  • Startups
  • String in C#
  • Swift
  • TypeScript
  • Unity
  • UWP
  • Visual Basic .NET
  • Visual Studio
  • WCF
  • Wearables
  • Web Development
  • Web Services
  • Web3
  • Windows 10
  • Windows Controls
  • Windows Forms
  • Windows PowerShell
  • Windows Services
  • Workflow Foundation
  • WPF
  • Xamarin
  • XAML Standard
  • XML
  • XNA
  • XSharp
  • Register
  • Login
1
Answer

How to apply themes to the user control?

Photo of wajid ansari

wajid ansari

16y
2.7k
0
1 Others
Hi friends

I have created a user control with name menuUserControl with menu control in it. I have created a user defined property for the user control(menuUserControl) as groupid and when ever I pass groupid to the user control(menuUserControl) in a page, it should use a theme based on the groupid I pass to it. For example if I use two user controls(menuUserControl) one at the top and other at the bottom of the the page with two different groupids like if I pass groupid=1 for top user controls(menuUserControl), it should use theme1 and groupid=2 to the bottom user controls(menuUserControl), it should use theme2. So my problem is that I am unable to apply theme to the user control. I have done some google search but unable to create a theme for a user control. I am only able to apply themes to the server controls. As I am using two user controls i.e menuUserControl as said above, both are displaying same theme. I want to apply two different themes to two user controls(menuUserControl). If any one have any solution or any other alternative, kindly help me please, Its very urgent for me. If you did not understand or you have any doubt, please reply back, I will try to analyze the problem. Hope to get a positive response.

Thanks Wajid

Answers (1)

Related Discussion
Forum Statistics
  • Please welcome our newest member Achievers It.

  • 2,381,653 users have contributed to 122,515 threads and 389,030

  • In the past 24 hours, we have  0 new threads, 0 new posts, and 0 new users.

  • In last week, the most popular thread is 'What's the difference between a DataTable and a DataReader?'.

Upcoming Events
View all

    Our Training Programs

    View all
    • AI & Machine Learning

    • Mastering Large Language Models

    • Mastering Prompt Engineering

    • Certified Vibe Coder

    • Github Copilot Training

    • Generative AI for Beginners

    • n8n Automation & AI Agents Training

    Live
    How Gen AI is Reshaping Content, Code, and Commerce

    How Gen AI is Reshaping Content, Code, and Commerce

    Message
    About Us Contact Us Privacy Policy Terms Media Kit Partners C# Tutorials Consultants Ideas Report A Bug FAQs Certifications Sitemap Stories CSharp TV DB Talks Let's React Web3 Universe Interviews.help Jumpstart Blockchain Build with JavaScript

    ©2025 C# Corner.

    All contents are copyright of their authors.