求大神用wpf给做一个求圆盘x2 y5 2 9绕

WPF菜鸟提问!求大神赐教啊啊啊啊!!~~~~~~~~~~~~~~~~
[问题点数:40分,结帖人Joanna_yan]
WPF菜鸟提问!求大神赐教啊啊啊啊!!~~~~~~~~~~~~~~~~
[问题点数:40分,结帖人Joanna_yan]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
2012年6月 .NET技术大版内专家分月排行榜第一
2012年6月 .NET技术大版内专家分月排行榜第一
2012年6月 .NET技术大版内专家分月排行榜第一
2012年6月 .NET技术大版内专家分月排行榜第一
2012年6月 .NET技术大版内专家分月排行榜第一
本帖子已过去太久远了,不再提供回复功能。所有回答(1)
既然是使用MVVM,那么在VM里面是不会去访问界面控件,而是通过绑定或者消息来实现的。
对于MVVM你的理解可能还需要多一些,我这里有一篇文章可以参考&/chenxizhang/archive//2197786.html
园豆:2332
&&&您需要以后才能回答,未注册用户请先。我正在写一个WPF项目,遇到一个难题,求各位大神指导…(2) - C#当前位置:& &&&我正在写一个WPF项目,遇到一个难题,求各位大神指我正在写一个WPF项目,遇到一个难题,求各位大神指导…(2)&&网友分享于:&&浏览:5次//
Indonesian
Belarusian
Lithuanian
Vietnamese
Faeroese 共&2&页:
12345678910
12345678910
12345678910 上一篇:下一篇:文章评论相关解决方案 12345678910 Copyright & &&版权所有想做成这种效果
可是不管怎么调都是这样的
Menu的图片是png,所以只有左边的图标和文字,背景是下边控件的
现在的代码:
&&&&&&&&&&&&&ListBox&Grid.Column=&10&&
&&&&&&&&&&&&&&&&&Menu&IsMainMenu=&True&&Width=&Auto&&Height=&Auto&&
&&&&&&&&&&&&&&&&&&&&&Menu.Background&
&&&&&&&&&&&&&&&&&&&&&&&&&ImageBrush&Stretch=&Fill&&ImageSource=&/ZC.TCS.SUBWAY;component/Image/MenuImg/yuanshezhi.png&&&/ImageBrush&
&&&&&&&&&&&&&&&&&&&&&/Menu.Background&
&&&&&&&&&&&&&&&&&&&&&MenuItem&Width=&Auto&&Height=&Auto&&
&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem.HeaderTemplate&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&DataTemplate&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&TextBlock&Height=&43&&Width=&170&&&/TextBlock&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/DataTemplate&
&&&&&&&&&&&&&&&&&&&&&&&&&/MenuItem.HeaderTemplate&
&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&组呼预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4QuickCombine&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&短信预案&&Margin=&-5&0&0&0&&Background=&White&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&短信群发预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4Message&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&短信内容预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4TextOfMsg&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&个呼预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4Individual&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&动态重组预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4ReGroup&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&/MenuItem&
&&&&&&&&&&&&&&&&&/Menu&
&&&&&&&&&&&&&/ListBox&
求大神帮忙看看,谢谢~~~
回复讨论(解决方案)
Stretch=&Fill&&-&&&Stretch=&Uniform&
Stretch=&Fill&&-&&&Stretch=&Uniform&
试了下木有用
Stretch=&Fill&&-&&&Stretch=&Uniform&
试了下木有用
能不能把&图片提供下。
Stretch=&Fill&&-&&&Stretch=&Uniform&
试了下木有用
能不能把&图片提供下。
Stretch=&Fill&&-&&&Stretch=&Uniform&
试了下木有用
能不能把&图片提供下。
目测是&&&&TextBlock&Height=&43&&Width=&170&&&/TextBlock&&&这&Height,Width的原因。
Stretch=&Fill&&-&&&Stretch=&Uniform&
试了下木有用
能不能把&图片提供下。
目测是&&&&TextBlock&Height=&43&&Width=&170&&&/TextBlock&&&这&Height,Width的原因。
把Height和Width去掉就变成这样了
这个位置确实不能写死,而且为啥这里不是透明背景
&&&&&&&&&&&&&ListBox&Grid.Column=&10&&
&&&&&&&&&&&&&&&&&Menu&IsMainMenu=&True&&Width=&Auto&&Height=&Auto&&
&&&&&&&&&&&&&&&&&&&&&Menu.Background&
&&&&&&&&&&&&&&&&&&&&&&&&&ImageBrush&Stretch=&Fill&&ImageSource=&/ZC.TCS.SUBWAY;component/Image/MenuImg/yuanshezhi.png&&&/ImageBrush&
&&&&&&&&&&&&&&&&&&&&&/Menu.Background&
&&&&&&&&&&&&&&&&&&&&&MenuItem&Height=&43&&Width=&170&&
&&&&&&&&&&&&&&&&&&&&&&&&!--&&MenuItem.HeaderTemplate&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&DataTemplate&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&TextBlock&Height=&43&&Width=&170&&&/TextBlock&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/DataTemplate&
&&&&&&&&&&&&&&&&&&&&&&&&&/MenuItem.HeaderTemplate&--&
&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&组呼预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4QuickCombine&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&短信预案&&Margin=&-5&0&0&0&&Background=&White&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&短信群发预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4Message&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&短信内容预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4TextOfMsg&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&个呼预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4Individual&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&动态重组预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4ReGroup&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&/MenuItem&
&&&&&&&&&&&&&&&&&/Menu&
&&&&&&&&&&&&&/ListBox&
&&ListBox&Grid.Column=&10&&
&&&&&&&&&&&&&&&&&Menu&IsMainMenu=&True&&Width=&Auto&&Height=&Auto&&
&&&&&&&&&&&&&&&&&&&&&Menu.Background&
&&&&&&&&&&&&&&&&&&&&&&&&&ImageBrush&Stretch=&Fill&&ImageSource=&/ZC.TCS.SUBWAY;component/Image/MenuImg/yuanshezhi.png&&&/ImageBrush&
&&&&&&&&&&&&&&&&&&&&&/Menu.Background&
&&&&&&&&&&&&&&&&&&&&&MenuItem&Height=&43&&Width=&170&&
&&&&&&&&&&&&&&&&&&&&&&&&!--&&MenuItem.HeaderTemplate&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&DataTemplate&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&TextBlock&Height=&43&&Width=&170&&&/TextBlock&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/DataTemplate&
&&&&&&&&&&&&&&&&&&&&&&&&&/MenuItem.HeaderTemplate&--&
&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&组呼预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4QuickCombine&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&短信预案&&Margin=&-5&0&0&0&&Background=&White&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&短信群发预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4Message&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&短信内容预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4TextOfMsg&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&个呼预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4Individual&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&&&&&MenuItem&Header=&动态重组预案&&Style=&{StaticResource&MenuItemStyle}&&Click=&MenuItem_OnShowConfigur4ReGroup&&&/MenuItem&
&&&&&&&&&&&&&&&&&&&&&/MenuItem&
&&&&&&&&&&&&&&&&&/Menu&
&&&&&&&&&&&&&/ListBox&
你的MenuItemStyle是不是设置的height和width
Stretch=&Fill&&-&&&Stretch=&Uniform&
试了下木有用
能不能把&图片提供下。
目测是&&&&TextBlock&Height=&43&&Width=&170&&&/TextBlock&&&这&Height,Width的原因。
把Height和Width去掉就变成这样了
这个位置确实不能写死,而且为啥这里不是透明背景
你的MenuItemStyle是不是设置的height和width
设置了,问题是,根那个地方并没有设置style呀
Stretch=&Fill&&-&&&Stretch=&Uniform&
试了下木有用
能不能把&图片提供下。
目测是&&&&TextBlock&Height=&43&&Width=&170&&&/TextBlock&&&这&Height,Width的原因。
把Height和Width去掉就变成这样了
这个位置确实不能写死,而且为啥这里不是透明背景
你把窗口缩小,这个按钮可以等比例缩放吗?
Stretch=&Fill&&-&&&Stretch=&Uniform&
试了下木有用
能不能把&图片提供下。
目测是&&&&TextBlock&Height=&43&&Width=&170&&&/TextBlock&&&这&Height,Width的原因。
把Height和Width去掉就变成这样了
这个位置确实不能写死,而且为啥这里不是透明背景
你把窗口缩小,这个按钮可以等比例缩放吗?
如果需要等比缩放,在List外层加&Viewbox,并设置你的List的Width和Height
Stretch=&Fill&&-&&&Stretch=&Uniform&
试了下木有用
能不能把&图片提供下。
目测是&&&&TextBlock&Height=&43&&Width=&170&&&/TextBlock&&&这&Height,Width的原因。
把Height和Width去掉就变成这样了
这个位置确实不能写死,而且为啥这里不是透明背景
你把窗口缩小,这个按钮可以等比例缩放吗?
如果需要等比缩放,在List外层加&Viewbox,并设置你的List的Width和Height
对不住了这位兄弟,原来我把Viewbox写成Listbox了,这错误太sb了。。。对不住了兄弟耽误你这么长时间
Stretch=&Fill&&-&&&Stretch=&Uniform&
试了下木有用
能不能把&图片提供下。
目测是&&&&TextBlock&Height=&43&&Width=&170&&&/TextBlock&&&这&Height,Width的原因。
把Height和Width去掉就变成这样了
这个位置确实不能写死,而且为啥这里不是透明背景
你把窗口缩小,这个按钮可以等比例缩放吗?
如果需要等比缩放,在List外层加&Viewbox,并设置你的List的Width和Height
不好意思又来问,我发现放在Viewbox里边,下拉的菜单也被缩小了,怎么才能让菜单不被缩小捏
Stretch=&Fill&&-&&&Stretch=&Uniform&
试了下木有用
能不能把&图片提供下。
目测是&&&&TextBlock&Height=&43&&Width=&170&&&/TextBlock&&&这&Height,Width的原因。
把Height和Width去掉就变成这样了
这个位置确实不能写死,而且为啥这里不是透明背景
你把窗口缩小,这个按钮可以等比例缩放吗?
如果需要等比缩放,在List外层加&Viewbox,并设置你的List的Width和Height
对不住了这位兄弟,原来我把Viewbox写成Listbox了,这错误太sb了。。。对不住了兄弟耽误你这么长时间
卧槽。。。才看到。WPF里,怎么用代码添加Image控件并且加上图片?求教
[问题点数:40分]
WPF里,怎么用代码添加Image控件并且加上图片?求教
[问题点数:40分]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
本帖子已过去太久远了,不再提供回复功能。}

我要回帖

更多关于 wpf可以转动的圆盘 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信