How to save and update Appointment when Use My ChildWindow replacement AppointmentDialog

2 posts, 0 answers
  1. zhao
    zhao avatar
    1 posts
    Member since:
    Jun 2010

    Posted 07 Sep 2011 Link to this post

    hi

    I copy EditAppointmentTemplate's Elements to My ChildWindow's LayoutRoot Content.And use follow code

    void rsv_ShowDialog(object sender, ShowDialogEventArgs e)
           {
               if (e.DialogViewModel is AppointmentDialogViewModel)           
               {
                   e.Cancel = true;              
                   NewMissionWindow nmw = new NewMissionWindow();
                   nmw.DataContext = e.DialogViewModel;
                   nmw.Show();
               }
            }

    but when i double click scheduleView show this window, the save and cancel button is disabled.  how to  save or update  this appointment.

        Title="任务详情"
        Width="600" Height="486">
        <sdk:ChildWindow.Resources>
            <Style x:Key="PinkButtonStyle1" TargetType="Button">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="Button">
                            <Grid>
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0:0:0.5" To="1.1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="image" d:IsOptimized="True">
                                                    <DoubleAnimation.EasingFunction>
                                                        <BackEase EasingMode="EaseOut"/>
                                                    </DoubleAnimation.EasingFunction>
                                                </DoubleAnimation>
                                                <DoubleAnimation Duration="0:0:0.5" To="1.1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="image" d:IsOptimized="True">
                                                    <DoubleAnimation.EasingFunction>
                                                        <BackEase EasingMode="EaseOut"/>
                                                    </DoubleAnimation.EasingFunction>
                                                </DoubleAnimation>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0:0:0.5" To="1.1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="image" d:IsOptimized="True">
                                                    <DoubleAnimation.EasingFunction>
                                                        <BackEase EasingMode="EaseOut"/>
                                                    </DoubleAnimation.EasingFunction>
                                                </DoubleAnimation>
                                                <DoubleAnimation Duration="0:0:0.5" To="1.1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="image" d:IsOptimized="True">
                                                    <DoubleAnimation.EasingFunction>
                                                        <BackEase EasingMode="EaseOut"/>
                                                    </DoubleAnimation.EasingFunction>
                                                </DoubleAnimation>
                                                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="image">
                                                    <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="image">
                                                    <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                                                    <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
                                                </DoubleAnimationUsingKeyFrames>
                                                <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ellipse" d:IsOptimized="True"/>
                                                <DoubleAnimation Duration="0" To="0.263" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Offset)" Storyboard.TargetName="ellipse" d:IsOptimized="True"/>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled"/>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <Viewbox>
                                    <Grid Height="64" Width="62">
                                        <Image x:Name="image" Margin="4,0,0,6" Source="/NewMapApp;component/Images/png-0576.png" Stretch="Fill" RenderTransformOrigin="0.5,1" IsHitTestVisible="False">
                                            <Image.RenderTransform>
                                                <CompositeTransform/>
                                            </Image.RenderTransform>
                                        </Image>
                                        <Ellipse x:Name="ellipse" Height="6" VerticalAlignment="Bottom" RenderTransformOrigin="0.5,0.5" IsHitTestVisible="False">
                                            <Ellipse.RenderTransform>
                                                <CompositeTransform/>
                                            </Ellipse.RenderTransform>
                                            <Ellipse.Fill>
                                                <RadialGradientBrush>
                                                    <GradientStop Color="Black" Offset="0"/>
                                                    <GradientStop Color="White" Offset="1"/>
                                                    <GradientStop Color="#FF101010" Offset="0.065"/>
                                                </RadialGradientBrush>
                                            </Ellipse.Fill>
                                        </Ellipse>
                                        <Path Data="M49,6 L43.5,2.75 L39,2 L33,3 L29.75,7 L28.5,11 L29.75,14.5 L26,18.75 L22,19 L17.5,19.75 L14,23 L11.75,27.25 L12.25,33.5 L13.75,38 L16.25,41.25 L9.75,51.25 L8.5,56.5 L14,54.75 L21.75,46 L26.75,48 L31.25,49 L35.75,49 L38.25,48 L43.5,41 L43.5,32.75 L47,28.5 L51.75,28.25 L56,24.25 L58.25,21.25 L57,15.25 L53.75,10 z" Margin="8.5,2,3.75,7.5" Stretch="Fill" UseLayoutRounding="False" Fill="#00000000" Cursor="Hand"/>
                                    </Grid>
                                </Viewbox>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
            <Style x:Key="AddButtonStyle" TargetType="Button">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="Button">
                            <Grid x:Name="grid" Background="{StaticResource HighlightBrush}" RenderTransformOrigin="0.5,0.5">
                                <Grid.RenderTransform>
                                    <CompositeTransform/>
                                </Grid.RenderTransform>
                                <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                        <VisualState x:Name="Normal"/>
                                        <VisualState x:Name="MouseOver">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0:0:0.5" To="1.1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True">
                                                    <DoubleAnimation.EasingFunction>
                                                        <BackEase EasingMode="EaseOut"/>
                                                    </DoubleAnimation.EasingFunction>
                                                </DoubleAnimation>
                                                <DoubleAnimation Duration="0:0:0.5" To="1.1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True">
                                                    <DoubleAnimation.EasingFunction>
                                                        <BackEase EasingMode="EaseOut"/>
                                                    </DoubleAnimation.EasingFunction>
                                                </DoubleAnimation>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Pressed">
                                            <Storyboard>
                                                <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="grid" d:IsOptimized="True"/>
                                                <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="grid" d:IsOptimized="True"/>
                                                <DoubleAnimation Duration="0:0:0.5" To="1.1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True">
                                                    <DoubleAnimation.EasingFunction>
                                                        <BackEase EasingMode="EaseOut"/>
                                                    </DoubleAnimation.EasingFunction>
                                                </DoubleAnimation>
                                                <DoubleAnimation Duration="0:0:0.5" To="1.1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True">
                                                    <DoubleAnimation.EasingFunction>
                                                        <BackEase EasingMode="EaseOut"/>
                                                    </DoubleAnimation.EasingFunction>
                                                </DoubleAnimation>
                                            </Storyboard>
                                        </VisualState>
                                        <VisualState x:Name="Disabled"/>
                                    </VisualStateGroup>
                                </VisualStateManager.VisualStateGroups>
                                <ContentPresenter x:Name="contentPresenter" Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
                                    <ContentPresenter.RenderTransform>
                                        <CompositeTransform/>
                                    </ContentPresenter.RenderTransform>
                                </ContentPresenter>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </sdk:ChildWindow.Resources>
        <sdk:ChildWindow.Style>
            <StaticResource ResourceKey="ChildWindowStyle"/>
        </sdk:ChildWindow.Style>
        <Grid x:Name="LayoutRoot" Margin="0,0,13,0">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
     
            <Button  x:Name="OKButton" Content="保存" Click="OKButton_Click" Width="75" Height="23" Margin="0,0,79,0" HorizontalAlignment="Right" Grid.Row="1" />
            <Button x:Name="CancelButton" Content="取消" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Grid.Row="1" />
             
    <Grid Margin="0,10,92,-1"  >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
     
                <StackPanel Orientation="Horizontal" d:LayoutOverrides="Width" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0">
                    <TextBlock x:Name="ShowAs" telerik:LocalizationManager.ResourceKey="ShowAs" Margin="12,0,19,1" VerticalAlignment="Center" Foreground="{StaticResource StrongBrush}" Text="显示为:" FontSize="13.667" />
                    <telerik:RadComboBox x:Name="PART_TimeMarkers" Margin="0,0,2,2" Width="110" IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" EmptyText="重要程度" ItemsSource="{Binding TimeMarkers}" SelectedItem="{Binding Occurrence.Appointment.TimeMarker, Mode=TwoWay}" ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="无" ItemTemplate="{StaticResource TimeMarkerComboBoxItemContentTemplate}" SelectionBoxTemplate="{StaticResource TimeMarkerComboBoxItemContentTemplate}" telerik:StyleManager.Theme="{StaticResource Theme}" FontSize="13.333" />
                    <telerik:RadComboBox x:Name="PART_Categories" Margin="0,0,10,2" Width="120" IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" EmptyText="分类" ItemsSource="{Binding Categories}" SelectedItem="{Binding Occurrence.Appointment.Category, Mode=TwoWay}" ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="无" ItemTemplate="{StaticResource CategoryComboBoxItemContentTemplate}" SelectionBoxTemplate="{StaticResource CategoryComboBoxItemContentTemplate}" telerik:StyleManager.Theme="{StaticResource Theme}" FontSize="13.333" />
                    <telerik:RadToggleButton x:Name="HighImportaceButton" Width="22" IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" IsChecked="{Binding IsHighImportance, Mode=TwoWay}" ToolTipService.ToolTip="重要性 - 高" Margin="0,0,3,0" Visibility="Collapsed">               
                        <Path Data="F1M307.1162,229.3838L306.5852,242.8828L303.0832,242.8828L302.5752,229.3838z M307.3632,247.0218C307.3632,247.6588,307.1372,248.1968,306.6792,248.6338C306.2252,249.0708,305.6222,249.2898,304.8762,249.2898C304.1372,249.2898,303.5312,249.0668,303.0622,248.6188C302.5922,248.1728,302.3572,247.6408,302.3572,247.0218C302.3572,246.3638,302.5952,245.8278,303.0742,245.4078C303.5582,244.9898,304.1522,244.7808,304.8762,244.7808C305.6012,244.7808,306.2002,244.9918,306.6662,245.4158C307.1312,245.8378,307.3632,246.3738,307.3632,247.0218"
                            Fill="{StaticResource StrongBrush}" Stretch="Fill" Width="3.686" Height="16" />                   
                    </telerik:RadToggleButton>
                    <telerik:RadToggleButton x:Name="LowImportaceButton" Width="22" IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" IsChecked="{Binding IsLowImportance, Mode=TwoWay}" ToolTipService.ToolTip="重要性 - 低" Margin="0" Visibility="Collapsed">
                        <Path Data="F1M329.667,242.3496L324.512,236.8906L324.512,241.3296L331.411,248.6386L338.28,241.3636L338.28,236.9226L333.152,242.3496L333.152,230.0356L329.667,230.0356z"
                            Fill="{StaticResource StrongBrush}" Stretch="Fill" Width="10.136" Height="13.696"/>
                    </telerik:RadToggleButton>
                </StackPanel>
     
                <telerik:RadToolBar x:Name="AppointmentToolbar"  BorderThickness="0 0 0 1"  GripVisibility="Collapsed" Grid.Row="0" Margin="-1 0 -1 3" telerik:StyleManager.Theme="{StaticResource Theme}" Background="White" Visibility="Collapsed">
                    <telerik:RadButton x:Name="EditRecurrenceButton" Command="local:RadScheduleViewCommands.EditRecurrenceRule" Visibility="Collapsed">
                        <ToolTipService.ToolTip>
                            <ToolTip telerik:LocalizationManager.ResourceKey="EditRecurrence" telerik:StyleManager.Theme="{StaticResource Theme}" />
                        </ToolTipService.ToolTip>
                        <TextBlock Margin="6 0" telerik:LocalizationManager.ResourceKey="EditRecurrence" Foreground="{StaticResource StrongBrush}" />
                    </telerik:RadButton>
                    <telerik:RadButton x:Name="EditParentAppointmentButton" IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" Command="local:RadScheduleViewCommands.EditParentAppointment" Visibility="{Binding CanEditParentAppointment, Converter={StaticResource BooleanToVisibilityConverter}}">
                        <ToolTipService.ToolTip>
                            <TextBlock telerik:LocalizationManager.ResourceKey="EditParentAppointment" telerik:StyleManager.Theme="{StaticResource Theme}" />
                        </ToolTipService.ToolTip>
                        <TextBlock Margin="4 0" telerik:LocalizationManager.ResourceKey="EditParentAppointment" Foreground="{StaticResource StrongBrush}" />
                    </telerik:RadButton>
                    <telerik:RadToolBarSeparator Visibility="Collapsed" />
                </telerik:RadToolBar>
                <Border x:Name="AppointmentCategory" Grid.Row="1" Height="20" Margin="6 6" Background="{Binding SelectedItem.CategoryBrush, ElementName=PART_Categories}" Visibility="{Binding SelectedItem, Converter={StaticResource NullToVisibilityConverter}, ElementName=PART_Categories}">
                    <TextBlock Margin="6 0" Text="{Binding SelectedItem.DisplayName, ElementName=PART_Categories}" VerticalAlignment="Center"  />
                </Border>
     
                <Grid x:Name="Details" Grid.Row="2" Margin="6">
                    <Grid.Resources>
                        <telerik:InputMode x:Key="RadDateTimePickerInputModeDatePicker">DatePicker</telerik:InputMode>
                    </Grid.Resources>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="auto"/>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />                                    
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                         
                        <ColumnDefinition Width="70" />
                         
                         
                        <ColumnDefinition Width="0.558*" />
                        <ColumnDefinition Width="0.442*" />
                    </Grid.ColumnDefinitions>
     
                    <TextBlock  Grid.Row="0" Grid.Column="0" Margin="6" telerik:LocalizationManager.ResourceKey="Subject" Text="标题" FontSize="13.667" />
                    <TextBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Margin="3" IsReadOnly="{Binding IsReadOnly}" Text="{Binding Occurrence.Appointment.Subject, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" />
                    <TextBlock  Grid.Row="1" Grid.Column="0" Margin="6" telerik:LocalizationManager.ResourceKey="Subject" Text="地址" FontSize="13.667" />
                    <TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Margin="3" IsReadOnly="{Binding IsReadOnly}" Text="{Binding Occurrence.Appointment.Address, Mode=TwoWay}" telerik:StyleManager.Theme="{StaticResource Theme}" />
     
                    <TextBlock  Grid.Row="2" Grid.Column="0" Margin="6" telerik:LocalizationManager.ResourceKey="Body" Text="正文" FontSize="13.667" />
                    <TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Margin="3" IsReadOnly="{Binding IsReadOnly}" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" VerticalScrollBarVisibility="Auto" Text="{Binding Occurrence.Appointment.Body, Mode=TwoWay}" TextWrapping="Wrap" telerik:StyleManager.Theme="{StaticResource Theme}" TextOptions.TextHintingMode="Fixed" Height="100" AcceptsReturn="True"  />
     
                    <TextBlock  Grid.Row="3" Grid.Column="0" Margin="6" telerik:LocalizationManager.ResourceKey="StartTime" Text="开始时间" FontSize="13.667" />
                     
                     
                    <telerik:RadDateTimePicker Grid.Row="3" Grid.Column="1" Margin="3" IsReadOnly="{Binding IsReadOnly}" Culture="{Binding DefaultCulture, Source={StaticResource LocalizationManager}}" SelectedValue="{Binding ActualStart, Mode=TwoWay}" IsEnabled="{Binding IsNotRecurrent}" telerik:StyleManager.Theme="{StaticResource Theme}" DateTimeWatermarkContent="输入时间" ErrorTooltipContent="格式错误">
                        <telerik:RadDateTimePicker.InputMode>
                            <Binding Path="IsAllDayEvent" Converter="{StaticResource BoolToInputModeConverter}">
                                <Binding.ConverterParameter>
                                    <telerik:InputMode>DatePicker</telerik:InputMode>
                                </Binding.ConverterParameter>
                            </Binding>
                        </telerik:RadDateTimePicker.InputMode>
                    </telerik:RadDateTimePicker>
                     
     
                    <TextBlock  Grid.Row="4" Grid.Column="0" Margin="6" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="EndTime"  telerik:StyleManager.Theme="{StaticResource Theme}" Text="结束时间" FontSize="13.667" />
                     
                     
                    <telerik:RadDateTimePicker Grid.Row="4" Grid.Column="1" Margin="3" IsReadOnly="{Binding IsReadOnly}" Culture="{Binding DefaultCulture, Source={StaticResource LocalizationManager}}" SelectedValue="{Binding ActualEnd, Mode=TwoWay}" IsEnabled="{Binding IsNotRecurrent}" telerik:StyleManager.Theme="{StaticResource Theme}" DateTimeWatermarkContent="输入时间" ErrorTooltipContent="格式错误">
                        <telerik:RadDateTimePicker.InputMode>
                            <Binding Path="IsAllDayEvent" Converter="{StaticResource BoolToInputModeConverter}">
                                <Binding.ConverterParameter>
                                    <telerik:InputMode>DatePicker</telerik:InputMode>
                                </Binding.ConverterParameter>
                            </Binding>
                        </telerik:RadDateTimePicker.InputMode>
                    </telerik:RadDateTimePicker>
                    <TextBlock  Grid.Row="5" Grid.Column="0" Margin="6" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="EndTime"  telerik:StyleManager.Theme="{StaticResource Theme}" Text="执行人" FontSize="13.667" />
                     
                                    <!-- DEPRECATED: No more visual support for all day events
                        <Path Grid.Row="2" Grid.RowSpan="2" Grid.Column="2" HorizontalAlignment="Left" Margin="-3 0 0 0" Width="12" Height="22" Stroke="DarkGray" Data="M0,0 L12,0 M0,22 L12,22 M8,0 L8,22 M8,22 L10,18 M8,22 L6,18" SnapsToDevicePixels="true" />
                        <CheckBox x:Name="AllDayEventCheckbox" Grid.Row="2" Grid.RowSpan="2" Grid.Column="2" Margin="18 0 0 0" VerticalAlignment="Center" IsChecked="{Binding Path=IsAllDayEvent, Mode=TwoWay}" IsEnabled="{Binding IsNotRecurrent}" telerik:LocalizationManager.ResourceKey="AllDayEvent" telerik:StyleManager.Theme="{StaticResource Theme}" />-->
                    <StackPanel Grid.Column="1" HorizontalAlignment="Left" Orientation="Horizontal" Grid.Row="5" VerticalAlignment="Center" Margin="3,3,0,3">
                        <Image Source="/NewMapApp;component/Images/15.png" Stretch="Fill" Height="30" Width="30" Margin="0,0,5,0"/>
                        <Button x:Name="BtnLinkPeopleCar1" Height="30" Style="{StaticResource AddButtonStyle}" VerticalAlignment="Center" Width="30" Margin="0,0,5,0" Click="BtnLinkPeopleCar_Click">
                            <Viewbox VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2">
                                <Grid Height="43" Width="41">
                                    <Viewbox Height="33" VerticalAlignment="Bottom" Margin="7,0,1,0" >
                                        <Grid Height="103" Width="103">
                                            <Path Stretch="Fill" Fill="#FFFFFFFF" Data="M 632.153,144.3L 637.239,144.403C 649.902,144.403 659.815,124.517 664.789,133.529L 664.789,185.521C 664.789,189.25 662.085,192.273 658.749,192.273L 611.039,192.273C 607.704,192.273 605,189.25 605,185.521L 605,133.529C 610.614,124.105 620.319,144.3 632.153,144.3 Z M 634.644,95.3568C 645.737,95.3568 654.729,104.283 654.729,115.295C 654.729,126.306 645.737,135.233 634.644,135.233C 623.551,135.233 614.558,126.306 614.558,115.295C 614.558,104.283 623.551,95.3568 634.644,95.3568 Z M 683.988,157.135L 687.714,157.211C 696.989,157.211 704.25,142.645 707.893,149.246L 707.893,187.328C 707.893,190.059 705.856,191.972 703.413,191.972L 672,192C 669.557,192 668.331,189.91 668.331,187.179L 668.336,149.279C 668.342,142.607 675.321,157.135 683.988,157.135 Z M 685.813,121.286C 693.938,121.286 700.525,127.824 700.525,135.89C 700.525,143.955 693.938,150.494 685.813,150.494C 677.688,150.494 671.101,143.955 671.101,135.89C 671.101,127.824 677.688,121.286 685.813,121.286 Z " Height="96.917" UseLayoutRounding="False" Width="102.893"/>
                                        </Grid>
                                    </Viewbox>
                                    <Path Data="M5.0000014,0 L10.000002,0 L10.000002,5 L15,5 L15,10 L10.000002,10 L10.000002,15 L5.0000014,15 L5.0000014,10 L0,10 L0,5 L5.0000014,5 z" Fill="White" Height="15" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Top" Stroke="{StaticResource HighlightBrush}" HorizontalAlignment="Left" Width="15" />
                                </Grid>
                            </Viewbox>
                        </Button>
                    </StackPanel>
                    <StackPanel Grid.Column="1" HorizontalAlignment="Left" Orientation="Horizontal" Grid.Row="6" VerticalAlignment="Center" Margin="3,3,0,3">
                        <Image Source="/NewMapApp;component/Images/2.jpg" Stretch="Fill" Height="30" Width="30" Margin="0,0,5,0"/>
                        <Button x:Name="BtnLinkEquipmentCar1" Height="30" Style="{StaticResource AddButtonStyle}" VerticalAlignment="Center" Width="30" Margin="0,0,5,0" Click="BtnLinkEquipmentCar_Click">
                            <Viewbox HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2">
                                <Grid Height="49" Width="42">
                                    <Viewbox >
                                        <Canvas Width="115.143" Height="89.2392" Margin="0,38,0,0">
                                            <Path Width="113.591" Height="87.629" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="#FFFFFFFF" Data="M 29.3573,0C 38.8898,0 46.6175,7.72766 46.6175,17.2603C 46.6175,20.6822 45.6217,23.8716 43.904,26.5544L 52.4289,26.5544C 50.7112,23.8716 49.7154,20.6822 49.7154,17.2603C 49.7154,7.72766 57.4431,0 66.9756,0C 76.5082,0 84.2359,7.72766 84.2359,17.2603C 84.2359,21.0358 83.0236,24.5283 80.9671,27.3696C 87.1867,29.205 92.1446,33.9825 94.2294,40.0909C 94.4507,40.0042 94.6766,39.9185 94.9066,39.8336L 107.69,35.7027C 111.209,34.8912 113.591,38.3447 113.591,41.6039L 113.591,72.2903C 113.591,75.5495 111.43,79.003 107.69,78.1916L 95.1525,73.3477C 94.9458,73.271 94.74,73.1926 94.536,73.112C 92.1523,81.492 84.4413,87.629 75.2969,87.629L 20,87.629C 8.95432,87.629 0,78.6747 0,67.629L 0,46.5544C 0,37.1638 6.47188,29.2849 15.1986,27.1345C 13.2437,24.3366 12.097,20.9324 12.097,17.2603C 12.097,7.72766 19.8247,0 29.3573,0 Z M 14.4556,35.5756C 11.7397,35.5756 9.53792,37.7773 9.53792,40.4933C 9.53792,43.2092 11.7397,45.4109 14.4556,45.4109C 17.1716,45.4109 19.3733,43.2092 19.3733,40.4933C 19.3733,37.7773 17.1716,35.5756 14.4556,35.5756 Z M 28.0285,35.5755C 25.3126,35.5755 23.1108,37.7773 23.1108,40.4932C 23.1108,43.2092 25.3125,45.4109 28.0285,45.4109C 30.7445,45.4109 32.9462,43.2092 32.9462,40.4932C 32.9462,37.7773 30.7444,35.5755 28.0285,35.5755 Z "/>
                                            <Path Width="105.386" Height="61.907" Canvas.Left="9.887" Canvas.Top="27.229" Stretch="Fill" StrokeThickness="3" StrokeLineJoin="Round" Stroke="#FFFFFFFF" Fill="{StaticResource HighlightBrush}" Data="F1 M 82.202,28.8647C 46.5252,32.7035 26.4941,57.9617 17.4242,74.0407C 9.46588,74.7074 11.4016,87.6248 11.4016,87.6248C 11.4016,87.6248 20.601,87.6253 32.9626,87.626C 48.8561,87.627 69.977,87.6282 83.4944,87.629C 84.7518,87.7392 96.3085,86.8541 95.2822,73.4003C 96.5051,73.8836 105.32,77.3076 107.623,78.1674C 110.189,79.0533 113.643,76.6437 113.579,72.8287C 113.579,72.8287 113.576,45.4732 113.579,41.3677C 113.385,37.213 110.262,35.0245 107.776,35.6693L 95.273,39.7079C 95.7437,34.5001 92.8199,31.0994 92.8199,31.0994C 89.6812,27.9061 82.202,28.8647 82.202,28.8647 Z " UseLayoutRounding="False"/>
                                            <Path Width="105.386" Height="61.907" Canvas.Left="9.887" Canvas.Top="27.229" Stretch="Fill" StrokeThickness="3" StrokeLineJoin="Round" Stroke="#FFFFFFFF" Fill="#7EFFFFFF" Data="F1 M 82.202,28.8647C 46.5252,32.7035 26.4941,57.9617 17.4242,74.0407C 9.46588,74.7074 11.4016,87.6248 11.4016,87.6248C 11.4016,87.6248 20.601,87.6253 32.9626,87.626C 48.8561,87.627 69.977,87.6282 83.4944,87.629C 84.7518,87.7392 96.3085,86.8541 95.2822,73.4003C 96.5051,73.8836 105.32,77.3076 107.623,78.1674C 110.189,79.0533 113.643,76.6437 113.579,72.8287C 113.579,72.8287 113.576,45.4732 113.579,41.3677C 113.385,37.213 110.262,35.0245 107.776,35.6693L 95.273,39.7079C 95.7437,34.5001 92.8199,31.0994 92.8199,31.0994C 89.6812,27.9061 82.202,28.8647 82.202,28.8647 Z " UseLayoutRounding="False"/>
                                        </Canvas>
                                    </Viewbox>
                                    <Path Data="M5.0000014,0 L10.000002,0 L10.000002,5 L15,5 L15,10 L10.000002,10 L10.000002,15 L5.0000014,15 L5.0000014,10 L0,10 L0,5 L5.0000014,5 z" Fill="White" HorizontalAlignment="Left" Height="15" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Top" Width="15" Stroke="{StaticResource HighlightBrush}" />
                                </Grid>
                            </Viewbox>
                        </Button>
                    </StackPanel>
                    <TextBlock  Grid.Row="6" Grid.Column="0" Margin="6" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="EndTime"  telerik:StyleManager.Theme="{StaticResource Theme}" Text="出动设备" FontSize="13.667" />
                    <TextBlock  Grid.Row="7" Grid.Column="0" Margin="6" VerticalAlignment="Center" telerik:LocalizationManager.ResourceKey="EndTime"  telerik:StyleManager.Theme="{StaticResource Theme}" Text="空间位置" FontSize="13.667" />
                    <StackPanel Grid.Column="1" Orientation="Horizontal" Grid.Row="7" VerticalAlignment="Center" Margin="3,3,0,3" d:LayoutOverrides="Width">
                        <TextBlock TextWrapping="Wrap" Text="东经12.345  北纬22.987" VerticalAlignment="Center" Margin="0,0,5,0" FontSize="14"/>
                        <Button x:Name="BtnLinkGisCar1" Height="30" Style="{StaticResource AddButtonStyle}" VerticalAlignment="Center" Width="30" Margin="0,0,5,0" Click="BtnLinkGisCar_Click">
                            <Viewbox HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2">
                                <Grid Height="43.5" Width="41.5">
                                    <Viewbox Width="40" Height="40" Margin="2,4,0,0" >
                                        <Grid Height="68" Width="68">
                                            <Path Data="M 219.306,-87.1075C 256.859,-87.4907 287.613,-57.3583 287.996,-19.8049C 288.38,17.7485 258.247,48.5022 220.694,48.8854C 183.14,49.2686 152.387,19.1361 152.003,-18.4173C 151.62,-55.9707 181.753,-86.7244 219.306,-87.1075 Z" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Stroke="White" UseLayoutRounding="False" Margin="0,0,-0.333,-0.333" StrokeThickness="2">
                                                <Path.RenderTransform>
                                                    <CompositeTransform ScaleX="-1"/>
                                                </Path.RenderTransform>
                                            </Path>
                                            <Path x:Name="path1" Stretch="Fill" StrokeLineJoin="Round" Data="F1 M 444.624,-156.026C 444.887,-155.737 445.556,-154.991 445.556,-154.991L 445.556,-154.991C 445.556,-154.991 445.505,-154.289 445.471,-153.85L 445.471,-153.85C 445.807,-154.229 446.931,-155.494 447.22,-155.819L 447.22,-155.819C 446.473,-155.906 444.928,-156.086 444.711,-156.111L 444.624,-156.026 Z M 449.899,-155.41C 449.876,-155.207 449.844,-154.915 449.843,-154.873L 449.843,-154.873C 450.083,-154.897 450.263,-154.915 450.344,-154.921L 450.344,-154.921C 450.285,-155.107 450.256,-155.211 450.228,-155.299L 450.228,-155.299C 450.171,-155.333 450.076,-155.391 450.037,-155.414L 450.037,-155.414C 449.995,-155.413 449.968,-155.411 449.899,-155.41 Z M 397.693,-143.161L 397.688,-143.157L 397.668,-143.118L 397.337,-142.921L 397.337,-142.921C 397.097,-142.698 396.564,-142.267 395.217,-141.191L 395.217,-141.191C 395.191,-140.502 394.967,-139.233 394.769,-138.238L 394.759,-138.179L 394.715,-138.073L 394.609,-137.903C 394.368,-137.518 394.271,-137.222 394.237,-137.063L 394.237,-137.063C 394.877,-136.451 395.884,-135.022 396.489,-134.118L 396.489,-134.118C 396.633,-134.054 398.708,-133.133 399.009,-132.998L 399.009,-132.998C 399.079,-133.069 399.291,-133.281 399.351,-133.339L 399.351,-133.339C 399.399,-133.457 401.876,-139.553 401.876,-139.553L 401.876,-139.553C 401.876,-139.553 404.484,-140.299 404.656,-140.349L 404.656,-140.349C 404.771,-140.485 406.912,-142.979 406.912,-142.979L 406.912,-142.979C 406.912,-142.979 410.711,-143.881 411.759,-144.13L 411.759,-144.13C 411.816,-144.282 413.323,-148.374 413.323,-148.374L 413.323,-148.374C 413.323,-148.374 414.813,-148.145 415.727,-148.005L 415.727,-150.149C 415.727,-150.149 418.581,-150.762 418.781,-150.805L 418.781,-150.805C 418.873,-150.917 419.103,-151.191 419.103,-151.191L 419.103,-151.191C 419.105,-151.191 419.581,-151.755 419.777,-151.987L 419.777,-151.987C 419.731,-152.251 419.485,-153.618 419.432,-153.923L 419.432,-153.923C 411.612,-151.679 404.099,-147.973 397.693,-143.161 Z M 417.703,-146.711C 417.697,-146.779 417.665,-147.167 417.647,-147.369L 417.647,-147.369C 417.527,-147.403 417.331,-147.462 417.027,-147.553L 417.027,-147.553C 417.169,-147.373 417.397,-147.089 417.703,-146.711 Z M 471.277,-147.122C 471.511,-146.921 472.449,-146.106 472.583,-145.991L 472.583,-145.991C 472.752,-146.01 473.265,-146.067 473.669,-146.113L 473.669,-146.113C 473.569,-146.171 471.895,-147.179 471.404,-147.477L 471.404,-147.477C 471.343,-147.306 471.321,-147.243 471.277,-147.122 Z M 450.275,-144.707C 450.275,-144.707 445.584,-142.978 445.324,-142.882L 445.324,-142.882C 445.229,-142.621 443.089,-136.738 443.089,-136.738L 443.089,-136.738C 443.089,-136.738 440.059,-135.573 439.684,-135.429L 439.684,-135.429C 439.684,-135.421 439.841,-131.837 439.873,-131.07L 439.873,-131.07C 440.532,-131.375 443.309,-132.657 443.309,-132.657L 444.215,-127.934C 444.215,-127.934 444.173,-127.727 444.145,-127.594L 444.145,-127.594C 444.568,-127.637 445.1,-127.689 445.265,-127.705L 445.265,-127.705C 445.42,-127.903 447.192,-130.194 447.192,-130.194L 447.139,-130.082L 448.625,-132.529C 448.625,-132.529 449.096,-133.294 449.197,-133.458L 449.197,-133.458C 449.165,-133.663 448.891,-135.306 448.891,-135.306L 453.428,-139.281C 453.428,-139.281 452.629,-133.675 452.585,-133.357L 452.585,-133.357C 452.775,-133.191 453.593,-132.474 453.865,-132.237L 453.865,-132.237C 454.201,-132.49 455.996,-133.838 455.996,-133.838L 459.097,-131.977L 454.987,-128.689L 452.611,-128.689C 452.44,-128.462 450.361,-125.691 450.361,-125.691L 450.361,-128.267C 450.301,-128.219 449.419,-127.535 449.419,-127.533L 447.445,-125.161L 447.359,-125.057L 441.064,-124.706C 441.064,-124.706 440.76,-126.537 440.643,-127.25L 440.643,-127.25C 440.46,-127.093 440.356,-127.005 440.279,-126.937L 440.279,-124.401L 436.111,-121.03L 430.204,-122.395C 430.204,-122.395 431.591,-124.127 431.803,-124.393L 431.803,-124.393C 431.207,-125.518 430.283,-127.342 430.053,-128.255L 430.053,-128.255C 430.053,-128.255 429.995,-128.619 429.947,-128.926L 429.947,-128.926C 429.675,-128.709 429.192,-128.323 429.029,-128.193L 429.029,-128.193C 429.188,-127.811 430.315,-125.107 430.315,-125.107L 430.315,-125.107C 430.315,-125.107 429.064,-122.425 428.759,-121.774L 428.759,-121.774C 429.516,-121.719 434.397,-121.373 434.397,-121.373L 434.397,-121.373C 434.397,-121.373 430.769,-119.299 430.393,-119.083L 430.393,-119.083C 430.46,-118.847 430.541,-118.563 430.584,-118.422L 430.584,-118.422C 430.929,-118.371 433.567,-117.995 433.567,-117.995L 433.567,-117.995C 433.567,-117.995 431.753,-115.727 431.624,-115.569L 431.624,-113.791L 428.827,-112.991C 428.827,-112.991 426.128,-113.185 425.64,-113.219L 425.64,-113.219C 425.569,-112.738 424.872,-108.134 424.784,-107.559L 424.784,-107.559C 425.411,-107.574 430.657,-107.686 431.144,-107.698L 431.144,-110.495L 437.329,-114.662L 441.228,-114.217L 441.228,-114.217C 441.256,-114.611 441.363,-116.213 441.363,-116.213L 441.363,-116.213C 441.363,-116.213 442.265,-115.039 442.377,-114.89L 443.109,-116.142L 448.652,-113.851C 448.652,-113.851 450.919,-108.726 451.02,-108.491L 451.02,-108.491C 451.055,-108.447 451.399,-107.977 451.76,-107.483L 451.76,-109.609L 452.523,-112.666C 452.523,-112.666 456.292,-108.023 456.689,-107.539L 456.689,-107.539C 457.088,-107.939 459.751,-110.599 459.751,-110.599L 459.751,-110.599C 459.751,-110.599 458.741,-106.565 458.607,-106.027L 458.607,-106.027C 459.109,-105.925 461.273,-105.493 461.273,-105.493L 460.817,-100.958L 454.329,-101.279C 454.244,-101.291 454.208,-101.294 450.604,-102.129L 450.604,-102.129C 450.536,-102.129 449.765,-102.123 449.581,-102.123L 449.581,-102.123C 449.516,-101.727 449.227,-99.9967 449.227,-99.9967L 444.793,-102.049C 444.793,-102.049 444.449,-102.741 444.335,-102.97L 444.335,-102.97C 444.017,-102.986 441.595,-103.121 441.595,-103.121L 441.595,-103.121C 441.595,-103.121 441.231,-105.57 441.171,-105.967L 441.171,-105.967C 440.741,-106.021 436.409,-106.559 436.287,-106.575L 436.287,-106.575C 436.156,-106.538 430.648,-104.919 430.648,-104.919L 430.648,-104.919C 430.547,-104.899 428.645,-104.761 426.997,-104.643L 426.997,-104.643C 426.837,-104.421 424.593,-101.277 424.541,-101.203L 424.541,-101.203C 424.512,-101.117 423.691,-98.6514 423.691,-98.6514L 423.691,-98.6514C 423.691,-98.6514 418.363,-92.2567 418.213,-92.078L 418.213,-92.078C 418.219,-91.8474 418.46,-84.3767 418.468,-84.1354L 418.468,-84.1354C 418.637,-83.9673 425.455,-77.1474 425.683,-76.9207L 425.683,-76.9207C 425.999,-76.982 434.283,-78.5873 434.283,-78.5873L 434.283,-78.5873C 434.283,-78.5873 436.72,-76.69 436.881,-76.5647L 438.82,-76.5647L 439.763,-74.6793L 439.452,-71.8847L 439.429,-71.9087C 439.455,-71.6767 439.457,-71.2713 439.457,-70.5633L 439.457,-70.5633C 439.539,-70.4193 442.501,-65.306 442.501,-65.306L 443.173,-60.258C 443.173,-60.258 441.155,-59.25 440.856,-59.0993L 440.856,-55.7274C 440.932,-55.5887 442.495,-52.722 442.495,-52.722L 442.495,-52.722C 442.495,-52.722 443.525,-46.7914 443.569,-46.5353L 443.569,-46.5353C 443.777,-46.398 446.2,-44.7833 446.2,-44.7833L 446.2,-44.7833C 446.2,-44.7833 445.988,-41.218 445.952,-40.594L 445.952,-40.594C 446.588,-40.6633 452.371,-41.2914 452.564,-41.3113L 452.564,-41.3113C 452.705,-41.446 457.699,-46.1927 457.788,-46.2753L 457.788,-46.2753C 457.837,-46.3847 458.953,-48.894 458.953,-48.894L 458.953,-48.894C 458.953,-48.894 459.952,-49.4913 460.179,-49.6287L 460.179,-49.6287C 460.196,-49.9433 460.449,-54.526 460.449,-54.526L 460.449,-54.526C 460.449,-54.526 464.447,-58.522 464.625,-58.6994L 464.625,-63.2193C 464.604,-63.2993 463.429,-67.7153 463.429,-67.7153L 466.837,-72.6727C 466.837,-72.6727 471.091,-75.8647 471.225,-75.9673L 471.225,-75.9673C 471.291,-76.1207 472.971,-80.2007 473.017,-80.3113L 473.017,-81.982L 471.827,-81.982C 471.657,-81.81 468.944,-79.098 468.944,-79.098L 467.256,-82.5127L 467.256,-82.5127C 467.012,-82.8487 466.465,-83.698 464.776,-86.3287L 462.137,-90.43C 462.137,-90.43 461.911,-92.4727 461.883,-92.7313L 461.883,-92.7313C 461.673,-92.8714 460.229,-93.8327 460.229,-93.8327L 459.239,-99.7794L 460.763,-100.366L 465.748,-92.5807C 465.748,-92.5807 465.391,-91.3327 465.284,-90.966L 465.284,-90.966C 465.672,-90.7727 467.715,-89.7514 467.715,-89.7514L 467.715,-89.7514C 467.715,-89.7514 468.551,-87.5207 468.603,-87.3847L 468.603,-87.3847C 468.705,-87.2887 470.803,-85.4007 470.96,-85.2593L 471.775,-85.2593C 471.904,-85.326 478.849,-88.798 479.069,-88.9087L 479.069,-88.9087C 479.141,-89.1113 480.255,-92.2713 480.388,-92.6433L 480.388,-92.6433C 480.041,-92.8967 475.541,-96.1673 475.541,-96.1673L 486.368,-96.1673L 489.439,-93.1007L 489.439,-91.9727L 492.235,-91.9727L 492.235,-88.422C 492.281,-88.3074 495.244,-81.038 495.244,-81.038L 495.244,-81.038C 495.245,-81.0314 495.577,-79.734 495.667,-79.3887L 495.84,-79.3887C 496.001,-79.6194 497.248,-81.3967 497.348,-81.5393L 497.348,-86.154L 503.423,-91.318C 503.423,-91.318 504.335,-91.5913 504.667,-91.6913L 504.667,-91.6913C 504.043,-112.501 494.035,-131.45 477.167,-143.737L 477.167,-143.737C 477.011,-143.725 476.304,-143.669 475.791,-143.629L 475.791,-143.629C 476.095,-143.093 476.973,-141.555 476.973,-141.555L 472.727,-141.555C 472.727,-141.555 472.191,-142.091 472.009,-142.273L 472.009,-142.273C 471.668,-142.17 465.744,-140.393 465.744,-140.393L 465.744,-142.319C 465.733,-142.321 465.643,-142.345 465.576,-142.362L 465.576,-142.362C 465.632,-141.971 465.717,-141.358 465.717,-141.358L 463.071,-138.379L 459.656,-136.671L 458.444,-140.918L 461.167,-140.918C 461.285,-141.085 461.6,-141.529 461.791,-141.793L 461.791,-141.793C 461.473,-142.077 460.316,-143.105 460.172,-143.231L 457.231,-143.231C 457.231,-143.231 456.055,-144.994 455.971,-145.122L 455.971,-145.122C 455.843,-145.185 454.004,-146.105 453.788,-146.214L 453.788,-146.214C 453.537,-146.106 450.275,-144.707 450.275,-144.707 Z M 470.28,-144.165L 470.28,-144.165C 470.321,-144.241 470.348,-144.289 470.365,-144.319L 470.32,-144.354L 470.2,-144.227 Z M 416.803,-139.157C 417.207,-138.915 418.155,-138.346 418.307,-138.254L 418.307,-138.254C 418.496,-138.289 419.5,-138.471 419.597,-138.49L 419.597,-138.49C 419.683,-138.541 420.712,-139.175 421.007,-139.357L 421.007,-139.357C 420.995,-139.403 420.987,-139.443 420.965,-139.527L 420.965,-139.527C 420.733,-139.598 419.323,-140.041 419.149,-140.094L 419.149,-140.094C 418.976,-140.027 417.267,-139.343 416.803,-139.157 Z M 374.96,-112.406C 374.996,-112.399 375.415,-112.315 375.681,-112.262L 375.681,-112.262C 375.788,-112.637 376.06,-113.59 376.06,-113.59L 378.437,-116.305L 382.184,-116.305C 382.18,-116.366 382.179,-116.429 382.179,-116.429L 382.179,-116.429C 382.179,-116.429 382.249,-116.446 382.316,-116.463L 382.316,-116.463C 382.007,-116.819 380.828,-118.167 380.676,-118.342L 377.947,-118.342L 380.208,-121.734L 380.325,-121.807C 381.823,-122.726 382.201,-122.915 382.385,-122.983L 384.28,-123.826L 384.28,-123.826C 384.28,-123.826 386.581,-124.847 386.864,-124.977L 386.864,-124.977C 386.899,-125.209 386.987,-125.842 387.012,-126.017L 387.012,-126.017C 386.864,-126.226 384.991,-128.91 384.991,-128.91L 384.823,-129.155C 384.823,-129.155 385.279,-130.745 385.368,-131.069L 385.368,-131.069C 380.899,-125.418 377.4,-119.146 374.96,-112.406 Z M 424.809,-124.686C 424.796,-124.397 424.76,-123.481 424.744,-123.143L 425.411,-123.143C 425.545,-123.31 425.96,-123.831 426.055,-123.95L 426.055,-123.95C 426.059,-124.03 426.077,-124.37 426.096,-124.785L 426.096,-124.785C 425.769,-124.759 425.14,-124.711 424.809,-124.686 Z M 386.795,-121.337C 386.795,-121.337 385.593,-120.498 385.333,-120.313L 385.333,-120.313C 385.716,-120.174 388.244,-119.255 388.432,-119.186L 388.432,-119.186C 388.581,-119.254 388.984,-119.431 389.205,-119.531L 389.205,-120.365C 389.029,-120.522 387.941,-121.503 387.864,-121.571L 387.864,-121.571C 387.736,-121.59 387.324,-121.649 387.228,-121.665L 387.228,-121.665C 387.091,-121.559 386.795,-121.337 386.795,-121.337 Z M 440.709,-110.275C 440.828,-110.29 440.968,-110.307 440.968,-110.307L 440.968,-110.307C 440.992,-110.663 441.129,-112.729 441.221,-114.109L 441.221,-114.109C 441.211,-114.013 440.799,-110.933 440.709,-110.275 Z M 445.815,-110.423L 446.173,-108.458L 446.173,-108.458C 446.257,-108.546 446.828,-109.127 447.005,-109.307L 447.005,-110.515C 446.839,-110.685 444.812,-112.734 444.812,-112.734L 444.948,-112.679C 444.66,-112.839 444.104,-113.254 443.004,-114.077L 443.004,-114.077C 444.143,-112.595 445.815,-110.423 445.815,-110.423 Z M 436.053,-109.127L 436.051,-109.131L 436.048,-109.127 Z M 444.964,-107.903C 445.159,-107.767 445.233,-107.715 445.361,-107.627L 445.361,-107.627C 445.564,-107.834 445.888,-108.167 446.159,-108.445L 446.159,-108.445C 446.135,-108.433 445.405,-108.103 444.964,-107.903 Z M 453.207,-105.477C 453.312,-105.331 453.353,-105.271 453.419,-105.181L 453.419,-105.181C 453.608,-105.205 454.085,-105.265 454.277,-105.289L 454.277,-105.477M 370.975,-91.29C 371.423,-91.2327 373.285,-90.9993 373.391,-90.986L 373.391,-90.986C 372.559,-91.1607 371.637,-91.3527 371.637,-91.3527L 371.637,-91.3527C 371.637,-91.3527 371.285,-91.5447 370.987,-91.7073L 370.987,-91.7073C 370.981,-91.502 370.979,-91.4393 370.975,-91.29 Z M 372.44,-88.762C 372.76,-88.6807 373.055,-88.6087 373.172,-88.578L 373.172,-88.578C 373.347,-88.6607 375.199,-89.5314 375.499,-89.6713L 375.499,-90.5487C 375.283,-90.5927 374.561,-90.7433 373.628,-90.938L 373.628,-90.938C 373.612,-90.9047 372.713,-89.2593 372.44,-88.762 Z M 379.511,-88.7114L 379.811,-88.7114C 379.881,-88.8353 379.935,-88.9274 380.005,-89.0527L 379.964,-89.1194L 379.964,-89.1194C 379.772,-88.9447 379.652,-88.8353 379.511,-88.7114 Z M 371.349,-82.3447C 372.915,-67.954 379.291,-54.2394 389.316,-43.6594L 389.316,-43.6594C 391.064,-45.782 391.336,-46.358 391.363,-46.422L 391.363,-46.422C 391.329,-46.6767 391.307,-47.102 391.268,-47.862L 391.176,-49.7914L 391.252,-50.4167L 391.409,-50.81C 391.409,-50.81 395.143,-52.1433 395.367,-52.2233L 395.367,-52.2233C 395.471,-52.43 397.529,-56.5434 397.603,-56.6953L 397.603,-56.6953C 397.585,-56.8673 397.193,-61.054 397.193,-61.054L 397.193,-61.054C 397.193,-61.054 398.945,-61.346 399.22,-61.3913L 399.22,-61.3913C 399.344,-61.6633 400.584,-64.3487 400.625,-64.4367L 400.625,-64.4367C 400.635,-64.5247 400.791,-65.9407 400.824,-66.234L 400.824,-66.234C 400.552,-66.434 398.447,-67.986 398.447,-67.986L 398.447,-67.986C 398.447,-67.986 397.583,-68.6247 397.461,-68.7167L 397.461,-68.7167C 397.297,-68.7327 394.853,-68.9767 394.853,-68.9767L 389.833,-70.2247L 389.269,-70.3673C 389.269,-70.3673 389.559,-72.11 389.603,-72.3793L 389.603,-72.3793C 389.395,-72.5873 386.44,-75.5407 386.284,-75.7007L 386.284,-75.7007C 386.053,-75.714 380.824,-76.0047 380.824,-76.0047L 380.655,-76.3047C 380.24,-77.0287 380.037,-77.586 379.996,-78.006L 379.996,-78.006C 379.695,-78.3273 379.175,-78.986 378.383,-80.0154L 378.383,-80.0154C 378.383,-80.0154 377.94,-80.582 377.803,-80.7593L 377.803,-80.7593C 377.603,-80.8207 373.264,-82.166 373.264,-82.166L 373.141,-82.326C 372.843,-82.722 372.529,-83.0873 372.281,-83.3527L 372.281,-83.3527C 372.149,-83.21 371.504,-82.5113 371.349,-82.3447 Z M 498.236,-78.278C 498.239,-78.2647 498.296,-77.562 498.323,-77.234L 498.323,-77.234C 498.415,-77.2233 498.437,-77.2207 498.517,-77.21L 498.517,-77.21C 498.643,-77.3754 498.851,-77.6553 498.976,-77.826L 498.976,-77.826C 498.883,-78.038 498.681,-78.4927 498.611,-78.6474L 498.607,-78.6487C 498.475,-78.5154 498.339,-78.3807 498.236,-78.278 Z M 472.395,-57.9007C 472.395,-57.9007 469.481,-57.0447 469.229,-56.97L 469.229,-56.97C 469.14,-56.7727 468.731,-55.878 468.657,-55.718L 469.435,-54.1673L 467.992,-51.7633C 467.992,-51.7633 467.819,-51.5913 467.689,-51.4593L 467.689,-51.4593C 467.911,-51.1047 469.367,-48.75 469.496,-48.5407L 469.496,-48.5407C 469.633,-48.5154 470.02,-48.45 470.217,-48.418L 470.217,-49.3834L 471.615,-52.3687C 471.615,-52.3887 473.119,-57.7647 473.187,-58.0073L 473.187,-58.0073C 473.171,-58.118 473.041,-59.098 473.019,-59.2567L 473.019,-59.2567C 472.743,-58.6553 472.395,-57.9007 472.395,-57.9007 Z " Margin="3.151,3.73,2.792,12.149" UseLayoutRounding="False" Stroke="#FF454545" StrokeThickness="0.2" RenderTransformOrigin="0.5,0.5" Fill="White">
                                                <Path.RenderTransform>
                                                    <CompositeTransform/>
                                                </Path.RenderTransform>
                                            </Path>
                                        </Grid>
                                    </Viewbox>
                                    <Path Data="M5.0000014,0 L10.000002,0 L10.000002,5 L15,5 L15,10 L10.000002,10 L10.000002,15 L5.0000014,15 L5.0000014,10 L0,10 L0,5 L5.0000014,5 z" Fill="White" HorizontalAlignment="Left" Height="15" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Top" Width="15" Stroke="{StaticResource HighlightBrush}" />
                                </Grid>
                            </Viewbox>
                        </Button>
                    </StackPanel>
                     
     
                </Grid>
     
    <!-- Resource Editor -->
                <Grid Grid.Row="3" Margin="3" Visibility="{Binding ResourceTypesVisibility}">
                     
                    <telerik:ItemsControl x:Name="PART_Resources" Margin="3" IsTabStop="false" BorderBrush="{x:Null}" BorderThickness="0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" IsEnabled="{Binding IsReadOnly, Converter={StaticResource InvertedBooleanConverter}}" ItemsSource="{Binding ResourceTypes}" ItemTemplateSelector="{StaticResource ResourcesEditorItemTemplateSelector}" Visibility="{Binding ResourceTypesVisibility}" />
                     
                     
                    <TextBlock HorizontalAlignment="Center" Text="You can only change the resources by opening the series" Margin="3" Visibility="{Binding ResourceTypesVisibility, Converter={StaticResource InvertedVisibilityConverter}}" />
                </Grid>
     
                <StackPanel Grid.Row="4" Margin="13 6" HorizontalAlignment="Right" Orientation="Horizontal">
                    <!--telerik:RadWindow.ResponseButton="Accept" -->
                    <!---->
                    <telerik:RadButton x:Name="rbtnSave" Margin="2" MinWidth="84" Command="telerik:WindowCommands.Confirm" telerik:StyleManager.Theme="{StaticResource Theme}" Content="保存" FontSize="12">
                        <ToolTipService.ToolTip>
                            <TextBlock telerik:LocalizationManager.ResourceKey="SaveAndClose" telerik:StyleManager.Theme="{StaticResource Theme}" />
                        </ToolTipService.ToolTip>
                    </telerik:RadButton>
                    <telerik:RadButton x:Name="rbtnCancel" Margin="2" MinWidth="84" Command="telerik:WindowCommands.Cancel" telerik:RadWindow.ResponseButton="Cancel" telerik:StyleManager.Theme="{StaticResource Theme}" Content="取消" FontSize="12" />
                     
                </StackPanel>
            </Grid>
        </Grid>
    </sdk:ChildWindow>

     

  2. Yana
    Admin
    Yana avatar
    4713 posts

    Posted 13 Sep 2011 Link to this post

    Hello Zhao,

    I will suggest a different approach to change the style of the EditAppointmentDialog window.

    To replace the RadWindow with a ChildWindow you need to create a new class that is a descendant of ChildWindow and implements the ISchedulerDialogHost interface. Please check this forum thread for more details about this approach, try it and if you have any additional questions, write to us again.

    Kind regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top