找回密码
 立即注册

QQ登录

只需一步,快速开始

cqlongman

初级会员

4

主题

18

帖子

400

积分

初级会员

积分
400

活字格认证

cqlongman
初级会员   /  发表于:2012-12-21 09:44  /   查看:5597  /  回复:1
color=Red]问题描述:在页面中使用C1TileView控件,并且使用同一页面的Button事件,对C1TileView的C1TileViewItem的Content属性进行更新,这里的Content指向的是一个UserControl(如下所示:)
<UserControl xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"  x:Class="C1TitleViewDemo.ChartControl"
    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"
    mc:Ignorable="d"
    designHeight="300" designWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">     
        <c1:C1Chart x:Name="chart" ChartType="Line"></c1:C1Chart>
    </Grid>
</UserControl>

单击Button以后,界面(C1TileViewItem的缩略图)无任务变化,只有在最大化这个C1TileViewItem的时候,界面上的图形才发生变化。
[
我想问的是,如果在我点击Button以后,界面上的所有C1TileViewItem的缩略图都变化。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

1 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2012-12-21 14:24:00
沙发
回复 1楼cqlongman的帖子

cqlongman 你好,
猜测更新的 UserControl 并非全局变量。请把更新的 UserControl 设置为全局变量在测试。

如果没有解决问题,请发 Demo 到论坛调试。
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部