검색결과 리스트
Contrib에 해당되는 글 1건
- 2009/01/05 실버라이트 컨트롤
글
CodePlex(http://www.codeplex.com)을 돌아다니다가 Silverlight Contrib 라는 컨트롤 라이브러릴를 알게 되었습니다.
여기서 가장 생소하고 좋다고 생각한 기능은 CoolMenu라고 하는거인데..
RocketDock이나 ObjectDock의 같은 비슷한 기능을 보여줍니다.
데모는 여기에 들어가시면 볼 수 있습니다.
http://silverlightcontrib.org/demo/
간단한 CoolMenu 사용방법은 기존의 라이브러리 사용하는 방법과는 크게 다르지는 않습니다.
이렇게 사용을 하시면 됩니다.
<Rectangle Fill="Yellow" Margin="5" /> 이 부분에 자신이 원한 Content를 넣어주시면 됩니다. 너무나 큰 컨트롤이 아닌.. 적당히 작은 크기를 넣으시면 좋을 듯 싶습니다.
여기서 가장 생소하고 좋다고 생각한 기능은 CoolMenu라고 하는거인데..
RocketDock이나 ObjectDock의 같은 비슷한 기능을 보여줍니다.
데모는 여기에 들어가시면 볼 수 있습니다.
http://silverlightcontrib.org/demo/
간단한 CoolMenu 사용방법은 기존의 라이브러리 사용하는 방법과는 크게 다르지는 않습니다.
<UserControl x:Class="SilverlightApplication1.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sc="clr-namespace:SilverlightContrib.Controls;assembly=SilverlightContrib.Controls"
Width="400" Height="300">
<Grid x:Name="LayoutRoot" Background="White">
<sc:CoolMenu MenuItemClickEffect="Bounce" Height="130" MaxItemHeight="100" MaxItemWidth="100" >
<sc:CoolMenu.Items>
<sc:CoolMenuItemCollection>
<sc:CoolMenuItem Text="GreenBox">
<sc:CoolMenuItem.Content>
<Rectangle Fill="Green" Margin="5" />
</sc:CoolMenuItem.Content>
</sc:CoolMenuItem>
<sc:CoolMenuItem Text="RedBox">
<sc:CoolMenuItem.Content>
<Rectangle Fill="Red" Margin="5" />
</sc:CoolMenuItem.Content>
</sc:CoolMenuItem>
<sc:CoolMenuItem Text="YellowBox">
<sc:CoolMenuItem.Content>
<Rectangle Fill="Yellow" Margin="5" />
</sc:CoolMenuItem.Content>
</sc:CoolMenuItem>
</sc:CoolMenuItemCollection>
</sc:CoolMenu.Items>
</sc:CoolMenu>
</Grid>
</UserControl>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sc="clr-namespace:SilverlightContrib.Controls;assembly=SilverlightContrib.Controls"
Width="400" Height="300">
<Grid x:Name="LayoutRoot" Background="White">
<sc:CoolMenu MenuItemClickEffect="Bounce" Height="130" MaxItemHeight="100" MaxItemWidth="100" >
<sc:CoolMenu.Items>
<sc:CoolMenuItemCollection>
<sc:CoolMenuItem Text="GreenBox">
<sc:CoolMenuItem.Content>
<Rectangle Fill="Green" Margin="5" />
</sc:CoolMenuItem.Content>
</sc:CoolMenuItem>
<sc:CoolMenuItem Text="RedBox">
<sc:CoolMenuItem.Content>
<Rectangle Fill="Red" Margin="5" />
</sc:CoolMenuItem.Content>
</sc:CoolMenuItem>
<sc:CoolMenuItem Text="YellowBox">
<sc:CoolMenuItem.Content>
<Rectangle Fill="Yellow" Margin="5" />
</sc:CoolMenuItem.Content>
</sc:CoolMenuItem>
</sc:CoolMenuItemCollection>
</sc:CoolMenu.Items>
</sc:CoolMenu>
</Grid>
</UserControl>
이렇게 사용을 하시면 됩니다.
<sc:CoolMenuItem.Content>
<Rectangle Fill="Yellow" Margin="5" />
</sc:CoolMenuItem.Content>
</sc:CoolMenuItem.Content>
RECENT COMMENT