Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TelerikWindowManager - proper sizing of content in Window
If the view shown by WindowManager is a UserControl, size definitions (Width/Height and also Min/Max values) will be tranferred to the hosting RadWindow. This makes resizing of a dialog to work properly, stretching the content of the view.
- Loading branch information
1 parent
c13b4f0
commit d3e4a12
Showing
2 changed files
with
65 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
<UserControl x:Class="Examples.TelerikWindowManager.DialogView" | ||
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" | ||
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" | ||
mc:Ignorable="d" | ||
d:DesignHeight="300" | ||
d:DesignWidth="400" | ||
Height="400" | ||
Width="600"> | ||
|
||
<Grid x:Name="LayoutRoot" | ||
Background="White"> | ||
|
||
<TextBlock Text="Dialog view" | ||
FontSize="26" | ||
Margin="10" /> | ||
|
||
<telerik:RadButton Content="Close" | ||
x:Name="Close" | ||
Width="100" | ||
Height="26" | ||
Margin="20" | ||
VerticalAlignment="Bottom" | ||
HorizontalAlignment="Right" /> | ||
</Grid> | ||
</UserControl> | ||
<UserControl x:Class="Examples.TelerikWindowManager.DialogView" | ||
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" | ||
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" | ||
mc:Ignorable="d" | ||
d:DesignHeight="300" | ||
d:DesignWidth="400" | ||
MinHeight="200" | ||
Height="300" | ||
MinWidth="300" | ||
Width="400"> | ||
|
||
<Grid x:Name="LayoutRoot" | ||
Background="White"> | ||
|
||
<TextBlock Text="Dialog view" | ||
FontSize="26" | ||
Margin="10" /> | ||
|
||
<telerik:RadButton Content="Close" | ||
x:Name="Close" | ||
Width="100" | ||
Height="26" | ||
Margin="20" | ||
VerticalAlignment="Bottom" | ||
HorizontalAlignment="Right" /> | ||
</Grid> | ||
</UserControl> |