Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 XAML Setter property bug

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
HBTeun Posted - Jun 17 2010 : 03:48:29 AM
Hi,

I found a bug:
To reproduce start a new silverlight application.
use the following code for the mainpage.xaml:

<UserControl x:Class="SilverlightApplication1.MainPage"
	     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	     mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="400">

	<UserControl.Resources>
		<Style  TargetType="Grid"
			x:Key="gridStyle">
			<Setter Property="ToolTipService"
		</Style>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot"
		  Background="White"
		  >
	</Grid>
</UserControl>


Now press . after ToolTipService and before ".
The listbox with options will now open and if you choose one of the options you get for example:

<Setter Property="ToolTipService.ToolTipService.Placement""

instead of the expected:

<Setter Property="ToolTipService.Placement"


21   L A T E S T    R E P L I E S    (Newest First)
support Posted - Dec 16 2011 : 1:58:43 PM
case=47217 is fixed in build 1862
feline Posted - Jul 16 2010 : 11:36:14 AM
The listbox appearing when there is no need and doubling the line is:

case=47392

When you are seeing extra, unwanted text inserted into your main solution, is it following this same pattern? Text is inserted directly on CTRL-SPACE, and then a listbox appears?
HBTeun Posted - Jul 16 2010 : 05:19:02 AM
I just thought the automatically inserting of "toolkit" is probably intended behaviour of VS2010.

The other option ("sdk") is already defined so it only has 1 option left and inserts it. What goes wrong is that the whole line is added again.
feline Posted - Jul 13 2010 : 4:59:49 PM
Waiting for the VA context and definition fields was the missing step. I have put in a bug report for them taking a while to appear:

case=47217

I am seeing the same thing you are now. Tooltip being inserted directly, I am seeing this same effect with VA disabled.

I have tried disabling VA via the menu item:

VAssistX -> Enable/Disable Visual Assist X

and also stopping VA from loading by disabling it in:

IDE tools menu -> Extension Manager...

and restarting the IDE. I am not sure if this is an IDE problem, or a solution specific problem, but "tooltip" being inserted directly is not a VA problem.

The listbox, when "toolkit" is inserted by the IDE the caret is jumping to after the closing double quote, which is then where VA is trying to insert the item you have selected from the listbox.
HBTeun Posted - Jul 09 2010 : 03:53:08 AM
I have to wait till the VAX bar is loaded (this takes a focus change, such as switching to different page and back again).

Then I force open the listbox by pressing ctrl+space when the caret is next to the slash "\\" and the listbox is opened after "toolkit" is added.
feline Posted - Jul 08 2010 : 11:54:52 AM
In the sample project, how, exactly, are you able to reproduce a listbox appearing and then placing the full text at the end of the line?

Currently I am unable to reproduce any listbox problems in the sample project.
HBTeun Posted - Jul 08 2010 : 06:00:26 AM
Sorry again for the long wait.

In the Sample project I'm indeed seeing the same effect.
Although there is still an listbox opened. And if I choose an item from this list it gets pasted behind the line, like what I described in my last reply.

That it inserts "toolkit" automatically is not correct either. I would expect to be able to choose between "sdk" and "toolkit".
feline Posted - Jul 02 2010 : 10:02:39 AM
I am seeing a different effect here. Testing VS2010 on a Vista 32 bit machine, and using the settings I emailed you, and your test solution with the missing "Grid" added on line 15, I cannot reproduce this problem.

This namespaces line already exists, at line 7. So I am loading VS2010, loading the solution, and going to line 7. I then delete "sdk" from the end of the line, giving me the incomplete line:

xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/|"


when I now press CTRL-SPACE I do not get any form of listbox, instead the word "toolkit" is automatically inserted, leaving me with the line:

xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"


If you do the same test in the sample project you sent me, are you seeing this, or are you actually seeing a listbox? This suggests there may be a key difference in the configuration of our two machines.
HBTeun Posted - Jul 02 2010 : 05:43:23 AM
Sorry it took so long to answer.

I used your settings and can indeed say that I can't reproduce the error's using the given test cases.
It does still happen in an other case.

If you want to complete the namespaces (xmlns:....) for example:

I want the following namespace:
xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"

