designer

Unable to load system.core when including oxyplot in WPF window XAML

£可爱£侵袭症+ 提交于 2019-12-12 16:33:12
问题 I get the following error in the designer when trying to include the oxyplot component. Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteException Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The system cannot find the file specified. at OxyPlot.PlotModel.Update(Boolean updateData) at OxyPlot.Wpf.Plot.UpdateModel(Boolean updateData) in c:\TeamCity\buildAgent\work

Text of UserControl dissappears in designer after compilation

心不动则不痛 提交于 2019-12-12 16:31:08
问题 I have the wierdest thing going on in my solution. I have a button, which I customly made. It inherits UserControl, and its text is represented as a Label inside that control. Naturally, I wanted the button's text to be overridden to set the Label's text: Either, /// <summary> /// Gets or sets the text that appears in the button /// </summary> [Category("Appearance"), Description("Gets or sets the text on the button.")] [Browsable(true)] public override string Text { get { return base.Text; }

Silverlight 4: “Invalid XAML” using Converter in DataTemplate

て烟熏妆下的殇ゞ 提交于 2019-12-12 11:08:34
问题 maybe you could help me understand why I get an unhandled exception "Invalid XAML" in Visual Studio 2010 designer when trying to do the following on a Page . I have a Converter named DateTimeConverter that converts a date into a German date string. The converter works fine. I've included the namespace and added the following to the page's resources: <navigation:Page.Resources> <myClasses:DateTimeConverter x:Key="dateTime" /> </navigation:Page.Resources> Now I have a list box that I want to

How to make user control partial classes aware of controls declared in the base class?

假装没事ソ 提交于 2019-12-12 10:49:53
问题 Do we have to do something special to have ASP.NET partial classes aware of controls that are declared in our user control's base classes? The partial classes keep generating declarations for controls in the base class which mean the controls in the base class get hidden and are null. 回答1: The CodeFileBaseClass attribute can be applied to @Page or @Control declarations to make the ASP.NET runtime aware of any controls declared in your base class. MSDN describes it as follows: Specifies the

Formatting Vertical Details Lines in Crystal Reports

旧街凉风 提交于 2019-12-12 02:55:11
问题 I'm using Crystal Reports for VS 2008 and having trouble formatting vertical table lines in the details section. Too Short When I adjust the height of the line to exactly the height of the bottom of the section: Then the line doesn't get applied to any items after the first in the list: Too Long If I drag it past the bottom of that section, then it runs amok and fills up the entire page Looks like this: Failed Attempts I've tried a bunch of different section and line heights. I've tried right

VS 2008, ASP.NET: Generate Local Resources

浪尽此生 提交于 2019-12-12 01:36:51
问题 I've build an simple control called Menu: namespace MyControls { public class MenuItem { public MenuItem() { Visible = true; } [Localizable(true)] public string Text { get; set; } [Localizable(false)] public string Link { get; set; } [DefaultValue(true)] public bool Visible { get; set; } } public class MenuDesigner : System.Web.UI.Design.ControlDesigner { ... } [ParseChildren(true, "Items")] [PersistChildren(false)] [Designer(typeof(MenuDesigner))] public class Menu : Control { ... public

How can I make my JSP project easier for a designer to work with

ⅰ亾dé卋堺 提交于 2019-12-11 22:09:17
问题 I have a Java/Spring MVC/JSP/JSTL webapp. We have a designer that gave us some pages to start with, but he's quite behind so we had to create some pages on our own, and obviously as the project has progressed other UI stuff has changed. I think one reason he's behind is because it's hard for him to work with the site. We haven't setup a development environment for him because that would include a database, Eclipse and Tomcat on his box and I worry that we would then spend an inordinate amount

WPF designer custom properties - dropdown

我怕爱的太早我们不能终老 提交于 2019-12-11 16:43:59
问题 I would like to have a drop down selection for a custom property on a User Control in WPF. Everything works fine when I use an Enum as the property: /// <summary> /// Interaction logic for Sample.xaml /// </summary> public partial class Sample : System.Windows.Controls.UserControl { public Sample() { InitializeComponent(); } [DefaultValue(Letters.A)] [Browsable(true)] [Category("ControlDisplay")] [Description("Letter")] public Letters Letter { get; set; } public enum Letters { A, B, C, D } }

Xaml designer doesn't show content of a usercontrol

人走茶凉 提交于 2019-12-11 16:14:21
问题 We have a specialized TabItem defined in xaml: <TabItem x:Class="MyApp.MyViewTab" xmlns:my="clr-namespace:MyApp"> <my:MyView /> </TabItem> and code behind: public class MyViewTab : TabItem . And MyView is a UserControl : MyView is correctly shown in the xaml designer and also at run time correctly displayed as the content of the TabItem. Why does the xaml designer not display the content of MyView ? It is a gray rectangle, top half light-gray, bottom half darker-gray. 回答1: Try splitting the

XAML Documents Not Opening In Visual Studio

爱⌒轻易说出口 提交于 2019-12-11 13:20:12
问题 I have been using Visual Studio Professional 2015 for a while now and recently updated to version 2. Since then I have been unable to open any of my .xaml documents. I simply get Visual Studio has encountered an unexpected error. when double clicking them and occasionally another message prompting me to look at the activity log where i am getting snippet at the bottom. I've re-installed probably about 6 times now removing any traces of program file folders, app data etc each time I do but