Advanced Forum Search Results
-
In my example, I did not present any content other than the empty
grid, so I think you are seeing what I had intended. The empty grid
was just there to show the content size. To see the bug, remove the
ContentControl.Template element (and its children). Then the size of
the interior content will be reduced to zero ...
-
When you say that all the elements using the color change, I think you mean that they will be different immediately in the design tool and that they will be different the next time you run the application. On the other hand, changing the Color of a SolidColorBrush will change the color of anything painted with it in the ...
-
VS Design Mode is still there in SIlverlight 3, it is just not displayed by default.
You just have to move your cursor to the bottom of the Xaml display, just beneath the horizontal scroll bar, and when the cursor changes from the usual pointer to a horizontal line with an up and down arrow (you may have to hunt for it, there seems to be only a 1 ...
-
The parent UserControl is not the problem. The problem is that Blend cannot utilize the pre-compiled ColorGrid control as a child. There is nothing about the use of the ColorGrid control that requires it to be recompiled. The same bug would hold if ColorGrid were part of an external, pre-compiled dll.
Visual Studio's design ...
-
Yeah, I could do that, except that my real situation is somewhat more involved. I just wanted to reduce the bug to a simple example.
The thing that is weird is that Blend obviously is running my C# code, because my outer control can do other things, like control layout or set properties that are seen by TemplateBinding. It seems that Blend must ...
-
For example, create a class ColorGrid...public class ColorGrid : Grid
{
public ColorGrid()
{
Resources.Add("Brush_Fill", new SolidColorBrush(Colors.Red));
}
}
Reference it in XAML... <local:ColorGrid Background="Blue" Width="100" Height="100">
<Ellipse ...
-
Thanks Mark,
It may be incorrect to specify the font path the other way, but it is documented:
http://msdn.microsoft.com/en-us/library/system.windows.media.fontfamily(VS.95).aspx
Unfortunately, there appears to be a bug with the more explicit syntax in the designer also. In Visual Studio 2008, the assembly shortname is ignored and the ...
-
In Silverlight 2, a ContentControl with no specified Template property behaved as though it had a ControlTemplate consisting of a single ContentPresenter. In SIlverlight 3 this has changed in an unfortunate way, as this Xaml illustrates... <Grid Width="250" Height="150" Background="Pink">
...
-
I have a project in which the designer has specified a font, in this case it is Frutiger. No problem.
But I did have a problem. Some code that worked as I expected in Visual Studio and in Blend 3 behaved differently in the running application. I can reproduce the problem by putting the following text block on my page...<TextBlock ...
-
[quote user="shacktoms"](BTW, is there a way to make IE8 enter a newline into one of these boxes without using Notepad to copy a newline to the clipboard and then using Control-V in IE8 to paste it into the box?)
[/quote]
Aha! Ctrl-M seems to do the trick!