And have (missing the "sdk" in the end:
xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/"

I have the caret before the last quote and press ctrl+space to force the listbox open and chose the corect namespace I get:
xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
feline Posted - Jun 28 2010 : 3:19:23 PM
I have found something, but I don't know what that something is. I can reproduce the problem here, but the problem is very fragile. If I restart VS2010 then the problem goes away, and it is hard to get it back again.

While the problem is happening, if I edit VA's options then listboxes in this XAML file become "random" and difficult to use and work with. This extra problem also goes away after an IDE restart.

It is almost as if there is some form of corruption in either your IDE or VA settings, since somehow the settings or behaviour is changing after an IDE restart.

I have just re-exported the IDE and VA settings from my test machine, and emailed them to you via case=46331.
HBTeun Posted - Jun 28 2010 : 07:38:38 AM
Have you found anything?
feline Posted - Jun 25 2010 : 8:07:34 PM
I have managed to reproduce the listbox problem under Vista after importing your IDE settings. So now I just need to find out what it is about your settings that is triggering this problem.
HBTeun Posted - Jun 25 2010 : 05:39:42 AM
That's the correct test.
I noticed I mad some mistakes inside the sample. My apologies for that.

Change line 15 from:
<Style TargetType=""

To:
<Style TargetType="Grid"

Then try again to place:
<Setter Property=""
and inside the quotes force open the listbox (ctrl+space).
feline Posted - Jun 24 2010 : 1:42:30 PM
I have the files, thank you for this:

case=46331

I have imported both your VA and IDE settings into a winXP test machine, and so far I cannot reproduce the problem. It is possible I am running the wrong test.

I have opened the "MainPage.xaml" file from the project SilverlightApplication3. I went to the end of line 16, pressed enter to make a new line, and then typed:

<Setter Property="|"

This appears to be the right test, based on the screen shots you have posted, but there is no sign of any listbox. I am getting listboxes sometimes inside strings. Am I performing the right test, in the right file?

Now installing Silverlight 4 on a Vista 32bit test machine to see if this makes any difference.
HBTeun Posted - Jun 24 2010 : 03:23:19 AM
I'm using Vista 32bit with all updates.

And I've send the files.
feline Posted - Jun 23 2010 : 3:56:35 PM
As you say, VS2010 does not install Silverlight 4. I have now installed Silverlight 4 SDK, and created a new C# Silverlight 4 application.

I am now getting listboxes inside strings, but no sign of any problems with VA 1827.

Can you please export your settings, and send them to me, along with a zip of your test XAML solution. Maybe with your solution and settings I will be able to reproduce.

Which OS are you using?

VA and IDE settings are exported via:

VA Options -> Performance -> Export Settings
IDE tools menu -> Import and Export Settings -> Export selected environment settings

Please submit the files via the form:

http://www.wholetomato.com/support/contact.asp

including this thread ID or URL in the description, so we can match it up.
HBTeun Posted - Jun 23 2010 : 08:59:34 AM
I do have Visual Studio 2010 Pro Power Tools installed but when I disable it in extension manager and restart. Nothing changes for these issues.

Could you try it in a new WPF application (it's the same editor for XAML files and I have the same bugs there)? Because maybe VS2010 has not installed the SDK version of Silverlight and is this the reason you don't get a listbox.



Btw I work using .NET 4 and Silverlight 4 and I thought the VS2010 installation only installs .Net 4 and Silverliht 3 SDK.

feline Posted - Jun 22 2010 : 09:49:40 AM
On two different machines, one with and one without VA installed, I am never seeing listboxes inside / after double quotes. Once I am into a string, listboxes stop happening. Listboxes are appearing quite readily outside of strings for me, on both machines.

So far I cannot see any obvious IDE settings that might effect this.

I have tried this on a default C# Silverlight application as well, so bypassing anything "odd" about the test code you have posted here.

Do you have any other IDE extensions installed?

Do you have any idea why you are getting listboxes inside strings and I am not?
HBTeun Posted - Jun 22 2010 : 06:25:30 AM
I'm using VS2010 Pro.

first:

Have you pressed the . after ToolTipService?





I will try it at an other PC tonight, maybe it's settings (although if I turn off VAX it works correct).

second:

I've added an extra namespace (xmlns:sdk=...), to be able to do this you have to add the System.Windows.Controls.dll to the references.

this is what happens when no namespace is used (correct behaviour):


If you type sdk: between the quotes there should be a new listbox opening with the options from the namespace.
When you press escape and then force the listbox open it works correct.



The behaviour looks like case=42354 that I reported a couple of months ago.
feline Posted - Jun 21 2010 : 12:40:54 PM
Which IDE are you using?

Testing in VS2010 I am not getting any listbox at all when typing a dot after "ToolTipService". I have tried this both with VA 1827 and on a clean machine, with no VA installed.

For the second bug, the line:

<Style TargetType=

I am not sure what I am supposed to be doing here. When I select "TargetType" from the listbox I end up with the line:

<Style TargetType=""

the caret between the double quotes, and no listbox.
HBTeun Posted - Jun 17 2010 : 03:57:29 AM
Also found that you get a listbox when you typed (correct and very welcome behaviour)
<Style TargetType=

but when you choose in that listbox an xml namespace for example x: the list box won't open.

I'm using version: 1827

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000