or
I have resolution problem in my application designed in MVVM pattern.When I reduce the resolution of screen,scroll apears but some part of application hides inside scroll .The behaviour should be like a scroll bar should appear and visit shuould not hide.
How can I avoid hiding of screen.
Thanx in advance
<
Style
x:Key
=
"RadDiagramShapeStyle1"
TargetType
=
"{x:Type telerik:RadDiagramShape}"
>
<
Setter
Property
=
"Foreground"
Value
=
"#FF333333"
/>
<
Setter
Property
=
"Background"
>
<
Setter.Value
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFFFB356"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFFFDEDE"
/>
<
GradientStop
Color
=
"#FFFF5D00"
Offset
=
"0.5"
/>
</
LinearGradientBrush
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"BorderBrush"
Value
=
"#FFB84600"
/>
<
Setter
Property
=
"FontSize"
Value
=
"11"
/>
<
Setter
Property
=
"ZIndex"
Value
=
"2"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"0"
/>
<
Setter
Property
=
"StrokeThickness"
Value
=
"1"
/>
<
Setter
Property
=
"Padding"
Value
=
"4"
/>
<
Setter
Property
=
"StrokeDashArray"
Value
=
"1 0"
/>
<
Setter
Property
=
"FocusVisualStyle"
Value
=
"{x:Null}"
/>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"VerticalContentAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"Geometry"
Value
=
"M0,0L60,0 60,40 0,40z"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:RadDiagramShape}"
>
<
Grid
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"MouseStates"
>
<
VisualState
x:Name
=
"Normal"
/>
<
VisualState
x:Name
=
"MouseOver"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"ActiveConectionStates"
>
<
VisualState
x:Name
=
"NormalActiveConnectionState"
/>
<
VisualState
x:Name
=
"ActiveConnectionInsideShape"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"ActiveSelectedBorder"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"ConnectorsAdornerVisibilityStates"
>
<
VisualState
x:Name
=
"ConnectorsAdornerCollapsed"
/>
<
VisualState
x:Name
=
"ConnectorsAdornerVisible"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"ConnectorsControl"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"SelectionStates"
>
<
VisualState
x:Name
=
"Selected"
/>
<
VisualState
x:Name
=
"SelectedInGroup"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"SelectedBorder"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Unselected"
/>
<
VisualState
x:Name
=
"SelectedAsGroup"
/>
</
VisualStateGroup
>
<
VisualStateGroup
x:Name
=
"EditMode"
>
<
VisualState
x:Name
=
"NormalMode"
/>
<
VisualState
x:Name
=
"NormalEditMode"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"NormalContent"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Collapsed</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"EditContent"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"TextBoxEditMode"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"NormalContent"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Collapsed</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Visibility"
Storyboard.TargetName
=
"EditTextBox"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
>
<
DiscreteObjectKeyFrame.Value
>
<
Visibility
>Visible</
Visibility
>
</
DiscreteObjectKeyFrame.Value
>
</
DiscreteObjectKeyFrame
>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
Grid
>
<
Path
x:Name
=
"Geometry"
Data
=
"{TemplateBinding Geometry}"
Fill
=
"{TemplateBinding Background}"
Opacity
=
"{TemplateBinding Opacity}"
Stretch
=
"Fill"
Stroke
=
"{TemplateBinding BorderBrush}"
StrokeThickness
=
"{TemplateBinding StrokeThickness}"
StrokeDashArray
=
"{TemplateBinding StrokeDashArray}"
/>
<
Border
x:Name
=
"SelectedBorder"
BorderBrush
=
"#FFADD6FF"
BorderThickness
=
"1"
Visibility
=
"Collapsed"
/>
<
Border
x:Name
=
"ActiveSelectedBorder"
BorderBrush
=
"#7FC92931"
BorderThickness
=
"2"
Visibility
=
"Collapsed"
/>
<
ContentPresenter
x:Name
=
"NormalContent"
ContentTemplate
=
"{TemplateBinding ContentTemplate}"
Content
=
"{TemplateBinding Content}"
ContentStringFormat
=
"{TemplateBinding ContentStringFormat}"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
Margin
=
"{TemplateBinding Padding}"
telerik:DiagramBehaviors.TextWrapping
=
"Wrap"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
/>
<
Primitives:ConnectorsControl
x:Name
=
"ConnectorsControl"
ItemContainerStyle
=
"{TemplateBinding ConnectorStyle}"
Visibility
=
"Collapsed"
/>
</
Grid
>
<
Grid
x:Name
=
"PART_RotationalPart"
>
<
ContentPresenter
x:Name
=
"EditContent"
ContentTemplate
=
"{TemplateBinding EditTemplate}"
Content
=
"{TemplateBinding Content}"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
Visibility
=
"Collapsed"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
/>
<
TextBox
x:Name
=
"EditTextBox"
AcceptsReturn
=
"True"
Visibility
=
"Collapsed"
>
<
TextBox.Style
>
<
Style
TargetType
=
"{x:Type TextBox}"
>
<
Setter
Property
=
"TextWrapping"
Value
=
"Wrap"
/>
<
Setter
Property
=
"TextAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"FontSize"
Value
=
"11"
/>
<
Setter
Property
=
"FontFamily"
Value
=
"Segoe UI"
/>
<
Setter
Property
=
"Foreground"
Value
=
"Black"
/>
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Stretch"
/>
<
Setter
Property
=
"VerticalAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"Margin"
Value
=
"5"
/>
<
Setter
Property
=
"Padding"
Value
=
"2"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type TextBox}"
>
<
Grid
x:Name
=
"RootElement"
>
<
Rectangle
Fill
=
"White"
Stroke
=
"#FF767676"
StrokeDashArray
=
"3 3"
UseLayoutRounding
=
"True"
/>
<
ScrollViewer
x:Name
=
"PART_ContentHost"
BorderThickness
=
"0"
Background
=
"Transparent"
Foreground
=
"{TemplateBinding Foreground}"
HorizontalContentAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
Padding
=
"{TemplateBinding Padding}"
VerticalContentAlignment
=
"{TemplateBinding VerticalContentAlignment}"
>
<
telerik:StyleManager.Theme
>
<
telerik:Office_BlackTheme
/>
</
telerik:StyleManager.Theme
>
</
ScrollViewer
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
TextBox.Style
>
</
TextBox
>
</
Grid
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
The property "SelectedItems" does not have an accessible setter.
<
Style
x:Key
=
"defaultAreaStyle"
TargetType
=
"c:ChartArea"
>
<
Setter
Property
=
"Template3D"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"c:ChartArea"
>
<
Grid
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
>
<
ItemsPresenter
/>
<
Grid
x:Name
=
"PART_Container"
/>
<
c:ViewportPanel
x:Name
=
"PART_CameraExtensionCanvas"
>
<
Viewport3D
x:Name
=
"PART_ViewPort3D"
>
<
Viewport3D.Camera
>
<
PerspectiveCamera
LookDirection
=
"0.2,-0.23,-1"
Position
=
"-40,37.5,195"
/>
</
Viewport3D.Camera
>
<
ModelVisual3D
>
<
ModelVisual3D.Content
>
<
Model3DGroup
>
<
AmbientLight
Color
=
"#FF606060"
/>
<
DirectionalLight
Color
=
"#FF989898"
Direction
=
"-0.5,-0.4,-1"
/>
</
Model3DGroup
>
</
ModelVisual3D.Content
>
</
ModelVisual3D
>
<
ContainerUIElement3D
>
<
ContainerUIElement3D.Transform
>
<
Transform3DGroup
>
<
TranslateTransform3D
OffsetX
=
"-50"
OffsetY
=
"-37.5"
/>
</
Transform3DGroup
>
</
ContainerUIElement3D.Transform
>
<
c:PlaneZX
AdornerLayer
=
"{x:Null}"
Height
=
"2"
SecondaryTicksSource
=
"{Binding AxisX.TickPoints, RelativeSource={RelativeSource TemplatedParent}}"
SecondaryAxis3DPoints
=
"0,0,10.1 100,0,10.1"
>
<
c:PlaneZX.PositionTransform
>
<
TranslateTransform3D
OffsetZ
=
"0"
OffsetX
=
"0"
OffsetY
=
"-2"
/>
</
c:PlaneZX.PositionTransform
>
</
c:PlaneZX
>
<
c:PlaneXY
AdornerLayer
=
"{x:Null}"
Depth
=
"2"
PrimaryTicksSource
=
"{Binding AxisX.TickPoints, RelativeSource={RelativeSource TemplatedParent}}"
SecondaryTicksSource
=
"{Binding AxisY.TickPoints, RelativeSource={RelativeSource TemplatedParent}}"
>
<
c:PlaneXY.PositionTransform
>
<
TranslateTransform3D
OffsetZ
=
"-2"
OffsetX
=
"0"
OffsetY
=
"0"
/>
</
c:PlaneXY.PositionTransform
>
</
c:PlaneXY
>
<
c:PlaneYZ
AdornerLayer
=
"{x:Null}"
PrimaryTicksSource
=
"{Binding AxisY.TickPoints, RelativeSource={RelativeSource TemplatedParent}}"
PrimaryAxis3DPoints
=
"0,0,10.1 0,75,10.1"
Width
=
"2"
>
<
c:PlaneYZ.PositionTransform
>
<
TranslateTransform3D
OffsetZ
=
"0"
OffsetX
=
"-2"
OffsetY
=
"0"
/>
</
c:PlaneYZ.PositionTransform
>
</
c:PlaneYZ
>
<
c:ItemsPresenter3D
/>
</
ContainerUIElement3D
>
</
Viewport3D
>
<
c:LabelsControl
x:Name
=
"PART_LabelsControl"
ClipToBounds
=
"True"
>
<
c:LabelsControl.ItemsPanel
>
<
ItemsPanelTemplate
/>
</
c:LabelsControl.ItemsPanel
>
<
c:LabelsControl.ItemTemplate
>
<
DataTemplate
>
<
c:LabelLayer
>
<
c:LabelLayer.ItemsPanel
>
<
ItemsPanelTemplate
>
<
c:LabelLayerItemsPanel
IsItemsHost
=
"True"
/>
</
ItemsPanelTemplate
>
</
c:LabelLayer.ItemsPanel
>
<
c:LabelLayer.ItemTemplate
>
<
DataTemplate
>
<
Border
BorderBrush
=
"#FF5C5C5C"
BorderThickness
=
"1"
CornerRadius
=
"3"
LayoutTransform
=
"{Binding Transform}"
>
<
Border.Background
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FFCCCCCC"
Offset
=
"1"
/>
<
GradientStop
Color
=
"White"
/>
</
LinearGradientBrush
>
</
Border.Background
>
<
TextBlock
Foreground
=
"Black"
FontWeight
=
"Bold"
HorizontalAlignment
=
"Center"
Margin
=
"4,0"
>
<
TextBlock.Text
>
<
Binding
>
<
Binding.Converter
>
<
c:LabelFormatConverter
/>
</
Binding.Converter
>
</
Binding
>
</
TextBlock.Text
>
</
TextBlock
>
</
Border
>
</
DataTemplate
>
</
c:LabelLayer.ItemTemplate
>
</
c:LabelLayer
>
</
DataTemplate
>
</
c:LabelsControl.ItemTemplate
>
</
c:LabelsControl
>
</
c:ViewportPanel
>
<
c:NoDataControl
x:Name
=
"PART_NoData"
Style
=
"{TemplateBinding NoDataControlStyle}"
/>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
New
QueryableEntityCollectionView(Of DataModelEF.tbUser)(DbContext,
"tbUsers"
)