This question is locked. New answers and comments are not allowed.
OK, I really think I'm missing something here guys. Below is the widow that I'm trying to display. I want it to pop at the top like the RadMessageBox does. Here's a list of things I've tried.
Like I said, here's the window, very simple usage:
HELP!
- Used the TopCenter value on the Placement property, it did pop at the top but the window contents went off the screen on both ends.
- Used the PlacementTarget for the page and FitToPlacementTarget for the size, the content ends up centered on the screen which i could live with but when you try to set margins on the first Grid in the window you guys are doing something internally to the Margins and they don't come out right.
- Did the same as above on the first "LayoutRoot" Grid.
- Did the same as above but set the content to RootFrame from the 'App' class in code.
- On each of those three things I tried playing with Vertical Alignment to push it to the top, only served to screw up the Margins like from above.
Like I said, here's the window, very simple usage:
<
telerikPrimatives:RadModalWindow
x:Name
=
"reminderView"
>
<
Grid
Background
=
"{StaticResource PhoneBackgroundBrush}"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
TextBlock
Grid.ColumnSpan
=
"2"
Margin
=
"12"
Style
=
"{StaticResource PhoneTextNormalStyle}"
Text
=
"{Binding LocalizedResources.ReminderMessageText, Source={StaticResource LocalizedStrings}}"
TextWrapping
=
"Wrap"
/>
<
TextBlock
Grid.Row
=
"1"
Style
=
"{StaticResource PhoneTextSubtleStyle}"
Text
=
"{Binding LocalizedResources.ReminderDateText, Source={StaticResource LocalizedStrings}}"
/>
<
telerikInput:RadDatePicker
Grid.Row
=
"2"
Grid.ColumnSpan
=
"2"
Value
=
"{Binding ReminderDate, Mode=TwoWay}"
/>
<
TextBlock
Grid.Row
=
"3"
Style
=
"{StaticResource PhoneTextSubtleStyle}"
Text
=
"{Binding LocalizedResources.ReminderTimeText, Source={StaticResource LocalizedStrings}}"
/>
<
telerikInput:RadTimePicker
Grid.Row
=
"4"
Grid.ColumnSpan
=
"2"
Value
=
"{Binding ReminderTime, Mode=TwoWay}"
/>
<
Button
Grid.Row
=
"5"
Content
=
"ok"
/>
<
Button
Grid.Row
=
"5"
Grid.Column
=
"1"
Content
=
"cancel"
/>
</
Grid
>
</
telerikPrimatives:RadModalWindow
>
HELP!