adorner

WPF Validation Control Template overlapping

自古美人都是妖i 提交于 2019-11-30 22:52:27
I've got a user control with a control template to show validation errors, validation template: <ControlTemplate x:Key="TextBoxPropertyValidationTemplate"> <StackPanel> <Border BorderBrush="Red" BorderThickness="1"> <AdornedElementPlaceholder x:Name="MyAdorner" /> </Border> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Image Grid.Column="0" MaxHeight="16" MaxWidth="16" Source="{Binding Source={StaticResource ValidationIcon}, Converter={StaticResource UriConverter}}" Margin="1" RenderOptions.BitmapScalingMode=

Using more than 144 adorners

☆樱花仙子☆ 提交于 2019-11-29 07:41:32
It appears that the maximum number of adorners that work without any breakage is 144. I have a ScrollView with a bunch of objects, and many of them come with adorners. The first 144 adorners are positioned correctly, but the rest are not. Note that it is an exceptional situation when there are so many; usually there are exactly zero adorners. Nevertheless, I'd like this to work properly even on that exceptional occasion. Leaving aside how this arbitrary (and very low) limit makes me feel, are there any practical work-arounds for this bug? At this time there is no known way of doing this. Which

Using more than 144 adorners

你说的曾经没有我的故事 提交于 2019-11-28 01:11:38
问题 It appears that the maximum number of adorners that work without any breakage is 144. I have a ScrollView with a bunch of objects, and many of them come with adorners. The first 144 adorners are positioned correctly, but the rest are not. Note that it is an exceptional situation when there are so many; usually there are exactly zero adorners. Nevertheless, I'd like this to work properly even on that exceptional occasion. Leaving aside how this arbitrary (and very low) limit makes me feel, are